Skip to main content
Glama

Mark flagged messages right or wrong

review_flagged_messages
Idempotent

Records a reviewer verdict on flagged messages: TP (rightly flagged), FP (wrongly flagged) or null (clear the verdict). The same verdicts as the console's review queue. Up to 100 messages per call, by message_id from list_flagged_messages. Needs owner, admin or editor access.

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": {
      "project_id": "<project_id>",
      "reviews": "<reviews>"
    },
    "name": "review_flagged_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
reviewsYes
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the authorization requirement (owner/admin/editor), the batch ceiling, and that a null verdict clears rather than writes a value. Those are exactly the operational facts an agent needs before mutating review state, and none of them restate structured fields.

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 short sentences, front-loaded with the action and verdict vocabulary, then batching, id provenance, and permissions in decreasing order of importance. Nothing is redundant enough to cut without losing signal.

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 two-parameter mutation tool with no output schema and no nested-object complexity, the definition covers purpose, valid values, id sourcing, batch limits, and access. It stops short of stating error behavior for invalid or unknown message_ids, which is a minor residual gap.

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 description coverage is 50%, and the description compensates partially by explaining verdict semantics in business terms and specifying where message_id values come from. However, it adds nothing about project_id beyond what the schema already says, and "up to 100 messages per call" duplicates maxItems=100, so the net gain is modest.

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 description names a specific verb and resource ("Records a reviewer verdict on flagged messages") and immediately defines the three legal values (TP, FP, null) with plain-language meanings. It also anchors the tool in a workflow by pointing at list_flagged_messages as the source of message_ids, which no sibling tool does.

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 operating context: batch size (up to 100 per call), the id source ("by message_id from list_flagged_messages"), and required access level. It does not name an explicit exclusion or alternative, but no competing verdict-writing sibling is apparent, so the context is adequate without being exhaustive.

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.