Skip to main content
Glama

file_update

Destructive

Atomically write one file, optionally guarded by If-Match

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

Input Schema

NameRequiredDescriptionDefault
bodyYesUTF-8 text or an object containing base64 bytes for a binary request body
pathYes
headersNo
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / headers / properties / If-None-Match
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's added value is 'atomically' and the If-Match guard, which are genuine behavioral details beyond the structured fields. However, for a destructive write it never says whether an existing file is overwritten, whether a missing file is created, or what happens on precondition failure.

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?

A single front-loaded clause with zero filler; the atomicity guarantee and the conditional guard both appear immediately. It is perhaps overly terse given the tool's complexity, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 4 parameters, a nested headers object accepting two alternative body encodings, destructive semantics, and no output schema, the description omits too much: body selection between UTF-8 text and base64 bytes, overwrite behavior, and failure modes are all unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, so the description needs to carry more weight than it does. It mentions If-Match only, leaving path, workspaceSlug, and the sibling conditional headers (If-None-Match, If-Unmodified-Since) that are visible in the nested schema without any explanation of their semantics or interaction.

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 gives a specific verb and resource ('write one file') plus a distinguishing trait ('atomically'), so the agent knows this is a single-file write rather than a bulk upload. It does not name or contrast with siblings like file_upload_create or file_action_create, which keeps it below 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no alternatives are named. The phrase 'optionally guarded by If-Match' hints at a concurrency-control scenario but never states the condition under which an agent should prefer a retry-safe conditional write.

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.