Skip to main content
Glama

AgentAPIGate MCP

call_endpoint

Execute any endpoint (e.g. search.google.web, search.google.news, web.extract.markdown, youtube.video.transcript) and return compact LLM-ready output (-80% context tokens).

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": {
      "endpoint_id": "<endpoint_id>"
    },
    "name": "call_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput compression format ("compact", "md", or "json"), e.g. "compact".compact
paramsNoEndpoint request arguments matching get_endpoint_schema, e.g. {"q":"MCP servers","limit":5}.
endpoint_idYesTarget endpoint ID from search_endpoints, e.g. "search.google.web".
max_cost_usdNoOptional per-call USD ceiling, e.g. 0.005.

Output Schema

NameRequiredDescriptionDefault
dataYesNormalized response object (or compact markdown string when format="md").
metaYesExecution receipt (request_id, endpoint, cost_usd, tokens_est, cached).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the description mainly adds the output characteristic: compact LLM-ready output with roughly 80% token savings. It does not disclose cost behavior (the max_cost_usd ceiling is only in the schema) or that side effects vary by the proxied endpoint.

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?

One front-loaded sentence with concrete examples and no filler; the '-80% context tokens' claim is slightly promotional but still informative. Nothing needs to be cut or moved.

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

Completeness4/5

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

An output schema and full parameter coverage carry most of the burden, and annotations cover openness and reversibility. The remaining gap is workflow sequencing (discover an endpoint, then fetch its schema before calling), which an agent could get wrong from this description alone.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented, and the description adds nothing about params, format, or cost beyond restating the compact-output theme. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb (execute) and a specific resource (any named endpoint), and gives four concrete endpoint_id examples so an agent can pattern-match. The generic-dispatch nature is clear, but it never explicitly contrasts itself with search_endpoints or get_endpoint_schema as the discovery/schema tools.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and no prerequisites, such as resolving endpoint_id via search_endpoints or reading params via get_endpoint_schema. Those workflow hints exist only in the parameter schema descriptions, not in the tool description itself.

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