Skip to main content
Glama

Agentic Fabrication Network (AFN)

Leave vendor review

leave_review
Destructive

Record the user's verified-purchase review of how a UFP order turned out. YOUR JOB IS TO STRUCTURE THE FEEDBACK: turn what the user actually said into stars (1-5 overall) and facet scores — "the cut was sloppy" -> quality, "parts arrived 2 days late" -> timeliness, "wrong color" -> accuracy. Keep the optional comment to a short factual summary of their words; never embellish. ALWAYS draft the review (stars, facets, comment) and confirm it with the user BEFORE calling this tool — e.g. "I'll rate this 2 stars with timeliness 1 because it arrived 2 days late — send it?". One review per order: submitting again updates the existing review. If you do not have the order id from this conversation, ask the user for it (it is on their receipt email and order page); never guess one.

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": {
      "order_id": "<order_id>",
      "stars": "<stars>"
    },
    "name": "leave_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
starsYesOverall rating the user confirmed, 1-5
claimsNoCHECKABLE claims from the user's feedback — the network stamps each against its own records (the ordered spec, polled tracking + delivery events) and attaches evidence chips to the review. Only pass what the user actually asserted.
facetsNoScore only the facets the user actually spoke to
commentNoShort factual summary of the user's feedback, in their spirit — optional
order_idYesThe UFP order being reviewed (ord_…), from create_checkout or get_order_status in this conversation, or from the user's receipt email / order page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / order_id / description
      Previous value: -"The UFP order being reviewed (ord_…) — see list_orders"New value: +"The UFP order being reviewed (ord_…), from create_checkout or get_order_status in this conversation, or from the user's receipt email / order page"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description earns that flag by explaining the mechanism: re-submission overwrites the existing review rather than creating a duplicate. It also discloses that claims are stamped against network records with evidence chips, which is real behavior beyond the annotations. What it omits is the visibility/audience of a published review and what happens on validation failure.

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?

Purpose is front-loaded, then drafting rules, then the confirmation protocol, then the order-id fallback — a sensible escalation. Dense but nearly every clause carries an instruction; the worked confirmation example is worth its length. Minor redundancy between 'never embellish' and 'short factual summary'.

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 5-parameter nested mutation with no output schema, the description covers everything an agent needs: how to derive the structured fields, the confirmation gate, upsert semantics, and where order_id comes from. It even gestures at the response via the network evidence chips attached to claims.

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 still adds value by supplying paraphrase-to-facet mappings ('the cut was sloppy' -> quality, 'wrong color' -> accuracy) and the constraint to score only facets the user actually spoke to. It adds marginal meaning rather than new mechanics, so it lands above baseline but not at the top.

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: 'Record the user's verified-purchase review of how a UFP order turned out', then narrows further with 'YOUR JOB IS TO STRUCTURE THE FEEDBACK'. No sibling tool touches reviews, and the description makes that scope unmistakable.

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 an explicit precondition (always draft and confirm with the user before calling, with a sample confirmation utterance), an explicit idempotency rule ('one review per order: submitting again updates the existing review'), and an explicit fallback for a missing order id (ask the user; never guess). It also names where the id can come from, tying to the get_order_status sibling.

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.

Resources