Skip to main content
Glama

search_pack_contents

Searches inside every installed asset pack, including packs a map lacks, to choose packs by content at preflight or when listed assets are sparse; read-only and needs no running Dungeondraft.

Instructions

Search INSIDE every installed asset pack, including packs this map lacks.

list_assets sees only the packs this map includes, and list_asset_packs
only names the rest. Use this at preflight, or when list_assets comes up
thin, to choose packs by what they contain. Read-only; Dungeondraft need not
be running.

Terms match asset paths and the pack's own tags. match_mode: 'tokens'
(every word, any order) or 'substring'. Not synonyms: "mug" will not find
a tankard.

Per term, `matched_by_pack` counts every match in each pack, and `best`
holds the top paths (`limit` per term, 80 shared), grouped by pack.
`packs_found` says, for each pack with a match, whether this map includes
it and whether the running Dungeondraft has it loaded.

Packs whose authors opted out of third-party tools reading them are not
searched; they are listed under `not_searched`.

A path from a pack the map does not include cannot be placed here. To use
it: preview_assets to look, then prepare_map_with_packs(filename,
packs=[ids]), which keeps the map's current packs and adds these. A pack
Dungeondraft has not loaded cannot be included until it is.

packs: limit the search to these pack ids.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "searches": "<searches>"
    },
    "name": "search_pack_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
packsNo
categoryNoObjects
searchesYes1 to 8 terms, e.g. ['pergola', 'well', 'hay bale'].
match_modeNotokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: read-only, no running Dungeondraft required, author opt-outs excluded and surfaced under `not_searched`, matched terms hitting paths and pack tags, and a stated non-feature ('mug' will not find a tankard). It also flags the hard constraint that a path from an unincluded or unloaded pack cannot be placed, which is exactly the failure mode an agent would otherwise walk into.

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?

Long but earned: the differentiation comes first, then matching semantics, then the return-shape explanation, then the remediation path. No filler sentences and no repetition of the schema or title.

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?

There is no output schema, so the description explains the return payload itself (matched_by_pack counts, `best` top paths with the 80 shared cap, packs_found flags, not_searched) and covers the cross-tool workflow needed to actually use a found path. For a 5-parameter, no-annotation tool this is about as complete as a description can be without an output schema.

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 only 20%, and the description compensates for most of it: match_mode's two values and their meaning, `limit` as per-term with an 80 shared cap, and `packs` as a pack-id restriction. The notable gap is `category` (default 'Objects'), which is never mentioned despite materially narrowing the search; 'Terms' also only implicitly maps to `searches`.

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?

Opens with a specific verb+resource and scope: 'Search INSIDE every installed asset pack, including packs this map lacks.' It immediately distinguishes itself from list_assets (sees only included packs) and list_asset_packs (only names the rest), so an agent can pick it without opening any 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?

Explicit when-to-use: 'at preflight, or when list_assets comes up thin, to choose packs by what they contain.' It names the alternatives and the exact condition that routes an agent here instead of to them, plus a downstream workflow (preview_assets then prepare_map_with_packs) for acting on results.

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

Deploy Server

Other Tools