Skip to main content
Glama

ask

Answer a natural-language question by routing it to the right MCP tool and running it, returning the tool result, routing explanation, sources, and alternatives.

Instructions

Answer a question in one step: route it to the right MCP tool and run it. With a routing LLM configured (the user's own GEMINI_API_KEY / OPENAI_API_KEY / ANTHROPIC_API_KEY / OPENROUTER_API_KEY, or LLM_PROVIDER=ollama for local routing), the model picks the server+tool+arguments; without any provider, the top search result is used instead. location: optional per-request hint {"country": "DE"|"TR"|"IR", "city"?} — beats the saved location, loses to place names in the question. Returns the tool result plus a one-line routing explanation, the routing trace (steps: one entry per routing/execution attempt, plus a compact one-line-per-step trace), citation links (sources), and alternatives. The question is sent to the routing provider only when one is configured; search_tools + call_tool never need a key.

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": {
      "question": "<question>"
    },
    "name": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationNo
questionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 substantial work: it discloses provider/auth requirements (GEMINI/OPENAI/ANTHROPIC/OPENROUTER keys, LLM_PROVIDER=ollama for local), the degraded fallback path, the precedence rule for location, and confirms the question only leaves the machine when a provider is configured. Gaps remain around latency, cost, and failure behavior when routing picks the wrong tool, but this is well above the norm for an unannotated tool.

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

Conciseness3/5

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

The purpose statement is front-loaded, but the rest is a single dense block of stacked parentheticals and em-dashes covering providers, location precedence, and an enumerated return payload. The list of four environment variable names and the detailed return-value breakdown are lower value here, especially since an output schema already exists.

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?

For a two-parameter orchestration tool with no annotations, the definition covers purpose, auth, degradation, parameter precedence, and leaves return shape to the output schema. The only real omission is what happens on routing failure or when the routed tool errors, which matters for a meta-tool that can invoke anything.

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

Parameters5/5

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

Schema coverage is 0% and the location property is an untyped open object, yet the description compensates precisely: it names the expected shape {"country": "DE"|"TR"|"IR", "city"?} and gives the conflict-resolution rule — beats the saved location, loses to place names in the question. That is meaning an agent could not recover from the schema at all.

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 opening clause gives a specific verb and outcome — 'Answer a question in one step: route it to the right MCP tool and run it' — which precisely distinguishes it from the sibling pair search_tools + call_tool that it composes. An agent can tell immediately that this is the high-level orchestration entry point rather than a raw primitive.

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 description explains the operating conditions well: with a routing LLM configured the model picks server+tool+arguments, without any provider the top search result is used, and it notes that 'search_tools + call_tool never need a key', implicitly pointing at the no-key alternative. It never states an explicit when-not-to-use rule (e.g. 'use call_tool directly when you already know the tool'), so the alternative routing is inferable rather than spelled out.

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