Skip to main content
Glama

agent_peer_review

Submit code diffs, configs, or architecture documents to a peer agent for formal rubric-based review; receive an asynchronous correlation ticket for tracking the reply.

Instructions

Submit code diffs, configuration files, or architectural text to a peer agent for formal review against a rubric. Asynchronous request returning a correlation ticket ID. Replies arrive in agent_peer_inbox via agent_peer_reply. Use agent_peer_consult instead for open-ended questions without concrete artifacts.

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": {
      "artifact": "<artifact>"
    },
    "name": "agent_peer_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
rubricNoReview criteria or evaluation checklist (e.g. "memory leaks", "security", "style")
artifactYesCode diff, configuration file, or architectural text to be reviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / artifact / description
      Previous value: -"Code diff, configuration file, or architectural text"New value: +"Code diff, configuration file, or architectural text to be reviewed"
    • changedInput schema / properties / rubric / description
      Previous value: -"Review criteria (e.g. \"memory leaks\", \"security\", \"style\")"New value: +"Review criteria or evaluation checklist (e.g. \"memory leaks\", \"security\", \"style\")"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the asynchronous request model, that a correlation ticket ID is returned, and that replies arrive in agent_peer_inbox via agent_peer_reply. It omits operational details such as review turnaround, failure modes, or whether submissions can be withdrawn, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the action and artifact types, followed by the async behavior and the disambiguation. Nothing is padded or repeated.

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?

There is no output schema, yet the description explains exactly what comes back (a correlation ticket ID) and the follow-up path (agent_peer_inbox via agent_peer_reply). For a two-parameter async tool, nothing an agent needs in order to call it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented in structured form; the description mainly restates artifact types and implies a rubric-based review. It adds no format or sizing guidance beyond the schema, and slightly implies the rubric is expected when it is actually optional, so the baseline 3 applies.

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: submit artifacts (code diffs, config files, architectural text) to a peer agent for formal review against a rubric. It also names the sibling it is not (agent_peer_consult) and the difference in artifact concreteness, so an agent can distinguish it without opening a 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?

Explicitly routes the agent: use this when there are concrete artifacts to review, use agent_peer_consult instead for open-ended questions without concrete artifacts. That is a clear when/when-not pair with the alternative named.

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