Skip to main content
Glama

mcp-any-openapi

by matthewhand
MIT License
39
  • Linux
  • Apple

call_function

Invoke and execute OpenAPI-defined API endpoints dynamically using specified function names and parameters, returning raw JSON responses or error messages.

Instructions

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" }

You must be authenticated.

Other Tools from mcp-any-openapi

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewhand/mcp-openapi-proxy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server