Skip to main content
Glama

palace_query

Retrieve an epistemic-weighted, token-budgeted Mental Palace briefing with active and historical claims plus ColdStore pointers so agents recall context within strict limits.

Instructions

Retrieve epistemic-weighted Mental Palace briefing, active/historical claims, and ColdStore pointers within a strict token/char budget profile.

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": {
      "query": "<query>"
    },
    "name": "palace_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
max_charsNo
budget_profileNoBudget profile ('compact_3b', 'balanced_7b', or 'full_cloud').
lazy_read_chunksNo
include_historicalNo
include_cold_excerptsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two useful traits — output is budget-bounded by token/char limits, and ColdStore content comes back as pointers rather than full excerpts (implying a dereference step). It says nothing about read-only safety, pagination, or what the briefing structure looks like.

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?

A single dense sentence with no filler and the artifact list front-loaded. It is efficient but packs three undefined domain terms into one clause, which costs first-read comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter tool with no output schema and no annotations, the description covers the high-level return artifacts and the budget constraint but not how budget profiles differ, what lazy_read_chunks does, or what the response shape is. Adequate as a minimum, incomplete for confident invocation.

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 only 17%, so the description must compensate; it partially does by tying the budget profile and historical/ColdStore inclusion to its stated outputs. However, lazy_read_chunks, max_chars semantics, and the default-true include flags get no explanation beyond their names, leaving real ambiguity for a 6-parameter tool.

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?

Has a concrete verb ("Retrieve") and names the returned artifacts: briefing, active/historical claims, ColdStore pointers. The domain jargon ("epistemic-weighted", "Mental Palace", "ColdStore") is opaque to a new agent, and no sibling (e.g., palace_recall, palace_dereference_chunks) is named to differentiate scope.

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

Usage Guidelines2/5

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

The only usage signal is implicit: fetch a budget-constrained briefing. There is no statement of when to pick this over palace_recall or palace_dereference_chunks, no prerequisites, and no exclusions, even though several siblings appear to overlap on retrieval.

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