Skip to main content
Glama

Add a document

add_document

Writes or saves a new document on the project (notes from a meeting, a plan, a report, a brief), or a new text file, under this person's name. A document is Markdown or plain text, at a name ending in .md, .markdown, .txt or .text; other text (data/prices.csv, config/site.yaml, src/app.ts) is kept as a file, up to 1 MB. A document takes a summary of one or two sentences for the project's overview and search: Alcoven keeps the summary given and writes none itself.

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": {
      "path": "<path>",
      "title": "<title>",
      "body": "<body>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
didNoWhat the person did themselves in this work, in a few words they agree with: what they chose or decided, what they corrected, rewrote or wrote, what they checked and against what. Start with the verb, in the past tense, in their language: "Chose the three-step plan; fixed the March totals; rewrote the opening". Say nothing of what you did, what they did not do, how long it took, or a share of the work. Pass no did when their part was the request and the yes. Everyone who sees the change reads it, people outside the team included. At most 300 characters.
forNoWho this is for. "team" when any of it is for the team only: pay, rates or costs, a line the client should not read, personal data. Alcoven then keeps it from people who see only some folders until the person answers in Alcoven. "everyone" when all of it is fine for everyone who sees the folder.
whyNo
bodyYesThe document in Markdown, or the file's text.
pathYesWhere it goes, folders allowed: research/pricing-interviews.md for a document, data/prices.csv for a text file.
readNoThe § addresses you read for this work, kept with asked. Alcoven adds what it saw you read on this project since you last wrote on it, going back two hours at most.
askedNoWhat the person asked for, in their own words, as they said it: their request only, never the rest of the conversation, and left out when they do not want it shared. It goes on the project with the change, so everyone who sees the change, and their AIs, see why it was made.
titleYesA document's title. A file is known by its name.
for_whyNoWith "team": a few words saying what in it is for the team, like "our day rate for the bank". The person and the project's managers read them.
projectNoThe project's slug, from open_project, like acme. Not needed when a § address names the project, or when the person is on one project.
summaryNoFor a document: one or two sentences on what it holds, for the project's overview and search.
asked_fromNoWhere the request came from, when the person says so, in a few words: "Tuesday's call with the bank", "Ines's email".

Output Schema

NameRequiredDescriptionDefault
draftNo
copiedNo
addressYes
checkedNo
sensitiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / sensitive
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • removedOutput schema / properties / part_offer
      Removed value: -{
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedInput schema / properties / did
      Added value: +{
      +  "description": "What the person did themselves in this work, in a few words they agree with: what they chose or decided, what they corrected, rewrote or wrote, what they checked and against what. Start with the verb, in the past tense, in their language: \"Chose the three-step plan; fixed the March totals; rewrote the opening\". Say nothing of what you did, what they did not do, how long it took, or a share of the work. Pass no did when their part was the request and the yes. Everyone who sees the change reads it, people outside the team included. At most 300 characters.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag non-read-only, non-destructive, non-idempotent, and the description adds real context beyond that: attribution under the person's name, a 1 MB cap, and the guarantee that the caller's summary is kept verbatim rather than generated by the system. It does not say what happens if the path already exists, which matters given idempotentHint=false.

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 action and followed by the format rules and the summary rule. Dense but mostly earning its space; the closing clause about Alcoven writing no summary is awkwardly phrased but carries a real constraint.

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 12-parameter create tool with 92% schema coverage and an output schema, the description supplies the things structured data cannot: what qualifies as a document, the size limit, attribution, and summary semantics. Remaining gaps (overwrite behavior) are minor against that coverage.

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 92%, so nearly every parameter is already documented in the schema. The description only adds a little, mainly reinforcing what 'summary' is for and that the server will not synthesize it; the many governance-style parameters (did, asked, for, why) are left entirely to the schema.

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?

States a specific verb pair (writes/saves) and the resource (a new document or text file on the project), plus concrete examples of what counts. The document-vs-file split by extension implicitly separates it from a generic file upload, but no sibling is named, so differentiation is inferred rather than stated.

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?

It makes clear this is for creating something new and gives the document/file boundary, but it never says what to use instead when a document already exists (edit_document is an obvious sibling) or when a short note belongs in add_note. Usage is implied rather than routed.

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