Skip to main content
Glama

capture_fact

Store durable facts for cross-session memory so AI tools retain stable knowledge about subjects, attributes, decisions, and context, with reconciliation handled in batch.

Instructions

Store a durable fact worth remembering across sessions. A durable fact is a stable piece of knowledge about whatever this store is used for: its subjects, their attributes, their relationships, decisions, and context. Ignore ephemeral statements (current tasks, transient mood). Call this proactively whenever you learn something this store should keep.

Capture is fast — the server stores the fact immediately. Entity extraction, domain classification, and cross-session reconciliation run in batch when you call consolidate. Capture frequently without slowing the conversation.

Exact same-session duplicates are dropped immediately. Cross-session exact duplicates are also rejected during the next consolidation run — safe to capture the same fact from multiple conversations without polluting the knowledge graph.

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": {
      "content": "<content>"
    },
    "name": "capture_fact"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe fact to capture
confidenceNoHow confident (0.0–1.0)
importanceNoHow important (0.0–1.0). High for medical/safety, low for casual preferences
domain_hintNoSuggested domain. Domains are whatever this store uses, not a fixed list — call get_schemas to see them, reuse an existing one where it fits, and propose a new short lowercase noun when none does. Omit it and the server will classify.
capture_contextNoWhat the conversation is about right now
source_event_idNoID of the event that prompted this capture

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.30.1

TDQS

A4.1/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 load and does so well: it discloses write timing (stored immediately), deferred processing (entity extraction, domain classification, reconciliation run at consolidate), and dedup semantics for both same-session (dropped immediately) and cross-session (rejected at next consolidation). This is exactly the kind of non-obvious behavior the schema cannot express. It omits what a capture returns (no output schema exists) and any failure/permission behavior, keeping it out of the top score.

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?

Three short paragraphs: purpose and scope, performance/timing model, then dedup guarantees — a sensible front-loaded order with no filler. Minor overlap between 'Capture is fast' and 'Capture frequently without slowing the conversation', but the repetition reinforces the intended cadence rather than wasting space.

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 six-parameter write tool with no annotations and no output schema, the description covers the essential unknowns: latency model, deferred processing, and duplicate handling. The only meaningful gap is the return value — an agent is not told whether it receives an ID or confirmation — which matters slightly more 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 100%, including detailed domain_hint guidance and 0–1 ranges for confidence and importance, so the baseline is 3. The description reinforces the semantics of 'content' by defining what counts as a durable fact, but adds nothing about confidence, importance, capture_context, or source_event_id beyond what the schema already says.

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 and resource ('Store a durable fact') and immediately defines the resource: 'a stable piece of knowledge about... subjects, their attributes, their relationships, decisions, and context.' It also carves out what does NOT belong ('ephemeral statements (current tasks, transient mood)'), which is what distinguishes it from log_event. An agent can identify this tool without opening the schema.

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 explicit when-to-use guidance ('Call this proactively whenever you learn something this store should keep') and a when-not rule ('Ignore ephemeral statements (current tasks, transient mood)'). It also clarifies ordering relative to consolidate (batch processing happens there). It stops short of naming log_event as the destination for those ephemeral statements, so the alternative is implied rather than stated.

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