Skip to main content
Glama

memory_think

Synthesized answer with citations and gap analysis (GBrain think parity).

Runs durable recall (default scope excludes working), then composes a cited prose answer plus explicit gaps. For named-entity or competitor questions, call memory_recall with a short keyword anchor first — synthesis quality depends on retrieval. Prefer memory_think when you need prose + gaps after recall surfaced hits, or for open strategic questions. Default sources are current truth; pass include_superseded=true to include retired facts, or as_of= for transaction-time point-in-time grounding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNoMax source records to retrieve before synthesis
repoNoWorkspace slug; boosts repo-scoped memories in retrieval
as_ofNoISO-8601 timestamp: ground the answer in what was current at that instant (same filter and rules as memory_recall as_of). Omit for live current truth. A future or unparseable value is a 422 invalid_body on as_of.
queryYesQuestion to answer from team memory
githubNoGitHub owner/repo; boosts github-tagged memories
token_budgetNoApprox token budget for source packing
include_supersededNoWhen true, synthesize from current truth plus superseded/merged history. Default is current truth only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / as_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "ISO-8601 timestamp: ground the answer in what was current at that instant (same filter and rules as memory_recall as_of). Omit for live current truth. A future or unparseable value is a 422 invalid_body on as_of."
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / include_superseded
      Added value: +{
      +  "default": false,
      +  "description": "When true, synthesize from current truth plus superseded/merged history. Default is current truth only.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely succeeds: it discloses that durable recall's default scope excludes working memory, that default sources are current truth only, and that synthesis quality depends on retrieval. It does not cover auth/permission requirements, cost or latency implications, or idempotency, so it is not fully complete.

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?

Purpose is front-loaded before the workflow and parameter guidance, and the structure is easy to scan. There is mild redundancy with the schema's descriptions of include_superseded and as_of, and jargon like 'GBrain think parity' adds little for an agent.

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?

An output schema exists, so return values need not be explained, and the description still covers the retrieval-then-synthesis workflow, scope defaults, and temporal options for a 7-parameter tool. It is slightly thin on operational concerns (permissions, expense) but complete enough to invoke correctly.

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 100%, so all seven parameters are already documented. The description's mention of include_superseded and as_of largely restates the schema's own text ('include retired facts', 'point-in-time grounding') rather than adding new semantics, so the baseline 3 is appropriate.

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?

The opening line states a specific verb+resource+output ('Synthesized answer with citations and gap analysis') and immediately scopes it ('runs durable recall... then composes a cited prose answer plus explicit gaps'). It also differentiates itself from the sibling memory_recall by naming it and the condition that selects it, so an agent can distinguish the two without opening either 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 routing guidance: 'call memory_recall with a short keyword anchor first' for named-entity or competitor questions, and 'prefer memory_think when you need prose + gaps after recall surfaced hits, or for open strategic questions.' This names the alternative and the exact conditions for choosing each.

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.