Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AALY. If you published it, claim ownership there.

save_document

DestructiveIdempotent

Save the project's PRD, architecture, decisions, test report, user guide or notes (Markdown). One current document per kind: saving again replaces it and bumps its version. status 'approved' records that the user explicitly agreed; put how they agreed in approval_note. New content without status 'approved' returns an approved document to draft.

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": {
      "kind": "<kind>"
    },
    "name": "save_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
titleNo
statusNo
contentNoThe document in Markdown.
project_idNoProject id, e.g. 'PRJ3'. Get it from whoami or list_projects.
approval_noteNoThe user's words, e.g. "User replied 'yes, build it'".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Project id, e.g. 'PRJ3'. Optional when whoami returned a default_project_id."New value: +"Project id, e.g. 'PRJ3'. Get it from whoami or list_projects."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: one current document per kind, re-saving replaces and bumps the version, and the non-obvious rule that new content without 'approved' reverts an approved document to draft. This explains the destructiveHint/idempotentHint profile, but omits things like what happens when content is omitted or how title is handled on overwrite.

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?

Three tight sentences with zero filler, front-loaded with what is saved and immediately followed by the two rules that matter most (replacement/versioning, then approval status).

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 destructive, no-output-schema mutation this covers the essential risk surface: what gets overwritten, what versioning does, and the approved-to-draft side effect. Gaps remain around the optional content field and why project_id is not required, but nothing critical to calling it 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 only 50%, and the description compensates by giving real meaning to the enum values 'approved' (the user explicitly agreed) and to approval_note (put how they agreed there), which the schema only labels. 'title' and the project-scoping default are still unexplained in either place.

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?

Names a specific verb and resource ('Save the project's PRD, architecture, decisions, test report, user guide or notes') and enumerates the document kinds, so the agent knows exactly what is written. It never mentions the read-side counterpart (get_documents) by name, so sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the document kinds and by the rule that 'status approved' records explicit user agreement, which tells the agent when to set that field. There is no explicit when-not-to-use guidance or routing to an alternative tool for reading or updating docs.

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