Skip to main content
Glama

Open Shop

Submit the customer's review

submit_review
Idempotent

Publishes a customer's own rating and review of a product they bought here, once the order has been delivered. The rating and words are published exactly as given, one review per order, on the product page as a verified purchase, noting that an AI assistant submitted it for them.

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>",
      "rating": "<rating>",
      "review": "<review>",
      "display_name": "<display_name>",
      "customer_wrote_it": "<customer_wrote_it>"
    },
    "name": "submit_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratingYesThe customer's rating, 1 (worst) to 5 (best)
reviewYesThe customer's words, unchanged
order_idYesThe order_id from create_checkout
agent_nameNo
display_nameYesThe name the customer wants shown, e.g. first name and last initial
customer_wrote_itYesThe rating and words are the customer's own and they asked you to submit them

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only, idempotent, non-destructive write to an open world. The description adds genuine value beyond that: content is published verbatim, one review per order (explaining the idempotency), it appears as a verified purchase, and AI authorship is disclosed to readers. It does not say whether a submitted review can be edited or withdrawn afterwards.

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 that covers purpose, precondition, publication behavior and disclosure with no filler. It is somewhat run-on with stacked clauses, but every clause carries information an agent needs.

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?

With no output schema, the description does a good job of describing the effect: where the review lands, how it is badged, and that AI authorship is surfaced. The remaining gap is what the caller gets back and whether the published review is later immutable, which is minor for a submit-style tool.

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 83%, so the schema already documents rating, review, display_name, order_id and customer_wrote_it. The description adds only that the rating and words are published exactly as given, which reinforces the 'unchanged' semantics already implied, and it implicitly explains agent_name via the AI-submission notice without naming the parameter.

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 (publishes) and resource (a customer's rating and review) and states the scope precisely: the product they bought here, after delivery. An agent can tell exactly what this tool does without opening the schema, and no sibling tool competes for the same action.

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 a clear gating precondition - 'once the order has been delivered' - and the schema's customer_wrote_it const true reinforces that consent is required before calling. It does not name an alternative path (e.g. what to do if the order is not yet delivered), so it stops short of full when/when-not guidance.

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