Skip to main content
Glama

gograph_review

Read-onlyIdempotent

Summarizes the scope and risk of a change: changed symbols, covering tests, affected routes and env vars, and SQL involvement. Run after editing before committing to verify blast radius.

Instructions

Summarize the scope and risk profile of a change: which symbols changed, which tests cover them, which routes and env vars they touch, and whether SQL is involved. Requires symbol, uncommitted=true, or since=. WHEN TO USE: After editing — as a post-edit verification step before committing; confirms the blast radius matches expectations. Use uncommitted=true to review all current unstaged changes at once, or since= to review everything changed after that ref (commits plus uncommitted edits). NOT TO USE: For boundary constraint enforcement (use gograph_boundaries); for pre-edit planning (use gograph_plan). RETURNS: JSON with changed_symbols[], tests[], routes[], env[], errors[], and a risk object (public_api, touches_sql, touches_routes, touches_env).

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": "gograph_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of your checkout or worktree (alias cwd).
sinceNoGit ref (e.g. 'HEAD~3', 'main'); review every declaration changed between it and the working tree
symbolNoThe name of the target symbol to run the design review for (e.g. 'AuthService')
intentionNoRationale; required with an active session.
session_idNoSession from session_create; omit for none.
uncommittedNoSet to true to review all uncommitted/modified changes in the repository

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.26
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "Git ref (e.g. 'HEAD~3', 'main'); review every declaration changed between it and the working tree",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv1.7.21
    • changedInput schema / properties / intention / description
      Previous value: -"Technical rationale, required for analytical calls selecting an active session."New value: +"Rationale; required with an active session."
    • changedInput schema / properties / root / description
      Previous value: -"Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean."New value: +"Absolute path of your checkout or worktree (alias cwd)."
    • changedInput schema / properties / session_id / description
      Previous value: -"Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session."New value: +"Session from session_create; omit for none."
  3. Changed3 schema fields changedv1.7.18
    • addedInput schema / properties / intention
      Added value: +{
      +  "description": "Technical rationale, required for analytical calls selecting an active session.",
      +  "type": "string"
      +}
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.",
      +  "type": "string"
      +}
  4. Addedv1.5.3
  5. Removedv1.5.3
  6. Changed2 schema fields changedv1.4.70
    • changedInput schema / properties / symbol / description
      Previous value: -"The symbol to review"New value: +"The name of the target symbol to run the design review for (e.g. 'AuthService')"
    • changedInput schema / properties / uncommitted / description
      Previous value: -"Set to true to review all uncommitted changes"New value: +"Set to true to review all uncommitted/modified changes in the repository"
  7. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), but the description adds a real precondition the schema does not enforce — one of symbol, uncommitted=true, or since=<ref> is required despite required:[] — and it discloses the return shape, which matters because no output schema exists. It stops short of describing error semantics or the cost of a wide since range, so it is strong rather than complete.

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?

Front-loaded with the one-line purpose, then labeled WHEN TO USE / NOT TO USE / RETURNS sections that scan cleanly. The RETURNS enumeration is dense but load-bearing given the absence of an output schema; a small amount of the mode-selection wording could be tightened.

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 six parameters, no output schema, and a read-only mutation-free profile, the description supplies everything an agent needs: the purpose, the invocation-mode constraint, sibling routing, and the full return contract including the risk object fields. Nothing material is missing for correct selection and invocation.

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 description earns an extra point by adding semantics the schema cannot express: the mutual requirement among symbol/uncommitted/since, and the clarification that since includes both commits and uncommitted edits. The intention and session_id parameters are left entirely to the schema, which is acceptable at full coverage.

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?

"Summarize the scope and risk profile of a change" pairs a specific verb with a specific resource, then enumerates exactly what is reported (changed symbols, covering tests, routes, env vars, SQL involvement). An agent can distinguish this from gograph_boundaries and gograph_plan without opening any schema.

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?

Explicit WHEN TO USE (post-edit verification before committing) and NOT TO USE with two named alternatives and the condition that selects each. It further disambiguates the two invocation modes: uncommitted=true for all unstaged changes at once versus since=<ref> for commits plus uncommitted edits after that ref.

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