Skip to main content
Glama

Quote a local review

review_local

Send the local diff for review and get its quote. Nothing runs yet: the answer says 'This review will cost you up to $X (Strong)' with the other levels' prices. Always show the user the price and ask them to confirm before you call confirm_review; never confirm on your own. Send each changed file with its patch and full text (none for a removed file). Also send context_files: the files that call, or are called by, the changed code (its callers and the modules it imports), because the review sees only what you send and cannot check effects in files it was not given. (at most 250000 bytes in all). Never send secrets. In a follow-up, only files changed since the last review are counted.

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>",
      "session_id": "<session_id>"
    },
    "name": "review_local"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesThe session's repository, "owner/name".
filesNoThe changed files, unless upload_id is given.
omittedNoFiles the review could not be sent because of the upload caps. The quote names them, so nothing left out is taken for absent.
upload_idNoFrom an upload sent with prepare_upload's token. Use this for a review too large to pass inline in files.
session_idYesThe session_id start_session returned.
context_filesNoUnchanged files that call, or are called by, the changes.
callers_not_followedNoChanged files that were sent, whose callers the review could not follow because their name is too common. The quote names them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds substantial value beyond that: no execution yet, a priced quote with tiers, a 250000-byte total cap, a never-send-secrets rule, and follow-up counting limited to files changed since the last review. However, it does not describe error handling, what happens to an expired session_id, or how upload_id interacts with the size cap, so it adds context but stops short of a full behavioral picture for a submission tool.

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 purpose and the confirm-before-you-call rule, which is the highest-risk instruction. It is a single dense block though, and the size cap is buried in a parenthetical rather than placed with the file-sending guidance, which costs a little scannability.

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 7-parameter submission tool with no output schema, the description covers the return shape (a price quote naming omitted files), the confirmation workflow, the payload rules, and the incremental-review caveat. An agent has enough to call it correctly without guessing.

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; the description earns extra by explaining status-dependent semantics the schema does not ('full text (none for a removed file)') and by defining context_files as callers and imported modules with the reason (the review sees only what is sent). It leaves omitted, callers_not_followed, and upload_id mostly to the schema, which already documents them well.

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 ('Send the local diff for review and get its quote') and immediately scopes it against the mutating sibling ('Nothing runs yet'), naming confirm_review as the follow-up step. An agent can distinguish this from request_review and confirm_review without opening the 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?

Gives explicit when-to-do-what: show the user the price, ask for confirmation, then call confirm_review, and 'never confirm on your own'. Also prescribes what to send per file status and what to include in context_files, so both the routing decision and the invocation are covered.

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.