Skip to main content
Glama

prepare_tool_call

Read-only

WHEN TO CALL: right before invoking an external MCP tool, or right after a schema or validation error from one. One round-trip returns its live verdict and recommendation, a known-good input shape (recipe), and live alternatives if it is down or risky. Accepts a server or tool name, package or repo; the exact id is not required.

Input Schema

NameRequiredDescriptionDefault
taskNoOptional coarse task tag to tailor the recipe/alternatives.
toolIdYesServer or tool: a short name ('playwright', 'github/create_issue'), package, repo slug, URL or exact id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / toolId / description
      Previous value: -"Tool you are about to call ('server' or 'server/tool_name')."New value: +"Server or tool: a short name ('playwright', 'github/create_issue'), package, repo slug, URL or exact id."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds that one round-trip yields verdict, recipe and fallbacks, which is genuine context. Minor tension: 'live verdict' implies external live state while openWorldHint=false suggests a closed catalog, and nothing is said about latency, caching, or what 'recipe' and 'verdict' actually contain. Not a contradiction, but not rich either.

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

Conciseness5/5

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

Three sentences, no filler, with the trigger condition first and the payload description second. Every sentence adds a distinct fact: when to call, what comes back, and what input forms are accepted.

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?

With no output schema, the description still sketches the return payload (verdict, recommendation, recipe, alternatives) and the forgiving input matching, which is enough to call correctly. A little more on the shape or size of the recipe/alternatives payload would close the remaining gap.

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% and the schema already enumerates the accepted forms of toolId (short name, package, repo slug, URL, exact id) and the task tag's purpose. The description's only addition, 'the exact id is not required', largely restates that, so the schema is doing the work and baseline 3 applies.

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 states concretely what a call returns – a live verdict, a recommendation, a known-good input recipe, and live alternatives – so an agent knows this is a composite preflight check rather than a plain lookup. It does not distinguish itself from close siblings such as preflight_tools, check_tool_reliability, get_working_recipe or find_alternatives, even though it appears to aggregate their outputs.

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?

The WHEN TO CALL clause is explicit and front-loaded: right before invoking an external MCP tool, or right after a schema/validation error from one. That is a clear triggering context, though it gives no exclusions (e.g., when a cheaper sibling like get_working_recipe suffices) and names no alternative.

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