Skip to main content
Glama

world-item-filter

Read-onlyIdempotent

Search the world's Items Directory (game.items) with D&D 5e structured filters (dnd5e worlds only). Returns paginated {id, name} entries; world-item-get gives full data. Filters combine with AND, values inside one array with OR. NOT an actor's inventory (item-list), NOT compendiums (dnd5e-compendium-filter-items).

CRITICAL DATA FORMATS

  • Ranges are {min?, max?}, inclusive. Items lacking a filtered field are excluded (rarity + spellLevel matches only rare spells).

  • The response has total and hasMore.

Input Schema

NameRequiredDescriptionDefault
nameNoSubstring of item name, case-insensitive.
typeNoItem types (OR).
limitNoPage size 1..200, default 50.
priceNoPrice range in gp.
folderNoFolder by id or name; recursive includes subfolders.
offsetNoSkip first N results.
rarityNoRarity (OR), camelCase: veryRare.
weightNoWeight range in lb.
identifiedNoFilter by the identified flag.
spellLevelNoSpell level 0..9 (0 = cantrip); spells only.
isContainerNoOnly containers.
spellSchoolNoSpell schools (OR), full words; spells only.
hasActivitiesNoOnly items with usable activities.
requiresAttunementNoOnly items that require attunement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds behavior beyond that: paginated response of {id, name} only, presence of total and hasMore, AND across filters with OR inside an array, and the non-obvious exclusion rule that items lacking a filtered field drop out (rarity+spellLevel matches only rare spells). Those are precisely the semantics an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and routing, then a short labeled block for the non-obvious data-format traps. Every sentence carries information an agent would otherwise get wrong; nothing is restated from the schema.

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?

For a 14-parameter, zero-required filter tool with no output schema, the description covers response shape, pagination signals, combination logic, and exclusion behavior. The remaining gap is result ordering (no sort parameter or documented default order), which affects how an agent interprets offset/limit paging.

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 100%, so the baseline is 3 and the schema already documents each field, including enum casing (veryRare) and spell-only fields. The description earns extra credit for the combination semantics — filters AND together while values inside one array OR — which the schema does not state anywhere. It stops short of discussing interaction between specific filters beyond the rarity/spellLevel note.

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 ("Search the world's Items Directory (game.items)") plus the scoping constraint (dnd5e worlds only), and explicitly names the two tools it is not (item-list for actor inventories, dnd5e-compendium-filter-items for compendiums). An agent can pick it out of the sibling list without opening the schema.

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?

Gives explicit routing rules: use world-item-get for full document data, item-list for an actor's inventory, dnd5e-compendium-filter-items for compendiums. The 'NOT ... NOT ...' phrasing supplies genuine exclusions rather than implied usage, which is exactly what the sibling set requires.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources