Skip to main content
Glama

Call a tool through MCP Hotplug

call_tool

Executes a selected upstream tool by routing directly to its worker, validating arguments against the cached input schema, and skipping catalog refresh or probes of other servers.

Instructions

Executes one tool using the current cached descriptor and routes directly to that tool’s upstream worker. It does not refresh or probe the global catalog and does not wait for checks of other servers. Arguments are validated against the selected server’s latest cached inputSchema. MCP Hotplug resolves the current server route and protects dispatch against concurrent cache changes internally. Do not automatically repeat operations that may have side effects after an upstream failure.

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": {
      "tool_id": "<tool_id>",
      "catalog_revision": "<catalog_revision>",
      "arguments": "<arguments>"
    },
    "name": "call_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
tool_idYesExact tool_id returned by all_tools.
argumentsYesArguments matching the selected tool inputSchema.
catalog_revisionYesGlobal catalog revision returned by all_tools; informational and not used as a server lock.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses that no catalog refresh or cross-server wait occurs, that arguments are validated against the latest cached inputSchema, that routing and concurrency protection are handled internally, and that automatic retries after upstream failure are unsafe for side-effecting tools. It stops short of describing what the call returns or how upstream errors surface to the caller.

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?

The core action is front-loaded in the first sentence, followed by scope limits, validation behavior, and a safety warning in a logical order. It is slightly verbose in the third-person internal-plumbing sentence ('resolves the current server route and protects dispatch against concurrent cache changes internally'), which is useful but less actionable than the rest.

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 dispatch tool with no annotations and no output schema, the description covers the execution model and safety constraints thoroughly but never says what the caller receives back (the upstream tool's result, a wrapper, raw payload?) or how upstream failures are reported. With no output schema to lean on, that omission leaves a real gap an agent would want filled.

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 100%, so the parameter names are already documented, but the description adds genuinely new meaning: arguments are validated against the selected server's latest cached inputSchema, and catalog_revision is informational rather than a lock. That validation semantics is not visible in the schema and helps the agent understand failure modes when passing arguments.

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

Purpose5/5

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

The description states a specific verb and resource: it executes exactly one tool, using the cached descriptor, and routes directly to that tool's upstream worker. It also implicitly distinguishes itself from the catalog-listing sibling by saying it does not refresh or probe the global catalog, which is what all_tools exists to do.

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?

It gives clear operating context (use the cached descriptor; no catalog refresh, no waiting on other servers) and an explicit negative guideline: do not automatically repeat operations that may have side effects after an upstream failure. What it lacks is an explicit 'call all_tools first to obtain tool_id/catalog_revision' instruction in the prose, though the schema parameter descriptions cover that.

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

Deploy Server

Other Tools