Skip to main content
Glama

ddb_search_races

Read-only

Search D&D Beyond races and subraces, including homebrew, by partial name or sourcebook. Falls back to the Open5e SRD without login and supports 2014 or 2024 rulesets.

Instructions

Search all D&D Beyond races and subraces (including homebrew). Not character-specific. Requires login for D&D Beyond content (run ddb_login); without it, falls back to the Open5e SRD. A source lists one book's entries and wins over rules_edition. 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_races"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPartial race name (e.g. 'elf', 'tiefling')
limitNoMax results (default 30)
offsetNoSkip N results for pagination
sourceNoBook: slug (phb-2024), short name or title. Lists or picks that book's version, of either edition; wins over rules_edition. "homebrew" lists homebrew entries only.
rules_editionNoRuleset: '2024' (default) or '2014'.2024

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.0
    • 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": "Book: slug (phb-2024), short name or title. Lists or picks that book's version, of either edition; wins over rules_edition. \"homebrew\" lists homebrew entries only.",
      +  "type": "string"
      +}
  2. First observedv2.10.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly and open-world; the description adds substantial behavior the annotations do not: an auth prerequisite with a named login tool, a degradation path to SRD content when unauthenticated, the default edition, source precedence over rules_edition, and how the output labels the ruleset ('Rules:' line or [tag]). This is exactly the kind of context that prevents a wrong call.

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?

Five dense sentences, front-loaded with purpose and scope, then prerequisites, fallback, defaults, and output cues. Every sentence carries decision-relevant information with no filler.

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?

No output schema exists, but the description covers the return-labeling convention, and it covers the auth/fallback dimension that most affects results. An agent has everything needed to call this correctly and interpret which ruleset it got back.

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 coverage is 100%, so the baseline is 3; the description nevertheless adds meaning about interactions the schema states only locally – that a source selection beats rules_edition and that homebrew is a valid source choice. The precedence explanation is the real value-add beyond per-parameter docs.

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?

Specific verb and resource ('Search all D&D Beyond races and subraces'), plus explicit scope qualifiers (includes homebrew, not character-specific). An agent can immediately tell this apart from character-oriented tools like ddb_get_character without opening any schema.

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

Usage Guidelines4/5

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

Gives clear operating context: login is required for D&D Beyond content via ddb_login, and without it the tool falls back to Open5e SRD. Also states the default ruleset and the source-over-edition precedence rule. It stops short of explicitly naming a sibling alternative for the narrower case, so it is not a 5.

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