POST/v1/projects/{projectId}/agent-tools/mcp/validate

Validate an external MCP server agent tool

Validates an external MCP server configured as an agent tool by probing the server and returning its tool names. Supply the server URL, protocol, tool name, and authentication configuration in the request. Outbound requests use SSRF filtering, and failures return a generic error to prevent network reconnaissance.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 5 body fields
projectIdstringrequired
The project identifier, consisting of exactly 21 alphanumeric characters.

External MCP server configuration to validate as an agent tool.

authobjectrequired
Authentication configuration for the external MCP server; provide values matching a supported authentication scheme.
protocolstringrequired
The server protocol: `sse`, `streamable-http`, or `http`.
Allowed:ssestreamable-httphttp
serverUrlstringrequired
The external MCP server URL in URI format.
toolNamestringrequired
The name to use for the agent tool. Must contain at least one character.
typestringrequired
The tool type. Must be `MCP`.
Allowed:MCP

1 status code
200Returns the tool names discovered on the external MCP server.

Error handling

The projectId path parameter must contain exactly 21 alphanumeric characters. The request must include type set to MCP, a toolName of at least one character, a URI-formatted serverUrl, a protocol of sse, streamable-http, or http, and a valid auth configuration.