Skip to main content
Glama

file_append

Add a section to a shared file without sending the existing body.

Markdown and HTML only. Diagram and sheet files are rejected; replace those with file_update. The server reads the latest version, joins content at position with separator, and writes a new immutable version. The section must fit in one call; the resulting file may be larger, because the client never sends it.

Returns file_id, version, total_chars, and appended_chars. The body is not returned. A published file is mirrored to the bucket the same way file_update does. A stale expected_version writes nothing and returns the same conflict shape as file_update. Omit it to append to whatever is latest.

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": {
      "file_id": "<file_id>",
      "content": "<content>"
    },
    "name": "file_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoOverride agent identity
contentYesThe new section only (markdown or HTML). Do not send the existing body. The server joins it onto the latest version.
file_idYesFile UUID to append to
positionNo'end' adds the section after the file (default). 'start' adds it before the file.end
separatorNoText placed between the existing body and the new section. Default is a blank line.
expected_versionNoLatest version from file_get. Omit to append to whatever is latest (sections do not need to overwrite each other). A mismatch writes nothing and returns the same status=conflict shape as file_update: file_id, current_version, updated_by, updated_at, total_chars, and a short preview. The live file body is not included.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/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 delivers: the server reads the latest version, joins at position with separator, writes a new immutable version, mirrors published files to the bucket, and does no write on a stale expected_version. The one-call size limit on the section is also disclosed, which is the kind of constraint only prose can supply. Minor deduction because the described failure mode is covered again in the schema rather than adding new detail.

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?

Dense but front-loaded: the core operation comes first, then type restrictions, then server-side mechanics, then return and conflict behavior. Every sentence carries information, though the conflict-shape enumeration partially duplicates the expected_version schema description.

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?

An output schema exists and the description still names the returned keys (file_id, version, total_chars, appended_chars) and notes the body is not returned, which is exactly what an agent needs to chain calls. For a six-parameter mutation with no annotations, nothing material 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 baseline is 3; the description goes beyond per-parameter docs by explaining the composite semantics — how content, position and separator combine server-side into a new version. It adds marginal value on expected_version by emphasizing that conflicts return the file_update shape and that omitting it is safe for appends.

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 — "Add a section to a shared file without sending the existing body" — and immediately distinguishes itself from file_update by rejecting diagram and sheet files. An agent can tell this apart from file_update or file_create without opening a 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?

Names the exclusion (Markdown and HTML only; diagram and sheet files are rejected) and routes those cases explicitly to file_update. It also states when to omit expected_version ("to append to whatever is latest") versus when to supply it, so both the use case and the alternative are covered.

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.