Skip to main content
Glama

ddb_search_site

Read-only

Search D&D Beyond for spells, monsters, magic items, races, classes, or feats by query and category, returning 2024 rules by default or 2014 rules when selected.

Instructions

Search D&D Beyond for spells, monsters, magic items, races, classes, or feats. Each category lists the rules_edition version of an entry and counts the other edition's hidden twins. With category "all", the sections share one search header and one combined footer (a reply where every section came from the Open5e fallback has no combined header); a single category keeps its own header and footer. Returns 2024 content by default; set rules_edition to '2014' for 2014 rules. The 'Rules:' line or [tag] in the output names the ruleset.

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe search query (e.g. 'Fireball', 'Beholder', 'Vorpal Sword')
categoryNoCategory to search within (defaults to 'all')
rules_editionNoRuleset: '2024' (default) or '2014'.2024

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • addedInput schema / properties / rules_edition
      Added value: +{
      +  "default": "2024",
      +  "description": "Ruleset: '2024' (default) or '2014'.",
      +  "enum": [
      +    "2014",
      +    "2024"
      +  ],
      +  "type": "string"
      +}
  2. First observedv2.10.2

TDQS

A4/5.0
Behavior5/5

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

Annotations only cover read-only and open-world safety; the description adds substantial non-obvious behavior: per-section headers/footers, a shared header/footer in 'all' mode, suppression of the combined header when every section came from the Open5e fallback, and counting of hidden cross-edition twins. The default 2024 ruleset and the 'Rules:'/[tag] marker tell the agent how to interpret results without additional probing.

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?

Front-loaded with purpose, then layered detail about output shape and defaults in a small number of dense sentences; nothing is obviously redundant. Some phrasing is terse to the point of opacity ('hidden twins', 'combined footer'), which costs a little readability.

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?

With no output schema, the description carries the return-shape burden, and it does describe sections, headers, footers, edition labeling, and fallback behavior. It leaves gaps around pagination/result limits, no-match responses, and error cases, which an agent would still have to discover empirically.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description goes beyond the schema by explaining what category='all' structurally does and by giving a way to verify which ruleset produced each entry (the 'Rules:' line or [tag]) rather than just stating that rules_edition exists.

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?

Opens with a specific verb and resource set: 'Search D&D Beyond for spells, monsters, magic items, races, classes, or feats,' which maps directly onto the category enum. It does not explicitly differentiate itself from the per-category siblings (ddb_search_spells, ddb_search_monsters, etc.), but the description of the 'all' aggregation mode implicitly explains what this tool adds over them.

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?

It gives clear conditions for category='all' versus a single category, and states the default ruleset plus how to switch to 2014. It never says when to prefer a sibling like ddb_search_spells over this tool, so routing guidance for the main ambiguity (broad multi-category vs. narrow single-category) is left to inference.

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