Skip to main content
Glama

Propose a multi-file change (published for review)

propose_files

Propose atomic create, edit, rename, move, or delete operations across multiple files for review; the whole set applies all-or-nothing only after human accept or armed auto-accept.

Instructions

Proposes a change set across MULTIPLE files as ONE atomic proposal — create new files, edit existing ones, rename/move them (rename also moves into a folder), or delete them (e.g. add chapters/intro.typ and #include it from main.typ). It never changes the project directly: the set is published for review — if this project has agent auto-accept armed it may apply automatically (the response says status "applied"), otherwise it awaits a human Accept in Galley. Inspect the returned status to know what happened; the whole set lands all-or-nothing. For edit ops each search must match that file's current text exactly once; failures come back as structured data — refine and retry. Delete is a recoverable soft-delete. Paths must be safe in-tree project paths (leading slash, no traversal, not under /.galley). For binary files you may either inline the bytes (create-binary, base64) or, when the source already lives on the machine running the Galley kernel, reference it by ABSOLUTE local path (create-binary-path) so no base64 transfer is needed — both publish the same content-addressed pointer. A single proposal is capped at 32 ops (with aggregate size limits); to change more files, split the work across multiple sequential propose_files calls — each is reviewed and lands independently (there is no import-group transaction spanning proposals).

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>",
      "request": "<request>",
      "ops": "<ops>"
    },
    "name": "propose_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesThe file operations — applied all-or-nothing on Accept.
projectYesThe projectId of the project to work on, as returned by list_projects.
requestYesA short human-readable title for the whole change set (shown in the review card).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2026.11.16
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "The projectId of the project to work on, as returned by list_projects.",
      +  "maxLength": 256,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "request",
      -  "ops"
      -]New value: +[
      +  "project",
      +  "request",
      +  "ops"
      +]
  2. Changed3 schema fields changedv2026.10.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / ops / items / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "create",
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Canonical path of the NEW file, e.g. /chapters/intro.typ.",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Full text of the new file.",
      -        "maxLength": 2097152,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "edits": {
      -        "description": "Search/replace blocks, applied in order against this file's text.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "replace": {
      -              "description": "Replacement text.",
      -              "maxLength": 65536,
      -              "type": "string"
      -            },
      -            "search": {
      -              "description": "Exact text to find in this file — must match exactly once.",
      -              "maxLength": 65536,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "search",
      -            "replace"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 64,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "kind": {
      -        "const": "edit",
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Exact path of the EXISTING file to edit (as listed by list_files).",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path",
      -      "edits"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "rename",
      -        "type": "string"
      -      },
      -      "newPath": {
      -        "description": "Destination path — also moves into a folder (e.g. /draft.typ → /chapters/intro.typ). Must be a free, safe in-tree path. References (#include/#image) are NOT auto-rewritten — bundle the corrective `edit` ops in the same proposal.",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Exact CURRENT path of the EXISTING file to move (as listed by list_files).",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path",
      -      "newPath"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "delete",
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Exact path of the EXISTING file to remove (recoverable soft-delete on Accept).",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bytes": {
      -        "description": "The file's bytes, base64-encoded (standard base64; decoded size is capped).",
      -        "maxLength": 89478490,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "create-binary",
      -        "type": "string"
      -      },
      -      "mime": {
      -        "description": "Optional media type; inferred from the bytes/extension when omitted.",
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Canonical path of the NEW binary file, e.g. /figures/logo.png.",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path",
      -      "bytes"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "create-binary-path",
      -        "type": "string"
      -      },
      -      "mime": {
      -        "description": "Optional media type; inferred from the file's bytes/extension when omitted.",
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "path": {
      -        "description": "Canonical IN-TREE path of the NEW binary file, e.g. /figures/logo.png.",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "srcPath": {
      -        "description": "ABSOLUTE path of the source file on the machine running the Galley kernel — the kernel reads its bytes locally (no base64 transfer). Decoded size is capped at the blob limit.",
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path",
      -      "srcPath"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / ops / items / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "create",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Canonical path of the NEW file, e.g. /chapters/intro.typ.",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Full text of the new file.",
      +        "maxLength": 2097152,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "edits": {
      +        "description": "Search/replace blocks, applied in order against this file's text.",
      +        "items": {
      +          "properties": {
      +            "replace": {
      +              "description": "Replacement text.",
      +              "maxLength": 65536,
      +              "type": "string"
      +            },
      +            "search": {
      +              "description": "Exact text to find in this file — must match exactly once.",
      +              "maxLength": 65536,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "search",
      +            "replace"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 64,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "kind": {
      +        "const": "edit",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Exact path of the EXISTING file to edit (as listed by list_files).",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path",
      +      "edits"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "rename",
      +        "type": "string"
      +      },
      +      "newPath": {
      +        "description": "Destination path — also moves into a folder (e.g. /draft.typ → /chapters/intro.typ). Must be a free, safe in-tree path. References (#include/#image) are NOT auto-rewritten — bundle the corrective `edit` ops in the same proposal.",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Exact CURRENT path of the EXISTING file to move (as listed by list_files).",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path",
      +      "newPath"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "delete",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Exact path of the EXISTING file to remove (recoverable soft-delete on Accept).",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "bytes": {
      +        "description": "The file's bytes, base64-encoded (standard base64; decoded size is capped).",
      +        "maxLength": 89478490,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "create-binary",
      +        "type": "string"
      +      },
      +      "mime": {
      +        "description": "Optional media type; inferred from the bytes/extension when omitted.",
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Canonical path of the NEW binary file, e.g. /figures/logo.png.",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path",
      +      "bytes"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "create-binary-path",
      +        "type": "string"
      +      },
      +      "mime": {
      +        "description": "Optional media type; inferred from the file's bytes/extension when omitted.",
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Canonical IN-TREE path of the NEW binary file, e.g. /figures/logo.png.",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "srcPath": {
      +        "description": "ABSOLUTE path of the source file on the machine running the Galley kernel — the kernel reads its bytes locally (no base64 transfer). Decoded size is capped at the blob limit.",
      +        "maxLength": 1024,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path",
      +      "srcPath"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it states the set is never applied directly, that auto-accept may flip the result to status 'applied', that a human Accept in Galley is otherwise required, that the set is all-or-nothing, and that delete is a recoverable soft-delete. It also discloses failure semantics (search must match exactly once, failures return structured data) and the 32-op/aggregate-size caps.

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?

It is a dense single block, but it is front-loaded with the atomic-multi-file framing before operational detail, and nearly every sentence carries non-obvious constraints. The workflow/review sentences could be tightened slightly, but nothing reads as filler or repeated schema content.

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

Completeness5/5

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

For a no-annotation, no-output-schema mutation tool with a complex six-variant ops union, this covers what an agent must know to call it correctly: intent, atomicity, review/auto-accept outcome, how to detect the result via `status`, retry behavior on edit failures, reference-rewrite caveats on rename, and the op cap. Only return-value details are left implicit, and the description points the agent at `status` for that.

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 baseline is 3 and the schema already documents project, request, and the ops union. The description still adds real meaning above it: the exactly-once match rule for `search`, that rename does not rewrite #include/#image references and corrective edits must be bundled, that binary sources may be inlined base64 or referenced by absolute kernel-local path, and the safe in-tree path constraints.

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?

Opens with a specific verb and scope: 'Proposes a change set across MULTIPLE files as ONE atomic proposal', then enumerates the exact operation kinds (create, edit, rename/move, delete). The capitalized 'MULTIPLE' plus 'ONE atomic proposal' is the discriminator an agent needs versus a single-file write, so the tool's identity is unmistakable without opening the 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 concrete when-to-use signal (multi-file change that must land together) and explicit when-not guidance for scale: 'a single proposal is capped at 32 ops ... split the work across multiple sequential propose_files calls — each is reviewed and lands independently (there is no import-group transaction spanning proposals)'. It also routes binary work between create-binary and create-binary-path. It stops short of naming a single-file sibling as the alternative for one-file changes, which keeps this below a 5.

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