Skip to content

MCP servers

List MCP server tools

Discover tools on an enabled external MCP server and update connection metadata. Discovery is bounded by 1,000 tools, 5 MiB, 50 upstream pages, and 60 seconds; limits or later-page failures can return an unmarked partial inventory. Results are unpaginated and may be cached; `refresh=true` requests fresh discovery. Invalid OAuth returns `409` with `MCP_SERVER_REAUTHORIZATION_REQUIRED`; reauthorize in the browser. Disabled servers and servers requiring a managed Credential Group connection return `409`; unavailable servers return `503`. Requires workspace read access. `HEAD` checks access with the same authorization as `GET` but skips side effects, returning an empty `200` without payload headers on success. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:write`.

GET/api/v2/mcp-servers/{mcpServerId}/tools

Discover tools on an enabled external MCP server and update connection metadata. Discovery is bounded by 1,000 tools, 5 MiB, 50 upstream pages, and 60 seconds; limits or later-page failures can return an unmarked partial inventory. Results are unpaginated and may be cached; refresh=true requests fresh discovery. Invalid OAuth returns 409 with MCP_SERVER_REAUTHORIZATION_REQUIRED; reauthorize in the browser. Disabled servers and servers requiring a managed Credential Group connection return 409; unavailable servers return 503. Requires workspace read access. HEAD checks access with the same authorization as GET but skips side effects, returning an empty 200 without payload headers on success. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:write.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:write

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:write.

Path parameters

mcpServerIdstringRequired

Unique MCP server identifier.

minLength
1

Query parameters

workspaceIdstringRequired

Workspace that owns the MCP server.

minLength
1
maxLength
128
refreshboolean

Refresh tools using your credentials. Otherwise results may reuse another workspace member's recent discovery and omit newly added tools.

Responses

200

Tools discovered so far. Limits or later-page failures can leave the inventory incomplete; the response has no truncation indicator or pagination.

object

Tools discovered so far. Limits or later-page failures can leave the inventory incomplete; the response has no truncation indicator or pagination.

2 fields
dataarrayRequired

Items in the current page.

Schema details
Array itemobject

A tool exposed by a registered MCP server.

6 fields
namestringRequired

Tool name, as the MCP server reports it.

descriptionstring

Tool description reported by the server.

inputSchemaobjectRequired

JSON Schema for the tool's arguments, as reported by the server.

3 fields
typestringRequired

JSON Schema type of the argument object. MCP requires object.

const
object
propertiesobject

Argument schemas keyed by argument name.

Schema details
Additional propertiesvalue

Server-defined JSON Schema for one tool argument.

requiredarray

Names of the arguments the tool requires.

Schema details
Array itemstring

Name of a required argument.

Additional propertiesvalue

Additional JSON Schema keyword reported by the server.

outputSchemaobject

JSON Schema for the tool's structuredContent, as reported by the server. Absent when the tool declares none.

3 fields
typestringRequired

JSON Schema type of the structured result. MCP requires object.

const
object
propertiesobject

Result field schemas keyed by field name.

Schema details
Additional propertiesvalue

Server-defined JSON Schema for one result field.

requiredarray

Names of the fields every result carries.

Schema details
Array itemstring

Name of a field every result carries.

Additional propertiesvalue

Additional JSON Schema keyword reported by the server.

serverIdstringRequired

Identifier of the MCP server exposing the tool.

serverNamestringRequired

Display name of the MCP server exposing the tool.

Additional properties are not allowed.

nextCursorvalueRequired

Always null. This list has no cursor or limit parameters; see the operation for inventory limits.

Schema details

Any of

Option 1string
Option 2null

Additional properties are not allowed.

Response example 1

json
{
  "data": [
    {
      "name": "search_docs",
      "description": "Search the internal documentation",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Search terms"
          }
        },
        "required": [
          "query"
        ]
      },
      "serverId": "mcp-3f7a9c21",
      "serverName": "Docs server"
    }
  ],
  "nextCursor": null
}

Response headers

X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit