Skip to main content
Glama

route_task

Routes a task to the smallest relevant MCP tool slice, reducing token usage and keeping AI coding agents focused on only necessary tools and snippets.

Instructions

Route a task to the smallest relevant MCP tool slice.

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": {
      "task": "<task>"
    },
    "name": "route_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNorecommend_tools
taskYes
top_kNo
token_budgetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, yet it says nothing about whether routing is read-only, whether tools are executed or only recommended, or how token_budget affects behavior. The single sentence only weakly implies a recommendation/routing operation.

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

Conciseness2/5

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

It is a single sentence with no wasted words, but for a four-parameter routing tool this is under-specification rather than effective conciseness. The sentence is front-loaded but too cryptic to guide invocation.

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?

An output schema exists, so return values need not be explained, but the description still omits routing semantics, parameter behavior, and usage context. It is not complete enough for an agent to select or invoke the tool reliably without opening the schema.

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

Parameters1/5

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

Schema description coverage is 0% and the description explains none of the four parameters. It references a task only in passing and gives no meaning for mode, top_k, or token_budget, leaving critical invocation details entirely undocumented.

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

Purpose3/5

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

The description gives a verb ("Route") and a resource ("a task") but wraps the outcome in undefined jargon ("smallest relevant MCP tool slice"). It is unclear whether the tool recommends tools, executes tools, or both, and it does not distinguish itself from siblings such as delegate_large_task or execute_selected_tool.

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 guidance on when to use this tool, when not to use it, or which siblings are alternatives. The existence of mode values, including the default recommend_tools, is not mentioned in the description at all.

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