Skip to main content
Glama

Last Price

report_outcome

Report whether a price from compute_price was used: once the buyer has accepted or turned down a price, report it. Pass receipt.id from that result as usage_event_id, or omit it to report the last price compute_price returned on this connection or tools instance, once (the hosted MCP endpoint remembers nothing, so pass it there). Outcomes are what later routing and confidence learn from. With outcome pricing on, a rejection within the call's outcome window gives back part of what it cost; the result says what was refunded. Needs a Last Price credential. Report only what actually happened. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.

Input Schema

NameRequiredDescriptionDefault
outcomeYesWhether the price was used.
evidence_urlNoOptional evidence: an https link to the record.
evidence_noteNoOptional evidence: a short note on why.
quality_scoreNoOptional: how good the price was, 0 to 1.
usage_event_idNoThe usage event of the priced call: receipt.id on the compute_price result. Pass it whenever you priced more than one thing. Omitted, the last compute_price result on this connection is reported, once.
evidence_referenceNoOptional evidence: an order, ticket or invoice id in your own system.

Output Schema

NameRequiredDescriptionDefault
eventNo
messageNo
quote_expiredNo
outcome_windowNo
quote_expired_seconds_agoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "event": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "outcome": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "outcome_window": {
      +      "type": "object"
      +    },
      +    "quote_expired": {
      +      "type": "boolean"
      +    },
      +    "quote_expired_seconds_ago": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / usage_event_id / description
      Previous value: -"The usage event of the priced call: receipt.id on the compute_price result."New value: +"The usage event of the priced call: receipt.id on the compute_price result. Pass it whenever you priced more than one thing. Omitted, the last compute_price result on this connection is reported, once."
    • changedInput schema / required
      Previous value: -[
      -  "usage_event_id",
      -  "outcome"
      -]New value: +[
      +  "outcome"
      +]
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources