Skip to main content
Glama

Report Outcome

report_outcome

Report what happened when a code was tried at checkout. This telemetry is what keeps the feed verified — free-tier callers must report outcomes.

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": {
      "merchant": "<merchant>",
      "code": "<code>",
      "applied": "<applied>"
    },
    "name": "report_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe promo code that was tried at checkout
appliedYestrue if the code applied successfully
merchantYesMerchant slug, e.g. 'nike'
failure_reasonNoWhy the code did not apply (report when applied is false): expired, min_not_met, geo, category, customer_type, not_stackable, single_use_exhausted, code_rejected, other

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"The promo code that was tried at checkout"
    • addedInput schema / properties / failure_reason / description
      Added value: +"Why the code did not apply (report when applied is false): expired, min_not_met, geo, category, customer_type, not_stackable, single_use_exhausted, code_rejected, other"
    • addedInput schema / properties / merchant / description
      Added value: +"Merchant slug, e.g. 'nike'"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write. The description adds genuine policy context (this feeds verification, free-tier callers must report), but it leaves the idempotency implication unaddressed — it never says whether re-reporting the same attempt duplicates telemetry.

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?

Two sentences, front-loaded with the action and followed by the motivating obligation. Neither sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a fully documented schema and annotations covering the safety profile, the description covers the essentials of when and why. It still omits what a repeat report does given idempotentHint=false, which matters for a telemetry write.

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 100%, so every parameter including the failure_reason enum and its 'report when applied is false' condition is already documented. The description adds no additional meaning about merchant, code, or applied beyond what the schema states.

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?

The description states a specific verb and resource: reporting what happened when a code was tried at checkout. That is clearly a distinct action from check_code and find_codes, though it never explicitly contrasts itself with them.

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?

The trigger condition is explicit — call this after a code has been attempted at checkout — and it adds an obligation clause for free-tier callers. It gives no exclusions or named alternative, so it stops short of the top score.

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