Skip to main content
Glama

append_to_file

Destructive

Append text to the end of an existing file in a ShareLaTeX project and optionally verify its SHA-256 hash to avoid writing to stale content.

Instructions

Append text to the end of an existing file in a ShareLaTeX project.

This changes the remote project. The MCP client controls user confirmation.
expected_sha256 optionally guards against stale content (UTF-8 SHA-256). project is a project name or id. file_path must
already exist. A text document is updated in place. An uploaded file
is downloaded, extended, and re-uploaded.

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": {
      "project": "<project>",
      "file_path": "<file_path>",
      "content": "<content>"
    },
    "name": "append_to_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
projectYes
file_pathYes
expected_sha256No

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=false, so the safety profile is covered; the description adds genuine context beyond that: confirmation is the MCP client's responsibility, expected_sha256 guards against stale content, and the underlying mechanism differs for text documents (in-place update) versus uploaded files (download, extend, re-upload). It stops short of describing what an sha mismatch returns.

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?

Purpose is front-loaded in the first sentence, followed by mutation and parameter notes in short declarative lines with no filler. The line break mid-sentence in the parameter block is slightly untidy but does not impede reading.

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, open-world mutation with an output schema already covering returns, the definition supplies the key missing pieces: confirmation ownership, the stale-content guard, and the differing write mechanism per file type. Failure behavior on hash mismatch is the only notable omission.

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?

With 0% schema description coverage, the description carries the full burden and largely does so: project is 'a project name or id', file_path 'must already exist', and expected_sha256 is explained as an optional stale-content guard using UTF-8 SHA-256. The content parameter is left to obvious inference, which is acceptable.

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 opens with a specific verb and resource: 'Append text to the end of an existing file in a ShareLaTeX project.' The 'to the end' and 'existing file' qualifiers implicitly separate it from write_file and replace_in_file, though no sibling is named explicitly, which keeps it just short of a 5.

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?

'file_path must already exist' is a useful precondition that steers the agent away from using this for file creation, and the mutation notice signals it is a write path. However, it never explicitly says when to prefer this over write_file or replace_in_file, so the routing guidance is only implied.

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