MCP Gateway

Test an MCP server tool

Executes a single tool on an upstream MCP server for testing. Connects to the server, invokes the tool with the provided arguments, and returns the result.

post/v2/mcp-servers/{id}/tools:test

Path parameters

idstring required

Unique identifier of the MCP server.

Request body

tool_namestring required

Bare upstream tool name, not a gateway's namespaced exposed_name.

argumentsobject

Arguments passed to the tool, matching its input_schema.

discovery_variablesobject

Values for the server's template_variables; treated as sensitive and not persisted.

Response

OK