Skip to main content
Glama

submit_outcome

Record a purchase outcome for a product (product_id or product_url). Requires an API key (Authorization: Bearer header). Proofs: shopify_order (shop domain, order number, confirmation number) is checked against the shop's order record; email_receipt (the merchant's original DKIM-signed confirmation email, order number, product name) is checked by its signature; both count when they match. payment_receipt is stored as quarantined.

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": {
      "outcome": "<outcome>",
      "proof": "<proof>"
    },
    "name": "submit_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
proofYes
outcomeYes
reasonsNo
product_idNo
product_urlNo

Output Schema

NameRequiredDescriptionDefault
idYes
statusYes
status_reasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $defs / EmailReceiptProof / properties / gtin
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9]{8,14}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional barcode (UPC/EAN, 8 to 14 digits) as it appears in the email. Used only when it appears in the signed email; then the outcome is attached to the product we already know by that barcode.",
      +  "title": "Gtin"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the auth requirement (Bearer API key), the fact that shopify_order and email_receipt proofs are actively verified (against the shop record and DKIM signature respectively), and that payment_receipt is only stored as quarantined. What is missing is the failure path (what an agent sees when verification fails) and duplicate/idempotency behavior, which the annotations flag as non-idempotent.

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?

Dense and front-loaded: identifier, auth, then proof mechanics in descending importance. The proof clause is telegraphic ('both count when they match'), but no sentence is wasted and it reads efficiently for a 5-parameter tool.

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?

An output schema exists, so return values need not be described, and the description covers the highest-risk unknowns: auth, proof verification, and quarantine. The remaining gap is the failure/error path and outcome-enum meaning, which an agent would need to call this correctly in edge cases.

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?

Top-level schema coverage is 0%, so the description must compensate. It does explain product_id vs product_url and the discriminator semantics of the three proof types with their required fields, but it says nothing about the outcome enum values or the reasons enum, leaving a full half of the parameter surface undocumented.

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?

States a specific verb and resource ('Record a purchase outcome for a product') and names the two identifier options. It is clearly distinguishable from the read-side sibling get_product_outcomes, but it never names that sibling explicitly, so the differentiation is implicit 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer this is the write path for outcomes, but there is no explicit 'use this when...' guidance, no exclusion against get_product_outcomes, and no statement of when a proof type is appropriate versus another beyond verification mechanics.

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