Skip to main content
Glama

Matrix Agent Tools

Retrieve job and payment status

matrix_job_status
Read-onlyIdempotent

Retrieve the current payment, execution and result status of an existing quotation owned by the authenticated machine. Use after requesting a quote or submitting an x402 authorization, including recovery after connection loss or process restart. Requires the original quote_id and an authorized machine bearer credential. This tool does not submit payment, execute a new job, modify existing results or issue refunds. Returns payment_verified, execution state, job_id when available, and result when completed. A pending payment or execution is not a reason to create another charge. A quote_expired state alone is not finalized non-payment evidence. Inspect payment_resolution for finalized unpaid closure and refund for failed or cancelled paid jobs when those fields are present.

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": {
      "quote_id": "<quote_id>"
    },
    "name": "matrix_job_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_idYesThe original server-issued quotation ID, returned by matrix_quote or the marketplace payment challenge. This is not the execution job_id, wallet address or transaction hash. The quotation must belong to the authenticated machine.

Output Schema

NameRequiredDescriptionDefault
stateYesCurrent payment or execution lifecycle state, such as awaiting_payment, payment_reconciliation_pending, queued, running, succeeded, failed, cancelled, quote_expired or payment_expired_unpaid.
job_idYesExecution job identifier after admission; null when not assigned.
refundNoOptional refund status and finality evidence. Do not assume a refund is complete until the returned status confirms it.
resultYesProduct-specific execution result, or null when not available.
currencyYesQuotation currency.
quote_idYesOriginal quotation ID.
amount_minorYesQuoted amount in USD cents.
payment_verifiedYesWhether payment has been verified by the existing settlement authority.
payment_resolutionNoOptional finalized payment-closure evidence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / quote_id / description
      Added value: +"The original server-issued quotation ID, returned by matrix_quote or the marketplace payment challenge. This is not the execution job_id, wallet address or transaction hash. The quotation must belong to the authenticated machine."
    • addedInput schema / properties / quote_id / examples
      Added value: +[
      +  "0123456789abcdef0123456789abcdef"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "amount_minor": {
      +      "description": "Quoted amount in USD cents.",
      +      "type": "integer"
      +    },
      +    "currency": {
      +      "description": "Quotation currency.",
      +      "type": "string"
      +    },
      +    "job_id": {
      +      "description": "Execution job identifier after admission; null when not assigned.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "payment_resolution": {
      +      "description": "Optional finalized payment-closure evidence.",
      +      "type": "object"
      +    },
      +    "payment_verified": {
      +      "description": "Whether payment has been verified by the existing settlement authority.",
      +      "type": "boolean"
      +    },
      +    "quote_id": {
      +      "description": "Original quotation ID.",
      +      "type": "string"
      +    },
      +    "refund": {
      +      "description": "Optional refund status and finality evidence. Do not assume a refund is complete until the returned status confirms it.",
      +      "type": "object"
      +    },
      +    "result": {
      +      "description": "Product-specific execution result, or null when not available."
      +    },
      +    "state": {
      +      "description": "Current payment or execution lifecycle state, such as awaiting_payment, payment_reconciliation_pending, queued, running, succeeded, failed, cancelled, quote_expired or payment_expired_unpaid.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "quote_id",
      +    "amount_minor",
      +    "currency",
      +    "payment_verified",
      +    "job_id",
      +    "state",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: bearer credential requirement, ownership constraint, the meaning of a quote_expired state, and pointers to payment_resolution and refund fields for finalized outcomes. This is genuine behavioral guidance that prevents an agent from misreading an inconclusive status or double-charging.

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?

Front-loads what the tool returns and when to call it, then layers constraints and caveats in short declarative sentences. Nothing is redundant enough to cut, and the negative-space sentence earns its place by blocking the most likely wrong action (re-charging on a pending state).

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?

For a single-parameter read tool with a rich annotation set and an output schema, the description supplies everything needed: ownership/auth requirements, invocation timing, and interpretation rules for the returned state fields. Return values are not over-explained, and no decision-relevant gap remains.

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 description coverage is 100%, so quote_id's meaning, format and the fact that it is not a job_id or transaction hash are already documented in the schema. The description reinforces with 'original quote_id' and the ownership requirement but adds no new syntax or format detail beyond the structured field, so baseline 3 applies.

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 (retrieve) and resource scope (payment, execution and result status of an existing quotation owned by the authenticated machine). It distinguishes itself from sibling operations by framing the tool as the follow-up to quote creation, so an agent can tell it apart from matrix_quote without inspecting schemas.

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?

Explicitly names the triggering conditions: after requesting a quote, after submitting an x402 authorization, and during recovery from connection loss or process restart. It also states when-not via negative space ('does not submit payment, execute a new job, modify existing results or issue refunds') and warns that a pending state is not a reason to create another charge, steering the agent away from a costly alternative.

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