Skip to main content
Glama

ddb_search_class_features

Read-only

Find class, subclass, and optional class features by name, class or subclass, or level gained, with filters for source book and rules edition (2024 default, 2014 optional).

Instructions

Search class, subclass and optional class features by name, class or subclass, or level gained. 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_class_features"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPartial feature name (e.g. 'action surge', 'sneak attack')
levelNoLevel at which the feature is gained
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.
class_nameNoClass or subclass name filter (e.g. 'fighter', 'champion')
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 / class_name / description
      Previous value: -"Class name filter (e.g. 'fighter', 'rogue')"New value: +"Class or subclass name filter (e.g. 'fighter', 'champion')"
    • 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
Behavior4/5

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

Annotations cover read-only and open-world safety, and the description adds meaningful context on top: an auth requirement, a documented default edition, and the precedence rule that a source listing beats rules_edition. It even explains how the returned content signals its ruleset via the 'Rules:' line or [tag], which is real behavioral detail rather than restated structure.

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?

Five short sentences, each carrying a distinct fact: scope, auth prerequisite, source precedence, edition default, and output marker. It is front-loaded with purpose and free of filler, though the source/rules_edition point is stated twice in slightly different words.

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 seven optional parameters, no output schema, and a cross-cutting source/edition interaction, the description supplies the auth gate, the default, the precedence rule, and how to read the ruleset from the output. Only an explicit routing note to the sibling class search 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 the schema already documents all seven parameters. The description reinforces the source-versus-rules_edition interaction and the 2024 default, but that is largely a restatement of what the schema fields say, so the baseline of 3 applies.

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 description gives a specific verb (Search) and a precise resource (class, subclass and optional class features), plus the filter axes: name, class/subclass, level. That is clearly distinct from ddb_search_classes, which targets the classes themselves, though the description never names a sibling to contrast with.

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?

It states a hard prerequisite (run ddb_login first) and explains the selection logic for edition: 2024 by default, set rules_edition to '2014' for older rules, with source overriding rules_edition. It stops short of naming an alternative tool or stating when not to use this one.

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