Skip to main content
Glama

Report whether a code worked

report_outcome
Idempotent

Tell the service what happened when the shopper tried a code at checkout: worked or not, and how much it saved. Reports decide which codes other shoppers are shown, so call it every time a code from find_savings or check_code is tried. Pass the offer_id; for a code that did not come from this service, pass url and code instead. No personal data is stored, only the outcome.

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": {
      "worked": "<worked>"
    },
    "name": "report_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoWith code: for a code that has no offer_id yet
codeNoThe promo code as written, e.g. "SAVE10"
noteNoWhat the store said, e.g. "minimum spend $50 not met". No personal details
savedNoAmount it took off the order
workedYestrue if the store accepted the code at checkout
currencyNo
offer_idNoFrom find_savings or check_code

Output Schema

NameRequiredDescriptionDefault
codeNo
nextNoSuggested next calls.
errorNo
storeNo
reportsNo
summaryYes
offer_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds real context beyond them: reports influence which codes other shoppers see, which explains why omission is costly, and the data-retention statement ('No personal data is stored, only the outcome') answers a privacy question annotations cannot.

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?

Three tight sentences: what it does, why it matters and how often to call, then how to identify the code. The consequence and the usage mandate are front-loaded and nothing is redundant.

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?

With a rich annotation set and an output schema present, the description only needs to cover intent, invocation conditions, identifier selection and side effects — all of which it does. Nothing an agent needs to invoke this correctly is missing.

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 86%, so the parameters are largely self-documenting and baseline is 3. The description earns the extra point by spelling out the mutually exclusive identification paths — offer_id for codes from this service versus url plus code for foreign codes — a relationship the flat schema does not express.

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: report what happened when a shopper tried a code at checkout, including both success and savings amount. It also implicitly and explicitly separates this from the sibling lookup tools by naming find_savings and check_code as the sources whose output it consumes.

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 a strong when-to-call rule ('call it every time a code from find_savings or check_code is tried') and a branch for codes that did not originate from the service (pass url and code instead). The agent does not have to infer invocation conditions.

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