Skip to main content
Glama

brain_state_get

Fetch one structured record by exact type and key to resume a task or read entity state saved earlier, without embedding, ranking, or similar-content dilution.

Instructions

Fetch one structured record by exact type+key - no embedding, no ranking, no dilution by similar-but-irrelevant content. Use this to resume a task or read entity state saved with brain_state_save.

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": {
      "type": "<type>",
      "key": "<key>"
    },
    "name": "brain_state_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4/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 usefully discloses that lookup is exact and non-ranked and that a single record is returned, but says nothing about behavior on a missing type+key, whether this is strictly read-only, or any auth/permission requirements.

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?

Two sentences, no waste, and the retrieval semantics are front-loaded before the usage hint. Every clause carries either differentiating or actionable information.

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

Completeness4/5

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

For a simple two-parameter read tool with no output schema, the description covers what it does, how it matches, and when to use it. The remaining gap — the shape of the returned record and error behavior — is minor but non-trivial given the absence of an output schema.

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 description coverage is 0%, so both required parameters are undocumented in the schema. "Exact type+key" adds real meaning — that these form a composite exact-match key with no fuzzy resolution — but the description never explains what values `type` accepts or that `key` is scoped within a type.

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 ("Fetch") and resource ("one structured record") plus the exact retrieval mechanism ("exact type+key"). The negative clauses ("no embedding, no ranking") differentiate it from the search-style siblings without naming them.

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 concrete usage context ("resume a task or read entity state saved with brain_state_save") and implicitly excludes semantic search by stressing exactness and no ranking. It stops short of an explicit when-not-to-use statement or naming the search alternative, so not a 5.

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