Skip to main content
Glama

validate_change_with_workspace

Performs workspace-wide checks to detect import cycles and deleted public symbols before writing file changes, preventing breaking modifications to shared modules and public APIs.

Instructions

Workspace-aware gate (Ring 0 + 0.5 + 0.7 + R2). Adds cross-file checks on top of validate_change: detects when a change introduces a module import cycle, or deletes a public symbol that other files in the workspace still reference. Slower than validate_change because it walks the workspace tree; prefer this when the change touches a public API or shared module.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_contentYesFull file contents the agent intends to write.
old_contentNoOptional baseline for cost-aware regression.
pathYesAbsolute or workspace-relative path the agent intends to write.
workspace_rootYesAbsolute path to the project root. Used to build a one-shot workspace index for cycle detection and public-symbol reference tracking.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the tool performs cross-file checks (cycle detection, public symbol deletion) and is slower. However, it does not describe error behavior, side effects, or return values, leaving gaps in transparency.

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 three sentences, front-loaded with the key purpose, and every sentence adds value. No wasted words.

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?

The tool has 4 parameters, no output schema, and performs complex cross-file checks. The description fails to explain what the tool returns (e.g., success/failure, list of issues) and does not cover side effects or state changes. Incomplete for the complexity level.

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 the schema already documents all parameters. The description adds no additional parameter-level meaning beyond what is in the schema. Baseline 3 is appropriate.

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 clearly states the tool is a workspace-aware gate that adds cross-file checks on top of validate_change, specifically detecting module import cycles and deletion of public symbols. It distinguishes itself from the sibling validate_change by noting it is slower and preferred for public API or shared module changes.

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?

The description explicitly advises to prefer this tool when the change touches a public API or shared module, and notes it is slower than validate_change, implying it is not for quick local checks. It does not explicitly state when not to use, but the guidance is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wei9072/aegis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server