Skip to main content
Glama

call_tool

Invoke a folded MCP tool with optional field projection, output token limits, and secret redaction to trim JSON responses and protect sensitive data.

Instructions

Invoke a folded MCP tool with optional field projection, output token cap, and secret redaction.

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": "<tool>"
    },
    "name": "call_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoTool arguments object
toolYesTool name or server.tool ID
fieldsNoDot-path fields to keep from JSON output
maxTokensNoOutput token cap (default 1500)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does add one genuine trait beyond the schema — that secrets are redacted in output — but it omits the most consequential behavior: that this executes an arbitrary target tool, whose side effects, permissions, and destructive potential are inherited. For a meta-invoker with no annotations, that silence is a serious gap.

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 zero filler, listing the primary action first and the optional modifiers after. Its brevity is efficient rather than padded, though it is terse enough that important context was cut rather than condensed.

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

Completeness2/5

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

For a meta-tool with a nested args object, no output schema, and no annotations, the description is too thin. It never explains what 'folded' means, what the response looks like after projection/redaction, or what happens when the invoked tool errors or mutates state.

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 all four parameters are already documented, and the description adds little beyond restating 'field projection' for fields and 'output token cap' for maxTokens. It does not clarify the 'server.tool ID' format or how args are forwarded to the target tool, though redaction is a concept that exists in no parameter.

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?

The description names a specific verb and resource — 'Invoke a folded MCP tool' — and enumerates the three optional modifiers (field projection, output token cap, secret redaction). That is enough to distinguish it from inspect_tool/search_tools in spirit, but the term 'folded' is left undefined, so an agent must already know the ecosystem to be certain what is being invoked.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no routing to siblings (e.g., use search_tools/inspect_tool to obtain a tool ID first). The single word 'folded' implicitly restricts scope but is never explained, so the agent is left to infer the precondition for calling this tool.

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