Skip to main content
Glama

Save a document

save_data
Destructive

Save durable organisational knowledge to the target context as source Data.

Use this when the user asks to save or remember something for the organisation, when an interview topic is complete, or as soon as the conversation or your own work establishes knowledge future agents should know and the layer lacks: a decision and its reason, a finding, how something works, a correction no Data supports yet. Do not wait to be asked. Distil the substance into clean, self-contained Markdown; do not save a raw transcript, personal preferences, or private life.

Before choosing a source_key for an established topic, call search with the topic, node_types=['data'], and data_origins=['saved']. Read the full source before reusing its exact returned source_key: a save replaces it, so preserve unaffected facts. Create a new stable key only when no matching saved source exists.

Use this for material the company should keep as evidence: the saved write-up becomes an ordinary source document, runs through ingestion and curation, and can be deduplicated, kept current, connected to and cited by relevant Pages. It does not directly edit the curated layer; use create_page when a subject genuinely has no Page, or edit_page when an existing Page is wrong.

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>",
      "context_id": "<context_id>"
    },
    "name": "save_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional short, specific title for the source Data document.
contentYesClean, self-contained Markdown containing the durable organisational knowledge to save. Distil the substance and privilege what the user stated over unverified inference; never paste a raw conversation transcript.
context_idYesThe destination context id from list_contexts. Required for writes.
source_keyNoOptional stable topic key. Saving again with the same key updates the existing source instead of creating a duplicate. Search the topic with node_types=['data'] and data_origins=['saved'] first, then reuse an exact returned key when present; omit it for a one-off note.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description corroborates this with the crucial disclosure that reusing a `source_key` replaces the existing source and that unaffected facts must be preserved. It also explains downstream behavior: the write becomes an ordinary source document that runs through ingestion and curation and may be deduplicated, connected, or cited. With annotations carrying the safety profile, this adds useful but not exhaustive behavioral context (no detail on ingestion latency or failure modes).

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 paragraphs, each front-loaded around a distinct concern (what it is, when to call it, key selection, then what happens downstream). It is dense but nearly every sentence carries operational weight; the only mild waste is the repetition of the `search` parameters that the schema already spells out.

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

Completeness5/5

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

For a destructive write tool with four parameters, the definition covers the trigger conditions, the pre-write lookup, the replace-on-same-key hazard, the content quality bar, and the downstream lifecycle. With an output schema present and 100% schema coverage, nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the floor, but the description genuinely extends it: 'Read the full source before reusing its exact returned source_key' and 'Create a new stable key only when no matching saved source exists' define the reuse decision rather than restating the field. The distillation rule for `content` reinforces but largely repeats the schema's own wording.

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 ('Save durable organisational knowledge to the target context as source Data') and immediately distinguishes itself from curated-layer tools by naming `create_page` and `edit_page` as the alternatives for page authoring. An agent can tell what this tool produces (a source document, not a curated page) 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit triggers ('user asks to save or remember something', 'interview topic is complete', 'as soon as the conversation... establishes knowledge future agents should know'), tells the agent not to wait to be asked, and enumerates exclusions: no raw transcripts, no personal preferences, no private life. It also routes to `create_page` when no Page exists and `edit_page` when an existing Page is wrong, plus a pre-check workflow with `search` before choosing a key.

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.

Resources