Skip to main content
Glama

Matrix Agent Tools

Create a paid-job quotation

matrix_quote
Idempotent

Create an unpaid, tenant-bound Base Mainnet USDC quotation for one offline analysis job. Use matrix_catalogue first to check current product pricing and admission availability. Requires an enrolled machine bearer credential. Supply the released analysis route, its matching product payload and a unique idempotency key. The same key and identical request recover the existing quote; changed requests can conflict. This creates a quotation record but does not charge the wallet or start execution. The response contains quote_id, price in USD cents, expiry timestamp, payment_url and status_url. Approve the amount before authorizing payment through the returned x402 payment URL. Use matrix_job_status for subsequent recovery. Do not request another quote merely because a payment or execution response is delayed.

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": {
      "route": "<route>",
      "payload": "<payload>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "matrix_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeYesExact released offline analysis API route. Choose the route corresponding to the desired product. Availability is dynamic; consult matrix_catalogue before requesting.
payloadYesProduct-specific analysis input. Checkout Monitor uses captured journeys and events; Commerce Guard uses supplied commerce HTML/feed; Tender Intelligence uses supplier/tender data; MCP Security Audit uses supplied server/tool metadata; Ad Tracking Guard uses supplied page analysis data. These are offline inputs, not permission to scan a live network target. See the examples and public integration documentation.
idempotency_keyYesCaller-generated unique identifier for the logical job. Use a fresh key for a genuinely new job and reuse the identical key and payload for retries. Do not generate another key to recover an uncertain payment.

Output Schema

NameRequiredDescriptionDefault
productYesSelected commercial product.
currencyYesQuotation currency.
quote_idYesServer-issued quotation identifier. Retain for payment and status recovery.
expires_tsYesQuotation expiry as Unix epoch seconds.
status_urlYesAuthenticated HTTPS status endpoint.
payment_urlYesServer-returned HTTPS payment endpoint.
amount_minorYesQuoted price in USD cents. Multiply by 10000 for USDC atomic units.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Caller-generated unique identifier for the logical job. Use a fresh key for a genuinely new job and reuse the identical key and payload for retries. Do not generate another key to recover an uncertain payment."
    • addedInput schema / properties / idempotency_key / examples
      Added value: +[
      +  "order-analysis-unique-job-001"
      +]
    • addedInput schema / properties / payload / description
      Added value: +"Product-specific analysis input. Checkout Monitor uses captured journeys and events; Commerce Guard uses supplied commerce HTML/feed; Tender Intelligence uses supplier/tender data; MCP Security Audit uses supplied server/tool metadata; Ad Tracking Guard uses supplied page analysis data. These are offline inputs, not permission to scan a live network target. See the examples and public integration documentation."
    • addedInput schema / properties / payload / examples
      Added value: +[
      +  {
      +    "html": "<html><body>Example page</body></html>"
      +  },
      +  {
      +    "journeys": [
      +      {
      +        "events": [
      +          {
      +            "stage": "cart",
      +            "status": "ok",
      +            "time_ms": 0
      +          }
      +        ]
      +      }
      +    ]
      +  },
      +  {
      +    "feed": {
      +      "availability": "in_stock",
      +      "currency": "USD",
      +      "price": 25
      +    },
      +    "html": "<html><body>Example product</body></html>"
      +  },
      +  {
      +    "servers": [
      +      {
      +        "auth": "bearer",
      +        "tools": [
      +          {
      +            "name": "example_tool",
      +            "permissions": [
      +              "read"
      +            ]
      +          }
      +        ],
      +        "url": "https://example.com/mcp"
      +      }
      +    ]
      +  },
      +  {
      +    "as_of": "2026-11-26",
      +    "supplier": {
      +      "capabilities": [
      +        "office supplies"
      +      ],
      +      "certifications": [
      +        "ISO 9001"
      +      ],
      +      "countries": [
      +        "GB"
      +      ]
      +    },
      +    "tenders": [
      +      {
      +        "country": "GB",
      +        "deadline": "2030-01-31",
      +        "description": "Supply of office stationery",
      +        "estimated_value": 10000,
      +        "required_certifications": [
      +          "ISO 9001"
      +        ],
      +        "title": "Example office supplies"
      +      }
      +    ]
      +  }
      +]
    • addedInput schema / properties / route / description
      Added value: +"Exact released offline analysis API route. Choose the route corresponding to the desired product. Availability is dynamic; consult matrix_catalogue before requesting."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "amount_minor": {
      +      "description": "Quoted price in USD cents. Multiply by 10000 for USDC atomic units.",
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "currency": {
      +      "description": "Quotation currency.",
      +      "type": "string"
      +    },
      +    "expires_ts": {
      +      "description": "Quotation expiry as Unix epoch seconds.",
      +      "type": "integer"
      +    },
      +    "payment_url": {
      +      "description": "Server-returned HTTPS payment endpoint.",
      +      "type": "string"
      +    },
      +    "product": {
      +      "description": "Selected commercial product.",
      +      "type": "string"
      +    },
      +    "quote_id": {
      +      "description": "Server-issued quotation identifier. Retain for payment and status recovery.",
      +      "type": "string"
      +    },
      +    "status_url": {
      +      "description": "Authenticated HTTPS status endpoint.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "quote_id",
      +    "product",
      +    "amount_minor",
      +    "currency",
      +    "expires_ts",
      +    "payment_url",
      +    "status_url"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the auth requirement (enrolled machine bearer credential), the idempotency contract (same key plus identical request recovers the existing quote; changed requests can conflict), and a crucial non-effect ("does not charge the wallet or start execution"). That last point meaningfully qualifies the destructiveHint=false/readOnlyHint=false pair by telling the agent this is a record-creating but non-charging mutation.

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?

The ordering is strong: what it creates, prerequisites, inputs, idempotency behavior, what it does not do, response fields, next step. It is on the long side and partially restates schema-level idempotency guidance, but no sentence is filler; trimming the repeated no-charge and idempotency restatements would tighten it without loss.

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 three-required-parameter, nested-payload, authenticated mutation, the description covers prerequisites, retry semantics, side-effect boundaries, and the next tool to call. An output schema exists, yet the brief field list (quote_id, price in cents, expiry, payment_url, status_url) still helps the agent plan the payment step.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds the coupling requirement that the route must be the "released analysis route" with "its matching product payload" — a cross-parameter constraint the schema only hints at. It does not add format or value-level detail beyond the enum and examples, so it sits just above baseline rather than at 5.

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?

"Create an unpaid, tenant-bound Base Mainnet USDC quotation for one offline analysis job" gives a specific verb (create), a specific resource (quotation), and the exact scope (one offline job, no charge). It is immediately distinguishable from matrix_catalogue (pricing checks) and matrix_job_status (recovery), so an agent knows this is the quoting step and not the lookup or tracking step.

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?

It prescribes the prerequisite ("Use matrix_catalogue first to check current product pricing and admission availability"), the follow-up ("Use matrix_job_status for subsequent recovery"), and an explicit negative instruction ("Do not request another quote merely because a payment or execution response is delayed"). When-to-use, when-not-to-use, and the alternative for recovery are all stated rather than inferred.

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