Skip to main content
Glama

ddb_search_racial_traits

Read-only

Search racial traits by name or species, including optional ones, and filter by source or 2014/2024 ruleset; log in first.

Instructions

Search racial traits, including optional ones, by name or species. Requires login — run ddb_login first if you haven't already. 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_racial_traits"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPartial trait name (e.g. 'darkvision', 'breath weapon')
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.
race_nameNoSpecies or race filter; also matches a subrace's base race (e.g. 'elf' matches High Elf)
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 / race_name / description
      Previous value: -"Race name filter (e.g. 'elf', 'dragonborn')"New value: +"Species or race filter; also matches a subrace's base race (e.g. 'elf' matches High Elf)"
    • 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/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real value on top by disclosing the authentication prerequisite and the source-over-rules_edition precedence rule. It also explains how to identify the ruleset in returned text, which annotations could never convey.

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 tight sentences, front-loaded with purpose, then the login prerequisite, then selector precedence, then the default edition. Minor overlap with the schema's rules_edition default and enum, but nothing is wasted or buried.

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 the 'Rules:' line or [tag] and covers the auth requirement for an open-world source. Pagination behavior and result-size expectations are left to the schema, which is acceptable given limit/offset are fully documented there.

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 already 100%, so the baseline would be 3. The description earns above baseline by stating the practical effect of 'source' defeating 'rules_edition' and by clarifying that the default result set is 2024 content, adding decision-relevant meaning beyond the field descriptions.

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?

Opens with a specific verb and resource ('Search racial traits') plus scope ('including optional ones, by name or species'), which is immediately actionable. It does not explicitly contrast itself with ddb_search_races, so the agent must infer the traits-vs-species distinction from the sibling name alone.

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 a concrete prerequisite ('Requires login — run ddb_login first if you haven't already') and states which selector wins when both are supplied. It stops short of naming an alternative tool or exclusion condition, so it is clear context rather than a full when/when-not routing rule.

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