Skip to main content
Glama

impact_of

Find what breaks before you change a PHP class or method: dependent classes, callers, implementations, routes, and tests, nearest first with relations and confidence.

Instructions

Call this before changing a class or a method, instead of searching for its usages with grep. What may break when it changes: every class that depends on it, directly or through others (callers, subclasses, implementations, code that instantiates or references it, senders and handlers of a message), nearest first, each with the relation that reaches it and the weakest confidence on the way, then its methods reaching the change with the source lines of their calls. Follows methods, not whole classes: a class is reached only through the methods that use the change. Also reaches the callers of the interface or parent method a method implements (INFERRED), and, in a separate list, the code possibly affected through the state the method writes. Lists the tests to run apart, found through test helpers (fakers). Stops at a service receiving the change among others (a tagged collection) and at inherited code shared with other subclasses, which are listed but not followed. Lists the routes reaching the change, each with its chain down to the change. A large impact comes compact (routes cut, farther classes by name, indirect tests counted) and still names every direct dependent: the default answer is the one to use, other options are several times larger.

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

Input Schema

NameRequiredDescriptionDefault
nameYesShort or fully qualified name, Class::method, route (POST /orders), channel or API operation; service@Name in a multi-service repository.
depthNoHow many relations away to follow (default 3).
limitNoEntries per list (default 40). Leave it out.
formatNoLeave it out: text (default). full spells out every relation, about 5 times larger; json for scripts.
sectionNoOnly one list, uncut.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: it discloses traversal semantics (follows methods, not whole classes), inference (INFERRED interface/parent callers), boundary behavior (stops at services and shared inherited code, listed but not followed), and output compaction for large impacts. These are exactly the behavioral traits an agent needs before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key instruction is front-loaded and most sentences carry substantive information, but the body is a dense wall of run-on clauses that is hard to parse on first read. It earns its length in content but loses points on structure and readability.

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?

There is no output schema, so the description must explain return values, and it does: nearest-first ordering, relation and weakest-confidence annotations, source lines of calls, separate test and state lists, and route chains. For a complex analysis tool this is complete enough to call correctly.

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, but the description adds real guidance beyond the schema: it tells the agent to leave limit and format out, explains that 'full' is about 5x larger, and frames the default as the intended answer. It does not add much on depth or section beyond what the schema already says.

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?

States a specific verb and resource: it answers 'what may break when it changes' for a class or method, enumerating dependents, relations, confidence, and tests. It explicitly distinguishes itself from grep-based usage search, so an agent can tell what it is and what it is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Call this before changing a class or a method') and names the alternative it replaces ('instead of searching for its usages with grep'). It also steers option choice by saying the default answer is the one to use and other options are several times larger.

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

Deploy Server

Other Tools