Skip to main content
Glama

ddb_search_monsters

Read-only

Find monsters in D&D Beyond by name, CR, type, size, or source. Returns a summary list of matches; use a separate lookup for complete stat blocks.

Instructions

Search the D&D Beyond monster compendium by name, CR, type, size, or source. Returns a summary list with each entry's source and edition tag. Where a monster exists in both editions, only the rules_edition version is listed and the other is counted as hidden. A source lists the book's entries of either edition (no twin hiding; at most 50 unless list_all) and wins over rules_edition; a book of the other edition adds a note. Lists at most 50 matches, with the exact total and a hint on narrowing; list_all: true lists every match (use only after a search has reported the total and size). Use ddb_get_monster for the full stat block. Works logged out (free D&D Beyond content; the rest is listed as not available without logging in), and falls back to the Open5e SRD when D&D Beyond can't be reached. source: "homebrew" requires login. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ddb_search_monsters"
  }
}

Input Schema

NameRequiredDescriptionDefault
crNoChallenge Rating filter (e.g. 0.25, 1, 5, 20). Valid values: 0, 0.125, 0.25, 0.5, 1–30; any other value returns an 'Unknown CR' error
nameNoPartial name to search for (e.g. 'goblin', 'dragon')
sizeNoSize filter (e.g. 'large', 'tiny')
typeNoMonster type filter (e.g. 'undead', 'fiend', 'beast')
sourceNoRestrict to one sourcebook — its short code (e.g. 'mm-2024', 'cos', 'rthw', as shown in brackets in results), short name, or full title. Matches reprints too. An unknown or non-matching book returns an error naming the alternatives. Wins over rules_edition. Pass 'homebrew' to list homebrew entries only.
list_allNoList every match instead of the first 50. Use only after a search has reported the total and size; a full list can be hundreds of KB.
rules_editionNoRuleset: '2024' (default) or '2014'.2024

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.0.0
    • changedInput schema / properties / cr / description
      Previous value: -"Challenge Rating filter (e.g. 0.25, 1, 5, 20)"New value: +"Challenge Rating filter (e.g. 0.25, 1, 5, 20). Valid values: 0, 0.125, 0.25, 0.5, 1–30; any other value returns an 'Unknown CR' error"
    • addedInput schema / properties / list_all
      Added value: +{
      +  "description": "List every match instead of the first 50. Use only after a search has reported the total and size; a full list can be hundreds of KB.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / rules_edition
      Added value: +{
      +  "default": "2024",
      +  "description": "Ruleset: '2024' (default) or '2014'.",
      +  "enum": [
      +    "2014",
      +    "2024"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Restrict to one sourcebook — its short code (e.g. 'mm-2024', 'cos', 'rthw', as shown in brackets in results), short name, or full title. Matches reprints too. An unknown or non-matching book returns an error naming the alternatives. Wins over rules_edition. Pass 'homebrew' to list homebrew entries only.",
      +  "type": "string"
      +}
  2. First observedv2.10.2

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description still adds substantial context beyond them: the 50-match cap with exact total and narrowing hint, twin-hiding across editions, source-vs-rules_edition precedence, logged-out operation with free content and a note for the rest, and an Open5e SRD fallback. Those are operational behaviors annotations cannot express, which is exactly the above-baseline value this dimension rewards.

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 and cross-referenced to ddb_get_monster, and nearly every sentence carries information. However, the paired clauses about twin hiding versus source listing are dense and slightly run-on, taking a second read to parse.

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?

There is no output schema, and the description compensates by describing the return shape (summary list with source and edition tag, exact total plus narrowing hint, ruleset named by the 'Rules:' line or [tag]). For a seven-parameter optional-filter search tool, nothing an agent needs in order to call it correctly 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 coverage is 100%, so every parameter is already documented, including the valid CR value list and the enum for rules_edition. The description adds cross-parameter meaning the schema cannot carry (source overriding rules_edition, homebrew requiring login, list_all being gated on a prior search), but the individual parameter semantics largely duplicate the schema. The richer interaction notes place it above the baseline rather than at it.

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 ('Search the D&D Beyond monster compendium') plus the actual filter axes (name, CR, type, size, source), and explicitly contrasts with the sibling 'ddb_get_monster for the full stat block'. An agent can distinguish this from the get-monster tool 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?

Gives real when/when-not guidance: use list_all only after a search has reported the total and size, use ddb_get_monster for full stat blocks, use rules_edition='2014' for 2014 rules, and note that source requires login for 'homebrew'. Precedence rules (source wins over rules_edition) are spelled out rather than left to inference.

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