Skip to main content
Glama

call api

call_api
Read-only

Call any API, MCP server, chat endpoint or agent listed on StartupHub (find one with find_apis), billed to your StartupHub credits. REST: operation "METHOD /path" plus path, query, body. MCP: operation = tool name plus arguments. Chat: operation = model id plus messages. Agent: task; a long agent task answers with a task_id, follow it with get_api_task. label names what the call is for in your console. Add provider_key only when the listing needs your own key for that service. Needs a StartupHub.ai API key with credit (pay as you go).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "listing_id": "<listing_id>"
    },
    "name": "call_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
pathNo
taskNo
labelNoWhat this call is for, e.g. "book the reservation". Shown in your console.
queryNo
messagesNo
argumentsNo
operationNo
listing_idYesThe id from find_apis
provider_keyNoYour key for that service, used for this call only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description does add genuine operational context beyond the schema: calls are billed to StartupHub credits, a funded StartupHub.ai API key is required, and provider_key is scoped to a single call. However, it describes invoking arbitrary third-party services (with the example label "book the reservation"), which conflicts with the declared readOnlyHint=true and openWorldHint=false annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and billing, then organized by call mode, which is the right structure for a multi-mode proxy. It is dense and telegraphic in places but nearly every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, open-ended proxy with no output schema, the description covers auth, billing, provider keys, mode-specific operations and async task follow-up. It says nothing about what a synchronous REST/MCP call returns, error behavior, or rate limits, leaving meaningful unknowns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 30%, so the description must carry the load, and it mostly does: it defines the operation format per mode ("METHOD /path" for REST, tool name for MCP, model id for chat) and maps path/query/body, arguments, messages and task to their respective modes. It stops short of specifying expected formats for the loosely typed `path` object or how listing_id links to a mode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Starts with a specific verb+resource: "Call any API, MCP server, chat endpoint or agent listed on StartupHub." It names the directory (find_apis) the listings come from and the follow-up tool (get_api_task), so an agent can place it relative to siblings. It does not distinguish itself from run_agent_task, which sounds like an overlapping alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real routing guidance: find the listing with find_apis first, follow long agent tasks with get_api_task, and add provider_key only when the listing requires your own key. The remaining gap is that it never explains when to pick this tool versus the run_agent_task sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources