Skip to main content
Glama

relay_save_fact

Append a fact or decision to shared memory, optionally linking it to a parent fact to preserve reasoning. Flags conflicting forks and rejects credential-like content.

Instructions

Append a fact to shared memory. Facts are never overwritten. Pass parent_fact_id to say which earlier fact this builds on. If a sibling with different content already builds on the same parent, the response flags a potential fork. Never store credentials: content that looks like a key or password is rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe fact or decision, in one or two sentences (max 2000 chars)
session_idYesIdentifier of the current session/conversation
written_byYesWhich tool/model is writing, e.g. "claude-desktop" or "cursor"
parent_fact_idNoID of the fact this builds on; omit for a root fact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 does well: it discloses that facts are never overwritten, that fork conditions are surfaced in the response, and that credential-like content is rejected at write time. It omits permission/identity requirements and whether a written fact can be retracted, but the core behavioral profile is covered.

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?

Four short sentences, each earning its place: purpose and invariant first, then the linking parameter, then response behavior, then the credential rule. No filler and nothing buried.

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 4-parameter write tool with no annotations and no output schema, the description covers durability semantics, linking, fork signaling, and a hard input rejection rule. Missing only operational details such as permissions or how to recover from a flagged fork.

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 100%, so all four parameters are already documented in the schema, including parent_fact_id's 'omit for a root fact' semantics. The description adds the fork consequence of using parent_fact_id, but otherwise restates what the schema says. Baseline 3 applies.

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?

Starts with a specific verb and resource ('Append a fact to shared memory') and immediately states the append-only invariant, which cleanly separates it from the read-oriented siblings (relay_get_context, relay_get_important_facts, etc.). An agent can identify the operation 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?

Explains the condition for using parent_fact_id ('to say which earlier fact this builds on') and gives an explicit exclusion ('Never store credentials'). It stops short of naming when to prefer this tool over the relay_* read/resolve siblings, but the write-vs-read distinction is clear from context.

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