Skip to main content
Glama

ddb_search_backgrounds

Read-only

Search D&D Beyond backgrounds by name or source, including homebrew. Returns 2024 rules by default, supports 2014 and book filtering, and falls back to Open5e SRD without login.

Instructions

Search all D&D Beyond backgrounds (including homebrew). 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_backgrounds"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPartial background name (e.g. 'sage', 'criminal')
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

A3.9/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 description earns credit for adding auth requirements, a documented fallback source, and the default edition behavior. It still does not say anything about result ordering, empty-result behavior, or rate limits on the D&D Beyond side, so it is solid rather than rich.

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?

Four short sentences, front-loaded with the core purpose and the login prerequisite before the edition and source nuances. A little duplication with the schema (2024 default, source precedence) keeps it from being maximally tight, but nothing is padding.

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 usefully explains how to read the ruleset from returned results and covers the login/fallback branching an agent must handle. Missing only minor operational details such as ordering of results or what an empty search returns for a five-parameter, zero-required tool.

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 the schema already documents name, limit, offset, source, and rules_edition, including the 'source wins over rules_edition' rule and the 2024 default. The description largely restates those facts; the only genuinely new note is that the output's 'Rules:' line or [tag] identifies the ruleset, which is about output rather than parameter meaning.

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?

States a specific verb and resource: 'Search all D&D Beyond backgrounds (including homebrew)', with the scope spelled out. It is clearly a search tool rather than a getter, but it never names a sibling or contrasts itself with ddb_search_site or ddb_get_page, so sibling differentiation is left to the agent.

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 states the prerequisite (requires login for D&D Beyond content; run ddb_login) and what happens without it (falls back to the Open5e SRD), so the agent knows both the precondition and the degraded path. It also gives precedence guidance ('A source ... wins over rules_edition') and instructs when to switch editions.

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