Skip to main content
Glama

ddb_search_equipment

Read-only

Search D&D Beyond equipment by name, type, rarity, source, or rules edition to find weapons, armor, gear, and magic items; falls back to Open5e SRD when not logged in.

Instructions

Search the D&D Beyond item/equipment compendium by name, rarity, or type. Covers mundane weapons (Longsword, Shortbow), armour (Plate, Chain Mail), adventuring gear, and magic items. Filter by rarity='common' to see mundane equipment along with Common magic items (rarity matches exactly, so 'common' excludes Uncommon). Requires login for D&D Beyond content; 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_equipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPartial item name (e.g. 'sword', 'cloak')
typeNoItem type filter (e.g. 'weapon', 'armor', 'wondrous')
rarityNoRarity filter (e.g. 'rare', 'legendary', 'uncommon'); matches exact (rare does not include Very Rare)
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. Changed3 schema fields changedv3.0.0
    • changedInput schema / properties / rarity / description
      Previous value: -"Rarity filter (e.g. 'rare', 'legendary', 'uncommon')"New value: +"Rarity filter (e.g. 'rare', 'legendary', 'uncommon'); matches exact (rare does not include Very Rare)"
    • 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.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds meaningful behavior on top: authentication dependency with a named fallback source (Open5e SRD), source-precedence rules ('a source ... wins over rules_edition'), exact-match rarity semantics, and the default 2024 ruleset. It even explains how the returned ruleset is signalled via the 'Rules:' line or [tag], which is behavior an agent could not 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?

Roughly five tight sentences, front-loaded with the core purpose and followed by filtering, auth, and edition notes in a logical order. No filler, though the density makes it read as a run-on list and the rarity/source caveats could be slightly better separated for scanability.

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 compensates by explaining the login fallback, the default edition, and how results signal their ruleset. For a five-parameter search tool with full schema coverage and read-only annotations, that covers what an agent needs to invoke it correctly, with only the result shape (pagination/count) left implicit.

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 description coverage is 100%, so the schema already carries parameter meaning and the baseline is 3. The description adds genuine value on precedence (source overrides rules_edition) and reiterates exact rarity matching, but name/type filtering is left to the schema. This is a modest increment rather than a full semantic layer.

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?

The first sentence names a specific verb ('Search') and resource ('D&D Beyond item/equipment compendium') and enumerates the query axes (name, rarity, type), so the agent knows exactly what class of operation this is. It also scopes the content covered (mundane weapons, armour, gear, magic items). It does not name a sibling such as ddb_get_equipment to draw the search-vs-fetch line explicitly, which keeps it below 5.

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?

Offers concrete usage context: use rarity='common' to surface mundane equipment, and note that exact matching means 'common' excludes Uncommon. It also states what happens without login (Open5e SRD fallback) and how source interacts with rules_edition, which helps the agent choose parameters. It stops short of an explicit 'use this instead of X' routing statement.

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