Skip to main content
Glama

Request a review with local tests

request_review_with_context
Idempotent

Like request_review, but also sends excerpts of the tests of the files the pull request changes, read from your local checkout, so the review sees them. Only when local_context_status says enabled. Push first: head_sha is the commit you read at, and if the pull request's head is another commit nothing is queued (head_moved). For each changed source file, up to 3 test files named after it (test_foo.py, foo_test.go, foo.test.ts, foo.spec.js, FooTest.java, or foo.* in a tests directory); each item is {path, start_line: 1, end_line, sha: head_sha, text}: the file's first lines exactly as committed, at most 200 lines an item, 2000 lines and 150000 bytes in all. Never send secrets or files that are not tests; MergeSafe checks every excerpt against the commit.

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": {
      "repo": "<repo>",
      "pr_number": "<pr_number>",
      "head_sha": "<head_sha>",
      "evidence": "<evidence>"
    },
    "name": "request_review_with_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesThe repository as "owner/name".
tierNoOptional review level: essential, strong or ultra (budget, the older name, still works and is what responses say). Leave it out to use the repository's own setting.
addonsNoOptional add-ons; leave out to use the repository's own setting.
evidenceYesThe test excerpts, as the tool's description lists.
head_shaYesThe commit read at (40 hex).
pr_numberYesThe pull request number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) already cover the safety profile, and the description adds substantial behavior beyond them: the head_moved failure mode, per-file test discovery naming conventions, hard size caps, and a server-side secret check against the commit. It doesn't describe the successful response shape, which is the main remaining gap.

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?

Purpose is front-loaded in the first clause and every sentence carries operational information. It is dense and the parenthetical file-name enumeration and stacked limits make it a run-on, but no sentence is filler.

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

Completeness4/5

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

For a mutation-adjacent tool with no output schema, the description covers the preconditions, payload construction, limits and a failure case. It stops short of saying what a successful call returns or what queuing looks like, which leaves a modest gap for a 6-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description still adds real meaning: 'sha' must equal head_sha, 'start_line' is always 1, and the evidence array is bounded at 200 lines per item, 2000 lines and 150000 bytes overall, with the text being the file's first lines as committed. The schema alone does not convey those constraints or the discovery rule for which files are eligible.

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 opening clause names a concrete verb+resource and immediately differentiates it from the sibling: it sends test excerpts 'read from your local checkout' in addition to the review that request_review performs. An agent can tell exactly what extra behavior this tool has versus request_review without opening either 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?

States an explicit precondition ('Only when local_context_status says enabled') and an explicit prerequisite ordering ('Push first'), plus the consequence of violating it (head_moved, nothing queued). It also names request_review as the baseline alternative, so the routing decision is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.