Skip to main content
Glama

ddb_get_spell

Read-only

Fetches the full description of any D&D spell by name from D&D Beyond, including spells not known to a character; falls back to Open5e SRD and supports 2014 or 2024 rules.

Instructions

Get the full description of any spell in the D&D Beyond compendium by name. Not limited to a character's known spells. Requires login for D&D Beyond content; without it, falls back to the Open5e SRD. A source picks one book's version 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

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": {
      "name": "<name>"
    },
    "name": "ddb_get_spell"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSpell name (e.g. 'Fireball', 'Hunter\'s Mark')
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.4/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing the auth requirement, the fallback data source when unauthenticated, the precedence rule that source overrides rules_edition, the default edition, and how the output signals which ruleset was used. These are exactly the runtime behaviors an agent cannot infer from structured fields.

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 the purpose, then layers auth/fallback and edition behavior in short, information-dense sentences. Nearly every clause earns its place, though the precedence rule is stated twice (source wins over rules_edition) in slightly different words.

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?

With no output schema, the description compensates by explaining the 'Rules:' line and [tag] convention that identifies the returned ruleset, and it covers auth, fallback source, and edition defaults. Nothing an agent needs to call this correctly and interpret the result 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 all three parameters are already documented, including the source-over-rules_edition precedence. The description reinforces the default edition and precedence but adds little parameter meaning beyond the schema, other than noting how to read the resolved ruleset from output.

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 ('Get the full description of any spell in the D&D Beyond compendium by name') and immediately scopes it with 'Not limited to a character's known spells', which distinguishes it from character-bound lookups. An agent knows exactly what it retrieves and over what corpus.

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 conditions: use it for any spell by name, with login-gated D&D Beyond content and an Open5e SRD fallback otherwise, plus a default 2024 ruleset. It does not explicitly route to a sibling search tool or state when not to use it, so it stops short of full alternative guidance.

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