Skip to main content
Glama

Get Review Context

review_context
Read-onlyIdempotent

Assembles review context for changed symbols in one call: fan-in, transitive impact with risk level, implementing types and likely covering tests. Use before reviewing or refactoring code.

Instructions

Assemble review context for a set of changed symbols in ONE call: per symbol the fan-in, transitive impact with a risk level, implementing types and likely covering tests that find_usages, impact_of_change, find_implementations and find_tests_for answer one symbol at a time. Use it before reviewing or refactoring. It names no callers (ask find_usages or impact_of_change) and returns no code (ask explain_symbol).

Returns a JSON array ordered by symbol NAME - index it by 'symbol', never by request position. Per entry: symbol, resolvedKind, directUsages, transitiveImpact, risk (none/low/medium/high), implementations (names, for an interface; test doubles too, which find_implementations filters by default), coveringTests (testType, testMethod, project, matchReason), coveringTestsTotal, coveringTestsTruncated. An unresolved name reads resolvedKind 'not_found' with a 'note', no risk and 'nearest' (a close declared name, when there is one). A 'note' also flags a risk graded on the direct fan-in or on implementers alone, and unread VB, F# or markup code. For a bare name several types share, the counts are their union and no note says so - find_usages names the namesakes.

'coveringTests' is find_tests_for's list, strongest evidence first, capped at 50 per symbol: the cap keeps the 50 strongest rows, so name guesses go first, strong rows too once there are more than 50. find_tests_for stops at the same 50, so narrow the symbol rather than re-query. 'invokesTotal' (strong rows) and 'dispatchTotal' (rows reaching the symbol through an interface, abstract or virtual member) count the WHOLE list and can exceed the rows shown; coveringTestsTotal minus both is the name guesses. For a qualified method, directUsages and transitiveImpact include callers credited through such a member - see 'viaContract' / 'viaContractNote'.

Read-only. symbols must not be empty and resolve as in find_usages.

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": {
      "sessionId": "<sessionId>",
      "symbols": "<symbols>"
    },
    "name": "review_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesThe changed type/method names to assemble review context for: a type's simple name, or a member bare or as Type.Member.
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46521
    • changedInput schema / properties / symbols / description
      Previous value: -"The changed type/method names to assemble review context for."New value: +"The changed type/method names to assemble review context for: a type's simple name, or a member bare or as Type.Member."
  2. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, but the description adds substantial behavior beyond them: the result array is ordered by symbol name and must be indexed by 'symbol' rather than request position, unresolved names yield resolvedKind 'not_found' with 'nearest', notes flag degraded risk grading and unread VB/F#/markup, and bare names shared by several types produce unioned counts silently. It also discloses the 50-per-symbol cap semantics and how coveringTestsTotal/invokesTotal/dispatchTotal relate to the rows shown.

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 and well organized: what it does, when to use it, then a detailed return contract. It is dense and long, and the coveringTests accounting paragraph is heavy, but with no output schema most of that detail is load-bearing rather than padding.

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?

For a complex composite tool with no output schema, the description documents the return shape entry-by-entry, the failure/partial modes, truncation limits, and cross-references to the siblings that answer sub-questions. An agent has enough to call it and interpret the result correctly without further discovery.

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 constraints the schema omits: symbols must not be empty and must resolve as in find_usages. That is real added meaning about resolution and validation behavior rather than a restatement of the schema.

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?

Opens with a specific verb and resource ('Assemble review context for a set of changed symbols') and immediately states the distinguishing property: it does in ONE call what find_usages, impact_of_change, find_implementations and find_tests_for do one symbol at a time. An agent can distinguish it from those siblings from the first sentence alone.

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 when-to-use ('Use it before reviewing or refactoring') and explicit exclusions with named alternatives: no callers, ask find_usages or impact_of_change; no code, ask explain_symbol. That is the full when/when-not/alternative triad.

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