For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP

Execute Mcp Tool

post

Execute one caller-authorized tool call against a stored MCP server.

The calling application owns any user approval, argument editing, cancellation and action history; Otari executes exactly the tool name and arguments it is given, once, and returns the remote server's native result. A result with isError: true is a definitive outcome and comes back as an HTTP 200.

This request must never be retried automatically. client_execution_id is correlation, not idempotency: once the call has been dispatched Otari cannot know whether the tool ran, and an outcome_unknown response means exactly that. Proxies, service meshes and SDKs on this path have to disable retries for it, including on connection resets and 5xx responses.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

One stored server, and the exact call the application authorized.

No inline server fields: a caller registers a remote MCP server through the control plane once and refers to it by id afterwards, which keeps URLs, credentials, revocation and allowlist policy on Otari's side of the boundary instead of in every request.

Extras are forbidden rather than ignored, so a caller still sending the old inline server block is told its configuration was not used instead of watching Otari quietly execute against a different server than the one it named.

client_execution_idstring · uuidRequired

A caller-generated UUID, for correlation only. It is not proof of approval and not an idempotency key: repeating a request with the same value may execute the tool again, so this request must never be retried automatically.

mcp_server_idstring · uuidRequired

The stored MCP server to execute against.

server_revisionstringRequired

The stored-server revision returned by tool discovery. Required, and compared against the current one so a configuration change since the caller authorized this call is refused rather than executed. Not an approval credential.

Pattern: ^[A-Za-z0-9._:\-]{1,128}$
tool_namestring · min: 1 · max: 256Required

The remote MCP tool name the caller authorized for this one execution.

Responses
200

Successful Response

application/json

The server's response to a tool call.

Errors that originate from the tool SHOULD be reported inside the result with is_error set to true, not as an MCP protocol-level error, so the LLM can see and self-correct. Errors in finding the tool, or any other exceptional condition, should be reported as an MCP error response.

isErrorbooleanOptionalDefault: false
resultTypeany ofOptionalDefault: complete
string · enumOptionalPossible values:
or
stringOptional
structuredContentanyOptional
post/api/v1/mcp/execute
POST /api/v1/mcp/execute HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 212

{
  "arguments": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "client_execution_id": "123e4567-e89b-12d3-a456-426614174000",
  "mcp_server_id": "123e4567-e89b-12d3-a456-426614174000",
  "server_revision": "text",
  "tool_name": "text"
}
{
  "_meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "content": [
    {
      "_meta": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "annotations": {
        "audience": [
          "user"
        ],
        "lastModified": "text",
        "priority": 1
      },
      "text": "text",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": null
}

List Mcp Tools

get

List the tools a stored MCP server exposes to the authenticated workspace.

Call this once per server when preparing a model or workflow run, and reuse the answer for every tool from that server for the length of the run: there is no cross-run cache in this version, so a later run rediscovers and staleness stays bounded without any invalidation state to keep.

The response is the whole authorized catalog or an error. It is never partial, because a caller would read a short catalog as the complete input to its own authorization and risk policy. The single exception is warnings, which names a tool whose descriptor Otari could not carry.

A tool the server removes after discovery may still be proposed from the run's snapshot; execution then returns the remote server's own typed error.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
mcp_server_idstring · uuidRequired
Responses
200

Successful Response

application/json

The authorized catalog for one stored server.

Carries no server URL, no credential, and no allowlist entry that the live catalog did not return. server_revision is what an application persists with a proposed call and sends back to /api/v1/mcp/execute, so a stored-configuration change between the two is refused rather than executed.

server_idstring · uuidRequired
server_revisionstringRequired

An opaque revision of the stored server's URL, credential, enabled state and allowlist. It detects Otari-side configuration changes only: a remote server that changes its own catalog or a tool's behavior behind an unchanged URL will not move it.

get/api/v1/mcp/servers/{mcp_server_id}/tools
GET /api/v1/mcp/servers/{mcp_server_id}/tools HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "server_id": "123e4567-e89b-12d3-a456-426614174000",
  "server_revision": "text",
  "tools": [
    {
      "annotations": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "description": "text",
      "input_schema": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "name": "text"
    }
  ],
  "warnings": [
    {
      "code": "text",
      "tool_name": "text"
    }
  ]
}

Last updated

Was this helpful?