Skip to main content
Glama

Stage

stage

Stage file changes into your per-app draft without deploying: writes, exact-match edits, line edits, inserts, a patch, deletes and moves — every commit shape, with optional per-file expect_blob CAS. No deploy, no code change. A patch stages alone, never mixed. Write/delete rules span the whole draft, not one call: a path may be written only once, and a written or deleted path cannot be edited, inserted into, or deleted again — even in a later call. Put the final content in one write, or ship/discard the draft and start over.

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": {
      "app": "<app>"
    },
    "name": "stage"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
editsNoExact-match replacements in existing files. Several edits may share a path, but never one written or deleted anywhere in this draft; never mix exact edits with line edits or inserts on one path.
movesNoFile renames.
patchNoOne unified diff, or a `*** Begin Patch` block. A draft carrying a patch carries nothing else: stage it alone, then ship.
writesNoFull-file writes (new files or replacements). One write per path for the whole draft: a second write to a staged path is refused, even in a later call — put the final content in one write.
deletesNoPaths to delete. Never for a path written or edited anywhere in this draft.
insertsNoInsertions after a line (0 is the top). Never for a path written or deleted anywhere in this draft.
line_editsNoLine-range replacements (inclusive, 1-based read_files numbering). Never for a path written or deleted anywhere in this draft, and never mixed with exact edits on one path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is not read-only, not destructive, not idempotent; the description supplies the far more important behavior: mutation rules persist across the entire draft and across later calls, a path may be written only once, and a written or deleted path can never be edited or re-deleted. It also surfaces per-file expect_blob CAS and the conflict semantics, none of which the annotations convey.

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?

Front-loads the capability list in one em-dash clause, then devotes the remaining sentences to the non-obvious draft-wide invariants. Every sentence either enumerates a capability or states a rule an agent would otherwise discover by failing; nothing is filler.

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?

With no output schema and 8 parameters, the description covers capability scope, exclusivity constraints, CAS behavior, and the draft lifecycle well enough to call the tool correctly on the first try. The only soft spot is conflict/recovery outcomes, which are left to the schema's expect_blob notes rather than explained here.

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 the per-field docs carry most of the load, but the description adds cross-parameter meaning the schema only partly states: patch must be exclusive, exact edits and line edits cannot mix on one path, and the one-write-per-path rule spans calls rather than one invocation. It does add value above baseline, though some constraint text is restated from the schema's own field descriptions.

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?

Names a specific verb and resource ('Stage file changes into your per-app draft') and immediately enumerates the commit shapes it accepts (writes, exact-match edits, line edits, inserts, patch, deletes, moves). The phrase 'No deploy, no code change' plus the pointer to ship/discard separates it from deploy-oriented siblings without the agent needing to open 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 clear operating context: stage first, then ship, and if the draft is fouled, 'ship/discard the draft and start over'. It also encodes a hard selection rule ('A patch stages alone, never mixed') and a preference ('Put the final content in one write'). It stops short of explicitly naming which sibling to call for the deploy step beyond the implicit 'ship', so it is strong but not fully comparative.

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.