Skip to main content
Glama

Save Review State

app_save_review_state

Persists review approvals, flags, and comments to disk, keeping structured feedback available to the agent across review sessions.

Instructions

App-only tool to persist approvals, flags, and comments to disk.

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>",
      "reviewState": "<reviewState>"
    },
    "name": "app_save_review_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYes
reviewStateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. 'Persist ... to disk' usefully signals durability rather than an in-memory update, but it never says whether the whole review state is replaced or merged, whether it is idempotent, what happens on disk failure, or whether any permission is needed. For a write tool with zero annotation coverage this is a substantial 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?

A single front-loaded sentence with no filler, and the app-only constraint comes first. Its brevity is efficient structurally, though it is achieved partly by omitting detail that the schema does not supply.

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?

placeholder

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, one of which is a deeply nested reviewState object with required sub-fields, enum-valued status maps, and additionalProperties:false. The description loosely maps 'approvals/flags' to decisionStatus/correspondenceStatus and 'comments' to the comments array, but explains nothing about sessionId, updatedAt, lineRange, or targetType, and does not compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (persist) and names the concrete payload (approvals, flags, comments) plus the destination (disk), which goes beyond the name. The 'app-only' qualifier also distinguishes it from the sibling tools listed, all of which read or present diffs rather than write review state back.

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

Usage Guidelines2/5

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

The only usage signal is 'app-only', which hints the caller is the host application rather than an agent, but there is no statement of when to call it, whether it must follow an approval action, or how it relates to app_get_session or snapshot_baseline. No exclusions or alternatives are given.

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