Skip to main content
Glama

Check change scope

check_change_scope

Compares Git changes or supplied files to approved boundaries. Flags out-of-scope, protected, dependency, migration, auth/config, deletion, and existing-user edits.

Instructions

Compare the current Git changes (or provided files) against the approved boundaries. Flags out-of-scope files, protected paths, dependency changes, migrations, auth/config edits, deletions, and touched pre-existing user changes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_change_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory. Defaults to the MCP client's current working directory.
filesNoExplicit file changes to check instead of reading Git status.
specIdNoTaskSpec id saved under .promptpilot/specs/.
allowedFilesNoAllowed globs when no specId is given.
protectedPathsNoProtected globs when no specId is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully lists the categories that will be flagged, including out-of-scope files, protected paths, dependency changes, migrations, auth/config edits, deletions, and touched pre-existing changes. It still omits whether the operation is strictly read-only, how flags are returned, and what happens when boundaries are missing.

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?

The description is two concise sentences with the purpose front-loaded and the flag categories following directly. Every phrase contributes useful information, and there is no redundant or filler wording.

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

Completeness3/5

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

The tool has five optional parameters, no annotations, and no output schema, so the description should do more to explain boundary resolution and result shape. It adequately covers the purpose and flagged categories, but an agent still lacks guidance on how approved boundaries are selected and how the flags are returned.

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 100%, so all five parameters are already documented in the input schema. The description adds implicit context for provided files and approved boundaries, but it does not explain precedence between specId, allowedFiles, and protectedPaths beyond what the schema provides.

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 states a specific verb and resource: comparing current Git changes or provided files against approved boundaries. It clearly identifies the scope-checking purpose, but it does not explicitly differentiate this tool from similar-sounding siblings such as review_implementation or verify_implementation.

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 first sentence implies when to use the tool by describing the comparison against approved boundaries, and it notes an alternate input mode via provided files. However, it gives no explicit guidance on when to choose this tool versus alternatives, nor any exclusions or workflow context.

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