Skip to main content
Glama

search_rules

Read-onlyIdempotent

Search the entire SRD for rules, spells, monsters, equipment, and feats with hybrid semantic and full-text search; returns cited candidates rather than final rulings.

Instructions

Search the entire SRD. Hybrid uses local embeddings plus full-text search.

Return cited candidates, not an adjudication. Search classes, spells, monsters, equipment, feats, exploration and any other SRD material.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
modeNohybrid
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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, so the safety profile is covered. The description adds genuinely non-obvious behavior: the hybrid mode combines local embeddings with full-text search, and results are cited candidates rather than adjudicated answers, which changes how the agent should consume output. It omits ranking/score behavior and whether results are paged, but the added context is solid.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence and the sentences are short with no filler. The enumerated content list is slightly long but earns its place by defining search scope, and the "not an adjudication" warning is well placed after the mechanism note.

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

Completeness3/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-value structure need not be described, and the annotations cover the safety profile. What remains missing is parameter-level meaning for kind, limit, and the two non-default mode values, which is a real gap for a four-parameter search tool even if the core call (query only) is safe by default.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description carries the full burden but only partially discharges it: it explains what "hybrid" means but says nothing about "fts" or "semantic" modes, nothing about what the kind enum values (rule, spell, section, passage, page, entry) select, and nothing about the meaning or sensible range of limit. An agent must guess at three of four parameters.

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

Purpose4/5

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

The description leads with a specific verb and resource ("Search the entire SRD") and then enumerates the covered material (classes, spells, monsters, equipment, feats, exploration), so an agent knows exactly what corpus is being searched. It stops short of explicitly distinguishing itself from the sibling get_rule, leaving the discovery-vs-retrieval split to be inferred from "Return cited candidates, not an adjudication."

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

Usage Guidelines3/5

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

The phrase "Return cited candidates, not an adjudication" implies this is a discovery tool and the agent must do its own reasoning, which is useful implicit guidance. However, there is no explicit statement of when to prefer this over get_rule or can_i_do, and no guidance about iterative searching or refining queries.

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

Deploy Server

Other Tools