Skip to main content
Glama

write_doc

Save agent-generated notes, summaries, and context to a semantic vault so they can be retrieved in later sessions. Supports .txt, .md, .docx, .html, and .csv files.

Instructions

Save new information or agent-generated content to a semantic vault for future retrieval. Use this only with semantic vaults, to persist important context, summaries, or notes that should be remembered across sessions. Supports .txt, .md, .docx, .html, and .csv formats.

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": {
      "vault_name": "<vault_name>",
      "file_path": "<file_path>",
      "content": "<content>",
      "generated_by": "<generated_by>"
    },
    "name": "write_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
file_pathYes
overwriteNo
vault_nameYes
generated_byYes

Output Schema

NameRequiredDescriptionDefault
file_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden, and it omits the most consequential trait: that an existing file can be replaced (the schema exposes an 'overwrite' flag defaulting to false, but the description never mentions overwriting or its default). It also says nothing about required permissions, whether writes are reversible, or how a conflicting file_path is handled for a mutation tool.

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 sentences, front-loaded with the core action and followed by scope and format support. Every sentence is relevant, though the format sentence spends words on extensions that add little to a write operation.

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

Completeness3/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 no prose, but for a 5-parameter mutation tool with zero annotation and zero schema-description coverage the definition leaves real gaps. The required 'generated_by' parameter and the 'overwrite' flag are the most important omissions.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not. The format list hints that file_path takes an extension, and 'semantic vault' implies vault_name, but 'generated_by' (required), 'content', and 'overwrite' receive no explanation at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description leads with a specific verb+resource ('Save new information or agent-generated content to a semantic vault') and names the artifact types it handles. It distinguishes itself from the episode/skill-oriented siblings by scoping to semantic vaults, though it never names those alternatives directly.

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?

"Use this only with semantic vaults" is an explicit scope restriction, and "persist important context, summaries, or notes that should be remembered across sessions" defines the intent clearly. It stops short of naming when NOT to use it or which sibling to pick for episodic or skill content.

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