Skip to main content
Glama

github_mcp.plan_changes

Declare or update intended file changes for an editable job before modifying files, mapping each path to a conventional commit subject.

Instructions

Declare or update intended file changes for an editable job before writing, patching or deleting files. Maps each path to its conventional commit subject. Returns job ID and sorted planned paths. Invalidates preview fingerprint and check results; does not edit files or create commits.

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": {
      "job_id": "<job_id>",
      "messages": "<messages>"
    },
    "name": "github_mcp.plan_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesExisting editable job identifier returned by create_job.
messagesYesObject mapping repository-relative paths to conventional commit subjects, e.g. {"src/app.py":"fix: handle timeout"}. Subjects must use a supported type and 3–120 character message.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.2
    • addedInput schema / properties / job_id / description
      Added value: +"Existing editable job identifier returned by create_job."
    • addedInput schema / properties / messages / description
      Added value: +"Object mapping repository-relative paths to conventional commit subjects, e.g. {\"src/app.py\":\"fix: handle timeout\"}. Subjects must use a supported type and 3–120 character message."
  2. First observedv1.0.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description adds the crucial non-obvious consequence that planning invalidates the preview fingerprint and check results. It also pre-empts a likely misinterpretation of readOnlyHint=false by clarifying no files are edited and no commits created, and it states what the call returns.

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?

Four short sentences, front-loaded with the core action and followed immediately by the mapping rule, the return value, and the side effects. No sentence is filler; the negation clause at the end prevents the most costly misunderstanding.

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?

With 2 required parameters fully documented, an output schema covering return values, and annotations supplying the safety profile, the remaining burden on the description is side effects and scope, both of which are addressed. Nothing an agent needs to call this correctly on a nested-object parameter set is missing.

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 coverage is 100%, with job_id, the messages map, path/subject mapping, supported commit types and the 3-120 character limit all documented in the schema. The description restates the path-to-subject mapping but adds no format or edge-case detail beyond it, 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?

The description opens with a specific verb+resource ("Declare or update intended file changes for an editable job") and immediately scopes it against the actual mutation tools by naming writing, patching and deleting as the downstream actions. The closing clause "does not edit files or create commits" separates it cleanly from siblings like write_file and apply_patch.

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?

It states the timing condition explicitly ("before writing, patching or deleting files") and the prerequisite that the job be editable, which is real when-to-use guidance. It stops short of naming which alternative to call when you want to actually mutate files or when re-planning is unnecessary, so it is clear context without explicit exclusions.

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