Skip to main content
Glama

Write project file

update_project_file
DestructiveIdempotent

Create or replace a document in one of the user's letX projects. If the path exists its content is replaced and the previous version is kept in letX's history, so the change can be undone; if it does not exist the file is created. Use when the user asks to change or add a file in a project. Docs: https://letx.app/mcp/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesdocument path, e.g. main.tex or chapters/intro.tex; created if it doesn't exist
contentYesthe FULL new content of the document (it replaces the current content)
project_idYesthe project's id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"project id from list_projects"New value: +"the project's id"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds meaningful context beyond them by explaining the replace-vs-create branch and that the previous version is preserved in letX history and can be undone. That softens an otherwise destructive operation. It omits permission/auth requirements and failure modes, so not a 5.

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?

Two tight sentences front-load the create/replace semantics, then the history/undo consequence, then the usage trigger. No sentence is redundant and the docs link is a brief appendix.

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 3-required-param write tool with no output schema and annotations covering the safety profile, the description covers create/replace behavior, reversibility, and when to invoke it. It does not address error cases (missing project, path conflicts) or what the call returns, leaving a small gap.

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 description coverage is 100%, so the schema already documents path, content, and project_id, including the 'FULL new content' replacement warning and the create-if-absent behavior at the path level. The description reinforces but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 pair and resource: 'Create or replace a document in one of the user's letX projects.' An agent can immediately separate it from read_project_file, list_project_files, and create_project without consulting any schema.

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?

Gives a clear trigger condition: 'Use when the user asks to change or add a file in a project,' which pins it to file writes rather than project creation. It does not explicitly name the alternative (read_project_file) or state when NOT to use it, so it falls short of full routing guidance.

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