Agent Service · x402 · early usage

Prepare an inspectable context-selection evidence pack from caller-supplied documents a…

Prepare an inspectable context-selection evidence pack from caller-supplied documents and labelled spans. Combines budget comparisons, retention checks and policy-bound receipts. Verification concerns the declared workflow, not factual truth, answer quality o…

by www.mahastrategies.com · discovered, not yet claimed by its owner · updated 2026-10-09

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Prepare an inspectable context-selection evidence pack from caller-supplied documents and labelled spans. Combines budget comparisons, retention checks and policy-bound receipts. Verification concerns the declared workflow, not factual truth, answer quality or legal compliance.

Tags: ai · context-control · evidence · governance · x402 · bazaar · declaration-integrity · maha-offer

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-09
Input example from Bazaar metadata
{
  "budgetMode": "guaranteed",
  "clientRequestId": "req_governed_context_001",
  "documents": [
    {
      "id": "release",
      "text": "The release may proceed only after the security owner approves the evidence packet.\n\nThe rollback begins when the error rate exceeds two percent for five minutes.\n\nRoutine status notes describe staffing and meeting schedules.",
      "title": "Release rule"
    },
    {
      "id": "operations",
      "text": "The operator must preserve the request digest and approval identity.\n\nRoutine status notes describe staffing and meeting schedules.",
      "title": "Operations note"
    }
  ],
  "provenance": "compact",
  "requiredEvidence": [
    {
      "evidenceId": "release-authority",
      "sourceId": "release",
      "text": "The release may proceed only after the security owner approves the evidence packet."
    },
    {
      "evidenceId": "rollback",
      "sourceId": "release",
      "text": "The rollback begins when the error rate exceeds two percent for five minutes."
    }
  ],
  "scoring": "bm25",
  "task": "Preserve the release authority and rollback condition.",
  "tokenBudget": 128
}
Output example
{
  "clientRequestId": "req_governed_context_001",
  "compiledContextStored": false,
  "deliverable": {
    "contextPack": {
      "clientRequestId": "req_governed_context_001",
      "context": "# Context Pack\n\nTask: Preserve the release authority and rollbac…",
      "includedPassages": [
        {
          "passageHash": "sha256:60013bc3e8109806d697d7859823725653961b89f1460e2bcc9a91bc4…",
          "passageId": "operations:1",
          "sourceId": "operations",
          "text": "The operator must preserve the request digest and approval ident…"
        }
      ],
      "inputHash": "sha256:01d75aea4fee93a423977a48f6c91da35afc8b4e67ece44c4985ff36f…",
      "metrics": {
        "compiledBytes": 426,
        "compiledEstimatedTokens": 81,
        "duplicatePassagesRemoved": 1,
        "estimatedReductionPercent": 0,
        "originalBytes": 358,
        "originalEstimatedTokens": 57,
        "sourceCount": 2,
        "sourceCoveragePercent": 100,
        "tokensSaved": 0
      },
      "outputHash": "sha256:3d3d621fc73f246f39986929224b8496fa9f31c71f65311cca4a9cac6…",
      "packId": "ctxpack_9f5028b1c215e057fb5bcb43a25dc426",
      "retentionBoundaries": {
        "claimVerificationPerformed": false,
        "completenessGuaranteed": false,
        "evidenceRetention": "best_effort",
        "hallucinationPreventionGuaranteed": false,
        "selectionType": "extractive",
        "tokenCountType": "model_neutral_estimate"
      },
      "sources": [
        {
          "includedEstimatedTokens": 37,
          "includedPassageIds": [
            "release:1",
            "release:2",
            "release:3"
          ],
          "originalEstimatedTokens": 37,
          "passageCount": 3,
          "sourceHash": "sha256:e100472342b640276bf489453adba008e167f4039a5e8202528403f3a…",
          "sourceId": "release",
          "title": "Release rule"
        }
      ],
      "task": "Preserve the release authority and rollback condition.",
      "tokenBudget": 128,
      "version": "0.1.0",
      "warningCodes": [
        "model_neutral_token_estimates",
        "extractive_selection_not_verification"
      ],
      "warnings": [
        "Token counts are model-neutral estimates, not provider tokenizer…"
      ]
    },
    "evaluationId": "ctxeval_9f5028b1c215e057fb5bcb43a25dc426",
    "evidence": [
      {
        "evidenceHash": "sha256:eeea8806bfbe9a9f49cdfaeab2af34fdfcd68c08d04213a563978ace9…",
        "evidenceId": "release-authority",
        "sourceId": "release",
        "status": "retained"
      }
    ],
    "integrity": {
      "contextInputHash": "sha256:01d75aea4fee93a423977a48f6c91da35afc8b4e67ece44c4985ff36f…",
      "contextOutputHash": "sha256:3d3d621fc73f246f39986929224b8496fa9f31c71f65311cca4a9cac6…",
      "evaluationOutputHash": "sha256:f97e07e6177e30403a6c0e6b20cab3335173faf226c3792718c7be842…",
      "requestHash": "sha256:9f5028b1c215e057fb5bcb43a25dc426f98c71ca8d21b9c8b6b09f0bb…"
    },
    "metrics": {
      "compiledBytes": 426,
      "compiledEstimatedTokens": 81,
      "duplicatePassagesRemoved": 1,
      "estimatedReductionPercent": 0,
      "originalBytes": 358,
      "originalEstimatedTokens": 57,
      "requiredEvidenceCount": 2,
      "requiredEvidenceRetentionPercent": 100,
      "retainedEvidenceCount": 2,
      "sourceCount": 2,
      "sourceCoveragePercent": 100,
      "tokensSaved": 0
    },
    "policy": {
      "budgetSatisfied": true,
      "decision": "accepted",
      "limits": {
        "maxDocuments": 8,
        "maxRequiredEvidence": 32,
        "maxTokenBudget": 16000
      },
      "observed": {
        "compiledEstimatedTokens": 81,
        "documentCount": 2,
        "requestedTokenBudget": 128,
        "requiredEvidenceCount": 2
      },
      "policyVersion": "governed-context-verification-policy/0.1"
    }
  },
  "limitations": [
    "This is a machine-generated context-control evidence packet, not…"
  ],
  "offerId": "governed-context-verification-pack",
  "receiptDigest": "sha256:5ec361418507cd2d1faf9ac3432fd3c7223d5976ebf350a1dd5a2c331…",
  "requiredEvidenceTextStored": false,
  "sourceTextStored": false,
  "version": "0.1"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/32224.json for the price and payment options.
  3. Pay. Call GET https://www.mahastrategies.com/api/v1/context/governed-verification. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.5 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.50xec84c1cd6602bbe387bc8e6f0d3c062f2762de2860s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "500000",
    "amountUsd": 0.5,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "additionalProperties": false,
      "properties": {
        "clientRequestId": {
          "type": "string"
        },
        "compiledContextStored": {
          "const": false,
          "type": "boolean"
        },
        "deliverable": {
          "type": "object"
        },
        "limitations": {
          "type": "array"
        },
        "offerId": {
          "const": "governed-context-verification-pack",
          "type": "string"
        },
        "receiptDigest": {
          "type": "string"
        },
        "requiredEvidenceTextStored": {
          "const": false,
          "type": "boolean"
        },
        "sourceTextStored": {
          "const": false,
          "type": "boolean"
        },
        "version": {
          "const": "0.1",
          "type": "string"
        }
      },
      "required": [
        "version",
        "offerId",
        "clientRequestId",
        "deliverable",
        "limitations",
        "sourceTextStored",
        "compiledContextStored",
        "requiredEvidenceTextStored",
        "receiptDigest"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "clientRequestId": "string",
    "compiledContextStored": true,
    "deliverable": {},
    "limitations": [
      "value"
    ],
    "offerId": "string",
    "receiptDigest": "string",
    "requiredEvidenceTextStored": true,
    "sourceTextStored": true,
    "version": "string"
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://www.mahastrategies.com/api/v1/context/governed-verification' -H 'Content-Type: application/json' --data '{"budgetMode":"guaranteed","clientRequestId":"req_governed_context_001","documents":[{"id":"release","text":"The release may proceed only after the security owner approves the evidence packet.\n\nThe rollback begins when the error rate exceeds two percent for five minutes.\n\nRoutine status notes describe staffing and meeting schedules.","title":"Release rule"},{"id":"operations","text":"The operator must preserve the request digest and approval identity.\n\nRoutine status notes describe staffing and meeting schedules.","title":"Operations note"}],"provenance":"compact","requiredEvidence":[{"evidenceId":"release-authority","sourceId":"release","text":"The release may proceed only after the security owner approves the evidence packet."},{"evidenceId":"rollback","sourceId":"release","text":"The rollback begins when the error rate exceeds two percent for five minutes."}],"scoring":"bm25","task":"Preserve the release authority and rollback condition.","tokenBudget":128}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://www.mahastrategies.com/api/v1/context/governed-verification", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"budgetMode\":\"guaranteed\",\"clientRequestId\":\"req_governed_context_001\",\"documents\":[{\"id\":\"release\",\"text\":\"The release may proceed only after the security owner approves the evidence packet.\\n\\nThe rollback begins when the error rate exceeds two percent for five minutes.\\n\\nRoutine status notes describe staffing and meeting schedules.\",\"title\":\"Release rule\"},{\"id\":\"operations\",\"text\":\"The operator must preserve the request digest and approval identity.\\n\\nRoutine status notes describe staffing and meeting schedules.\",\"title\":\"Operations note\"}],\"provenance\":\"compact\",\"requiredEvidence\":[{\"evidenceId\":\"release-authority\",\"sourceId\":\"release\",\"text\":\"The release may proceed only after the security owner approves the evidence packet.\"},{\"evidenceId\":\"rollback\",\"sourceId\":\"release\",\"text\":\"The rollback begins when the error rate exceeds two percent for five minutes.\"}],\"scoring\":\"bm25\",\"task\":\"Preserve the release authority and rollback condition.\",\"tokenBudget\":128}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://www.mahastrategies.com/api/v1/context/governed-verification", json=json.loads("{\"budgetMode\":\"guaranteed\",\"clientRequestId\":\"req_governed_context_001\",\"documents\":[{\"id\":\"release\",\"text\":\"The release may proceed only after the security owner approves the evidence packet.\\n\\nThe rollback begins when the error rate exceeds two percent for five minutes.\\n\\nRoutine status notes describe staffing and meeting schedules.\",\"title\":\"Release rule\"},{\"id\":\"operations\",\"text\":\"The operator must preserve the request digest and approval identity.\\n\\nRoutine status notes describe staffing and meeting schedules.\",\"title\":\"Operations note\"}],\"provenance\":\"compact\",\"requiredEvidence\":[{\"evidenceId\":\"release-authority\",\"sourceId\":\"release\",\"text\":\"The release may proceed only after the security owner approves the evidence packet.\"},{\"evidenceId\":\"rollback\",\"sourceId\":\"release\",\"text\":\"The rollback begins when the error rate exceeds two percent for five minutes.\"}],\"scoring\":\"bm25\",\"task\":\"Preserve the release authority and rollback condition.\",\"tokenBudget\":128}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
www.mahastrategies.com
Endpoint
https://www.mahastrategies.com/api/v1/context/governed-verification
Machine-readable
/resources/32224.json