Skip to main content
Glama

bodhi_search

Read-onlyIdempotent

Search all Bodhi knowledge-base playbooks with full-text queries to find scored results and provenance when routing misses or you need related topics.

Instructions

Full-text search across all playbooks in the Bodhi knowledge base. Use for broader queries when bodhi_route() doesn't find a match, or to explore related topics. Returns scored results with provenance metadata.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default: 10, max: 50)
queryYesSearch query (keywords, phrases)
domainNoOptional: Filter by domain (ux, marketing, security, backend, frontend, devops, architecture, documentation, ai-development)
response_formatNoOutput format: "markdown" (default, human-friendly) or "json" (structured, all fields)

Output Schema

NameRequiredDescriptionDefault
totalYesNumber of results returned
resultsYes

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 declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds useful context beyond that: results are scored and carry provenance metadata, and this tool acts as a fallback behind bodhi_route. It does not discuss ordering guarantees or pagination limits in prose, but those are partly schema-covered.

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 short sentences with zero filler, and the core capability is front-loaded ahead of the fallback guidance. Nothing needs trimming or reordering.

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 read-only search tool with a full output schema and complete parameter documentation, the description covers purpose, fallback role, and result shape. An agent has everything needed to choose and invoke it correctly.

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%, so every parameter (query, limit, domain, response_format) is already documented in the schema, including the domain enum values. The description adds no further parameter meaning, which makes the baseline 3 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?

States a specific verb and resource: full-text search across all playbooks in the Bodhi knowledge base. It also scopes the tool as a broad fallback, which distinguishes it from bodhi_route without the agent needing to open 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?

Explicitly names the alternative (bodhi_route) and the condition that selects this tool: use it when bodhi_route doesn't find a match, or to explore related topics. The routing decision is fully specified.

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