Skip to main content
Glama

report_outcome

Idempotent

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

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

A4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, idempotent, non-destructive write, so the bar is lower. The description adds context annotations cannot convey: this data feeds code verification and is a hard requirement for free-tier callers, which materially affects whether an agent must call it.

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 short sentences: the action first, then the consequence and obligation. Nothing is padded or repeated from the schema.

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 four-parameter write tool with full schema coverage and no output schema, the description covers purpose, timing, and obligation adequately. Minor gaps remain around what happens on a repeat report and whether any response is returned, though the idempotent hint partially covers the former.

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% and the enum values and the 'report when applied is false' rule are already spelled out in the schema. The description contributes no additional parameter meaning such as format, slug conventions, or handling of duplicate reports.

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 gives a specific verb and resource — reporting the outcome of a code attempt at checkout — which is plainly distinct from lookups like check_code or find_codes. It never names those siblings explicitly, so the differentiation is inferable rather than stated.

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 states a clear triggering condition (after a code is tried at checkout) and adds a mandatory policy for free-tier callers. There is no explicit when-not guidance or named alternative, which keeps it below a 5.

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