Skip to main content
Glama

query_state

Retrieve evidence-backed project state and expand spilled evidence records by question or evidence ID, giving agents cited context for decisions.

Instructions

Read evidence-backed project state or expand spilled evidence.

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": {
      "question": "<question>"
    },
    "name": "query_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYesQuestion or evidence ID to expand (e.g. 'ev-xxx')
project_idNo
session_idNoOptional current agent session identifier for isolating parallel sessions.
evidence_idNo
project_pathNoOptional target project workspace directory path (routes to that project's .project-memory/ when dynamic routing is enabled).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. Saying "Read" implies a non-destructive operation and "expand spilled evidence" hints at a specific behavior, but the description does not disclose side effects, permission or auth requirements, what "spilled" means, pagination, or return behavior.

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?

The description is a single front-loaded sentence with no filler. However, it compresses two distinct modes into one clause and uses the opaque term "spilled evidence" without structure or explanation.

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

Completeness2/5

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

The tool has five parameters, no annotations, and no output schema, so the description needs to do more work. It does not explain how project routing, session isolation, or evidence expansion operate, nor does it describe what a caller should expect back from the query.

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 60%, and the description only reinforces the question/evidence-ID idea behind expansion. It adds no meaning for project_id, session_id, project_path, or evidence_id beyond the vague phrase "spilled evidence," leaving several parameters dependent on the schema alone.

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?

The description gives a specific verb and resource: "Read evidence-backed project state." The secondary phrase "expand spilled evidence" adds a second mode, though "spilled evidence" is unexplained jargon. It does not explicitly differentiate from siblings such as project_context, but the core purpose is clear enough to identify the tool.

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 description states what the tool does but gives no explicit guidance on when to use it versus project_context, append_evidence, or the other siblings. It also does not mention prerequisites, exclusions, or the conditions that should lead an agent to choose this query tool over alternatives.

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