Skip to main content
Glama

GroundTruth Dispatch

gt_dispatch
Read-onlyIdempotent

Routes raw user requests to the correct gt_* tool when intent is unclear, returning the chosen tool, arguments, reason, and confidence.

Instructions

Route a raw user request ("use gt", "use gt for react", "migrate next from 15 to 16") to the right gt_* tool. Returns {tool, args, reason, confidence}. Skip it when the tool is already clear.

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": {
      "query": "<query>"
    },
    "name": "gt_dispatch"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesRaw user request
projectPathNoProject root (default: cwd)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv8.1.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / projectPath / description
      Previous value: -"Optional project directory for project-level intents (auto-scan, audit). Defaults to current working directory."New value: +"Project root (default: cwd)"
    • changedInput schema / properties / query / description
      Previous value: -"Plain-text user intent. Examples: 'use gt for react', 'find issues', 'migrate next from 14 to 15', 'best practices for fastapi'."New value: +"Raw user request"
  2. Addedv7.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered by structured data. The description adds real value beyond that by disclosing the exact response payload fields, which matters since there is no output schema. It does not say how confidence values are scaled or what the router does when no gt_* tool fits.

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?

Two sentences: the first states the action and the output contract, the second states the exclusion. The routing purpose is front-loaded and every phrase earns its place, with no restating of the title or annotations.

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 dispatcher the definition covers the action, the input examples, the return fields, and the skip condition — enough for an agent to invoke it correctly. Missing only edge-case behavior around low confidence or unmatched requests, which is minor given the low complexity.

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 description coverage is 100% for both query and projectPath, so the schema already explains that query is the raw request and projectPath defaults to cwd. The description adds only illustrative query examples and no new meaning about projectPath resolution or length limits. Baseline 3 is appropriate.

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+resource: routing a raw user request to the correct gt_* tool. It also discloses the return shape {tool, args, reason, confidence}, which makes it unmistakable that this is a meta-dispatch tool rather than one of the concrete gt_* siblings.

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?

Explicit trigger examples are given ("use gt", "use gt for react", "migrate next from 15 to 16") plus an explicit exclusion: "Skip it when the tool is already clear." The only gap is guidance on what to do when the returned confidence is low, or whether to call a gt_* tool directly instead of retrying dispatch.

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