Skip to main content
Glama

pf2e-compendium-filter-actors

Read-onlyIdempotent

Search COMPENDIUM packs for actors with Pathfinder 2e structured filters (pf2e worlds only): bestiary browsing by level, traits, rarity, size, HP, AC.

CRITICAL DATA FORMATS

  • traits are an open set of lowercase slugs ("undead", "kobold").

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": ["npc"], "traits": ["kobold"], "level": { "min": -1, "max": 1 }, "rarity": ["unique"] }

Input Schema

NameRequiredDescriptionDefault
acNoArmor Class range.
nameNoSubstring of document name, case-insensitive.
sizeNoSize short codes (OR).
typeNoPF2e actor types (OR).
levelNoCreature level range; negative bounds are valid.
limitNoPage size 1..200, default 50.
maxHpNoMax HP range.
offsetNoSkip first N results.
rarityNoRarity (OR).
traitsNoALL-OF: every listed trait must be present. Lowercase slugs.
packIdsNoRestrict to these Actor packs; omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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, closed-world), and the description still adds substantial behavior: the bridge module version gate (8.11.0+), that documents lacking a filtered field are excluded, that results carry level (null when absent), and that output is sorted by level then name. The response envelope (total, hasMore, {name, uuid}) is disclosed even though there is no output schema.

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?

The core purpose is front-loaded in the first sentence, followed by clearly labeled sections for data formats, filter semantics, response shape, and a compact worked example. No filler sentences; each line contributes a rule or a pointer the agent would otherwise have to guess.

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?

For an 11-parameter, nested-object filter tool with no output schema, the description supplies the missing pieces: result envelope, result fields, sort order, null-level behavior, and the version prerequisite. Pagination is handled by the schema's limit/offset, and hasMore is described, so nothing essential is left unstated.

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, but the description adds real semantics the schema cannot express: cross-filter AND, in-array OR, inclusive range bounds with min = max for exact match, and exclusion of documents missing a filtered field. One flaw: the blanket 'values inside one array with OR' conflicts with the traits parameter, which the schema explicitly documents as ALL-OF, so an agent could mis-predict trait filtering.

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?

States a specific verb and resource ('Search COMPENDIUM packs for actors'), scopes it to 'pf2e worlds only', and enumerates the structured facets (level, traits, rarity, size, HP, AC) that make it distinct from keyword search. It does not explicitly contrast itself with the closest siblings, compendium-search and pf2e-compendium-filter-items, or with actor-filter (world actors), leaving that differentiation implicit in the 'COMPENDIUM' emphasis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied through 'bestiary browsing' and the COMPENDIUM/pf2e-worlds scoping, and the description does route the agent to follow-ups ('uuid-resolve, or compendium-browse with ids to batch-load'). However, it never says when to prefer this over compendium-search, actor-filter, or the dnd5e sibling, and gives no explicit exclusions.

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