Home / Servers / DigitalOcean API / inference_create_chat_completion

Create a model response for the given chat conversation

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create a model response for the given chat conversation Creates a model response for the given chat conversation. [POST /v1/chat/completions]

Name on the gateway: digitalocean_api__inference_create_chat_completion · may change things.

Parameters

NameTypeDescription
messages requiredarrayA list of messages comprising the conversation so far.
model requiredstringModel ID used to generate the response.
max_tokensintegerThe maximum number of tokens that can be generated in the completion. The…
max_completion_tokensintegerThe maximum number of completion tokens that may be used over the course of…
frequency_penaltynumberNumber between -2.0 and 2.0. Positive values penalize new tokens based on…
presence_penaltynumberNumber between -2.0 and 2.0. Positive values penalize new tokens based on…
top_logprobsintegerAn integer between 0 and 20 specifying the number of most likely tokens to…
toolsarrayA list of tools the model may call. Currently, only functions are supported as…
tool_choiceobjectControls which (if any) tool is called by the model. none means the model will…
streambooleanIf set to true, the model response data will be streamed to the client as it…
stopstringUp to 4 sequences where the API will stop generating further tokens. The…
logit_biasobjectModify the likelihood of specified tokens appearing in the completion. Accepts…
logprobsbooleanWhether to return log probabilities of the output tokens or not. If true…
nintegerHow many chat completion choices to generate for each input message. Note that…
stream_optionsobjectOptions for streaming response. Only set this when you set stream to true.
reasoning_effortnone | minimal | low | medium | high | xhighConstrains effort on reasoning for reasoning models. Reducing reasoning effort…
seedintegerIf specified, the system will make a best effort to sample deterministically…
metadataobjectSet of 16 key-value pairs that can be attached to an object. This can be…
temperaturenumberWhat sampling temperature to use, between 0 and 2. Higher values like 0.8 will…
top_pnumberAn alternative to sampling with temperature, called nucleus sampling, where…
userstringA unique identifier representing your end-user, which can help DigitalOcean to…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__inference_create_chat_completion",
  "arguments": {
    "messages": [],
    "model": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a model response for the given chat conversation tool with messages set to ….

More from DigitalOcean API