Skip to main content
Glama

submit_review

Destructive

Submit an approve or request_changes decision for a review thread, binding approvals to the evidence packet shown and sending request_changes back for rework with a required note.

Instructions

Submit a review decision as the caller (G5): approve or request_changes. The reviewer is you; an owner/assignee may submit but it will not count toward the requirement (separation of duties). request_changes on an in_review thread, from its owner or a reviewer whose approval would count, sends it back to open for rework: it is claimable again, earlier approvals are dismissed, and your note appears in its context as change_requests. request_changes needs a note saying what to change; approve may carry one. approve also needs evidence_root, the root from get_review_packet of what you were shown: it is refused when the thread was handed over again or changed since, and only an approval bound to the latest packet counts toward the close. Every verdict appends a review_submitted event (the note stays in the review history), and a request_changes notifies the thread's last worker. Re-submitting changes your decision. Requires thread:transition.

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": {
      "thread_id": "<thread_id>",
      "decision": "<decision>"
    },
    "name": "submit_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNowhat to change, required on request_changes; optional on approve
decisionYes
head_shaNooptional full commit SHA of the change head you reviewed; refused as a conflict when the change has moved since
thread_idYes
evidence_rootNothe evidence_root from get_review_packet you are deciding on, required on approve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=true, idempotent=false), the description discloses the concrete consequences of each decision: thread returns to open, becomes claimable, earlier approvals are dismissed, the note lands in context as change_requests, an event is appended, and the last worker is notified. It also documents staleness refusal and the permission required (thread:transition), which is exactly the behavioral context an agent needs before a mutating call.

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?

It is front-loaded with the tool's purpose and identity constraint before the decision-specific consequences, and every clause conveys a rule an agent must respect. The dense single paragraph is long but nearly waste-free; light structuring by decision type would improve scanability.

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 mutating, non-idempotent tool with no output schema, the description covers preconditions, permission, stale-packet refusal, and post-call side effects comprehensively. The only minor gap is that it never states what the call returns, which is acceptable given the emphasis on effects.

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?

With schema coverage at 60%, the description materially adds meaning: note is required on request_changes and optional on approve, evidence_root must be the value from get_review_packet of the packet actually shown, and re-submitting overwrites the prior decision. Only head_sha semantics are left to the schema description, which already covers them adequately.

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 first sentence states a specific verb and resource ('Submit a review decision as the caller') and enumerates the two possible decisions. It also fixes the identity semantics ('The reviewer is you; an owner/assignee may submit but it will not count'), which sharply separates this tool from sibling review tools like get_review_packet or get_review_status.

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

Usage Guidelines4/5

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

It gives clear conditional guidance: request_changes applies to an in_review thread from its owner or a counted reviewer, and approve requires an evidence_root from get_review_packet, which is refused if the thread changed since. It stops short of explicitly naming alternatives for other review-related intents, but the when-to-use conditions and prerequisites are unambiguous.

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