Skip to main content
Glama

bodhi_route

Read-onlyIdempotent

Routes a task description to a matching playbook using the INDEX routing table, returning a confidence score and alternatives for fallback or further search.

Instructions

Find the best playbook for a given task. Uses the INDEX.md routing table to match tasks to relevant playbooks. Returns the most relevant playbook with confidence score and alternatives. Use this first — if no match, fall back to bodhi_search.

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": "bodhi_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesDescription of the task you need help with (e.g., 'pitch deck design', 'India checkout UX', 'serverless security')
response_formatNoOutput format: "markdown" (default, human-friendly) or "json" (structured, all fields)

Output Schema

NameRequiredDescriptionDefault
tldrNoBrief summary of the playbook
titleYesPlaybook title
domainYesKnowledge domain
playbookYesRelative path to the matched playbook
confidenceYesMatch confidence score
alternativesNoAlternative matches ranked by confidence

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuine mechanism and output context: it consults INDEX.md, returns a confidence score plus alternatives, and signals the no-match path. It stops short of saying what a low-confidence or empty result looks like, so it is strong but not exhaustive.

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?

Four short sentences, front-loaded with the purpose and ending with the routing instruction. Every sentence contributes: purpose, mechanism, return shape, and fallback rule — no filler or restated name.

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

Completeness5/5

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

For a two-parameter read-only lookup with an output schema, the description covers purpose, mechanism, return contents, and fallback behavior. Nothing an agent needs in order to call it correctly or decide between it and bodhi_search is missing.

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%, including per-parameter descriptions and an enum for response_format, so the schema already carries parameter meaning. The description adds nothing beyond that (no guidance on task phrasing granularity or when to prefer json), which is the expected baseline when the schema does the work.

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?

States a specific verb and resource ('Find the best playbook for a given task') and explains the mechanism (INDEX.md routing table). It also clearly separates itself from the sibling bodhi_search by naming it as the fallback, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit ordering guidance ('Use this first') and an explicit alternative with the condition that selects it ('if no match, fall back to bodhi_search'). This is exactly the when-to-use / when-to-switch guidance that prevents trial-and-error tool selection.

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