Skip to main content
Glama

pf2e-compendium-filter-items

Read-onlyIdempotent

Search COMPENDIUM packs for items with Pathfinder 2e structured filters (pf2e worlds only): equipment, spells, feats, ancestries, classes and 20 more Item types.

CRITICAL DATA FORMATS

  • traits are ALL-OF, traditions ANY-OF; do not confuse the two.

  • priceGold is per batch for batched goods like arrows.

Filters combine with AND, values inside one array with OR; ranges {min?, max?} inclusive (min = max for exact). Documents lacking a filtered field are excluded. The response has total and hasMore. Results are {name, uuid}: uuid-resolve, or compendium-browse with ids to batch-load. Requires bridge module 8.11.0+. Results carry level (null when absent), sorted by level then name.

EXAMPLES { "type": ["spell"], "level": { "min": 3, "max": 3 }, "traditions": ["arcane"], "priceGold": { "max": 5 } }

Input Schema

NameRequiredDescriptionDefault
nameNoSubstring of document name, case-insensitive.
typeNoPF2e item types (OR).
levelNoItem level range; spell RANK for spells.
limitNoPage size 1..200, default 50.
offsetNoSkip first N results.
rarityNoRarity (OR).
traitsNoALL-OF: every listed trait must be present. Lowercase slugs.
packIdsNoRestrict to these Item packs; omit for all.
categoryNoFeat category (OR): class, skill, general, ancestry, ...
priceGoldNoPrice range in gp (5 sp -> 0.5).
traditionsNoANY-OF: at least one shared tradition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile, and the description still adds substantive behavior: filter combination rules (AND across fields, OR within arrays), inclusive ranges, exclusion of documents lacking a filtered field, response shape (total/hasMore, {name, uuid}), sort order (level then name), and a bridge version requirement (8.11.0+). That is well beyond what annotations or schema disclose.

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 purpose, then clearly labeled format rules, filter behavior, response contract and an example — easy to scan. A little padding is spent restating schema facts (ALL-OF traits vs ANY-OF traditions, level = spell rank), which are already in the parameter descriptions.

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 11 parameters, nested objects and no output schema, the description carries the return-value burden itself, and it does: total/hasMore, {name, uuid}, level field and sort order. Combined with the version prerequisite and format caveats, an agent has everything needed to call it correctly.

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. The description adds real semantics the schema lacks, notably 'priceGold is per batch for batched goods like arrows' and a worked example payload showing nested range syntax. The traits/traditions and level-as-spell-rank restatements duplicate existing schema text, limiting the gain.

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+resource+scope: 'Search COMPENDIUM packs for items with Pathfinder 2e structured filters (pf2e worlds only)' and enumerates the covered item types. This clearly separates it from compendium-search, world-item-filter, pf2e-compendium-filter-actors and the dnd5e variant named in the sibling list.

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 an explicit environment constraint ('pf2e worlds only') and routes the agent onward: 'uuid-resolve, or compendium-browse with ids to batch-load'. It does not say when to prefer this over compendium-search/page-search for a plain keyword lookup, so the when-not half of the guidance is missing.

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