Skip to main content
Glama

apps_file_commit

Destructive

Deliver a completed app-workspace upload atomically to a relative workspace path, using SHA-256 to replace existing files safely without publishing or executing them.

Instructions

Atomically deliver a completed app-workspace upload to a relative workspace path. Omit expectedSha256 only for a new file; supply the existing file sha256 to replace it. Does not publish, save or execute the file.

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": {
      "workspaceId": "<workspaceId>",
      "reference": "<reference>",
      "path": "<path>"
    },
    "name": "apps_file_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
referenceYes
workspaceIdYes
connectionRefNoThe host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.
expectedSha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectionRef
      Added value: +{
      +  "description": "The host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is supplied. The description adds real context beyond that: atomic delivery and the negative scope 'Does not publish, save or execute the file'. It still omits what destruction means concretely when replacing an existing file, and any auth or connection prerequisite for the host connection.

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?

Three short sentences, front-loaded with the action, then the conditional parameter rule, then the negative scope. Every sentence carries a distinct payload and nothing is padded.

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?

This is a destructive, open-world mutation with five parameters, 20% schema coverage and no output schema, so the description must carry more. Key gaps remain: what 'reference' identifies, what path is relative to, what happens to an existing file during replacement, and what the call returns. The negative scope sentence helps but does not close these.

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 only 20%, but the description compensates on the most ambiguous parameter by spelling out the expectedSha256 rule for new versus replacement files. It leaves reference, path (relative to what root) and the multi-host role of connectionRef unexplained beyond the schema's own one-line note, so coverage is better than baseline but incomplete.

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 and resource: atomically delivering a completed app-workspace upload to a relative workspace path. The verb 'commit' plus 'app-workspace upload' distinguishes it from the nearby apps_file_export and file_upload siblings, though it does not name a competing alternative explicitly.

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?

The description gives genuine conditional guidance: omit expectedSha256 only for a new file, supply the existing sha256 to replace it. But it never says when to pick this over file_upload or apps_import_commit, nor states the prerequisite that the upload must already be completed beyond the phrase 'completed app-workspace upload'.

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