mcp-any-openapi

call_function

Calls a specified API function (an endpoint defined in the OpenAPI spec) with parameters. Args: function_name (str): The name of the API function to call (e.g., "GET /pets"). parameters (dict, optional): Parameters for the API call (query parameters, request body, etc.). Returns: The raw API response as a JSON-encoded string or an error message.

Input Schema

NameRequiredDescriptionDefault
function_nameYes
parametersNo

Input Schema (JSON Schema)

{ "properties": { "function_name": { "title": "Function Name", "type": "string" }, "parameters": { "default": null, "title": "Parameters", "type": "object" } }, "required": [ "function_name" ], "title": "call_functionArguments", "type": "object" }

Other Tools