Beauty & Personal Care · x402 · early usage

Choose a context budget before an agent run

Choose a context budget before an agent run. Compare five extractive compilation budgets with token estimates and source coverage. Price basis: five compiler runs, the comparison table and the receipt digest. Uses caller-supplied documents; no answer generati…

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

30d calls2
30d payers2
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

Choose a context budget before an agent run. Compare five extractive compilation budgets with token estimates and source coverage. Price basis: five compiler runs, the comparison table and the receipt digest. Uses caller-supplied documents; no answer generation, factual verification or guaranteed token-billing savings.

Tags: ai · context · budget · provenance · x402 · bazaar · declaration-integrity · maha-offer

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-08
Input example from Bazaar metadata
{
  "budgetMode": "guaranteed",
  "clientRequestId": "req_budget_ladder_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",
  "scoring": "bm25",
  "task": "Preserve the release authority and rollback condition.",
  "tokenBudgets": [
    64,
    96,
    128,
    192,
    256
  ]
}
Output example
{
  "boundaries": [
    "Five deterministic compilations of the same supplied documents; …"
  ],
  "clientRequestId": "req_budget_ladder_001",
  "comparison": [
    {
      "compiledEstimatedTokens": 29,
      "includedPassageIds": [
        "operations:1"
      ],
      "outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
      "sourceCoveragePercent": 50,
      "tokenBudget": 64,
      "tokensSaved": 28
    }
  ],
  "compiledContextStored": false,
  "economicBasis": {
    "componentOfferId": "context-compression",
    "componentPriceBaseUnits": "1000",
    "componentRuns": 5,
    "priceBaseUnits": "5000"
  },
  "inputDigest": "sha256:971bb547c8bbfb88e93cc4cd3644b476a589a60341671fe06aeee0242…",
  "offerId": "context-budget-ladder",
  "receiptDigest": "sha256:69cde9faca3b195bc8a1c465ce0b5309aec342e1e276bbba8b8965da4…",
  "runs": [
    {
      "contextPack": {
        "clientRequestId": "req_budget_ladder_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:fcf75e8713e8e458f42d7b46c9831d1407544e49df606708ba5ec2a58…",
        "metrics": {
          "compiledBytes": 163,
          "compiledEstimatedTokens": 29,
          "duplicatePassagesRemoved": 1,
          "estimatedReductionPercent": 49.1,
          "originalBytes": 358,
          "originalEstimatedTokens": 57,
          "sourceCount": 2,
          "sourceCoveragePercent": 50,
          "tokensSaved": 28
        },
        "outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
        "packId": "ctxpack_85a631811b7f99e1e091b9f365aa6735",
        "retentionBoundaries": {
          "claimVerificationPerformed": false,
          "completenessGuaranteed": false,
          "evidenceRetention": "best_effort",
          "hallucinationPreventionGuaranteed": false,
          "selectionType": "extractive",
          "tokenCountType": "model_neutral_estimate"
        },
        "sources": [
          {
            "includedEstimatedTokens": 0,
            "includedPassageIds": [],
            "originalEstimatedTokens": 37,
            "passageCount": 3,
            "sourceHash": "sha256:e100472342b640276bf489453adba008e167f4039a5e8202528403f3a…",
            "sourceId": "release",
            "title": "Release rule"
          }
        ],
        "task": "Preserve the release authority and rollback condition.",
        "tokenBudget": 64,
        "version": "0.1.0",
        "warningCodes": [
          "model_neutral_token_estimates",
          "extractive_selection_not_verification"
        ],
        "warnings": [
          "Token counts are model-neutral estimates, not provider tokenizer…"
        ]
      },
      "tokenBudget": 64
    }
  ],
  "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/32115.json for the price and payment options.
  3. Pay. Call GET https://www.mahastrategies.com/api/v1/context/budget-ladder. 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.012 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
2 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

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

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "additionalProperties": false,
      "properties": {
        "boundaries": {
          "type": "array"
        },
        "clientRequestId": {
          "type": "string"
        },
        "comparison": {
          "maxItems": 5,
          "minItems": 1,
          "type": "array"
        },
        "compiledContextStored": {
          "const": false,
          "type": "boolean"
        },
        "economicBasis": {
          "type": "object"
        },
        "inputDigest": {
          "type": "string"
        },
        "offerId": {
          "const": "context-budget-ladder",
          "type": "string"
        },
        "receiptDigest": {
          "type": "string"
        },
        "runs": {
          "maxItems": 5,
          "minItems": 1,
          "type": "array"
        },
        "sourceTextStored": {
          "const": false,
          "type": "boolean"
        },
        "version": {
          "const": "0.1",
          "type": "string"
        }
      },
      "required": [
        "version",
        "offerId",
        "clientRequestId",
        "inputDigest",
        "economicBasis",
        "runs",
        "comparison",
        "boundaries",
        "sourceTextStored",
        "compiledContextStored",
        "receiptDigest"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "boundaries": [
      "value"
    ],
    "clientRequestId": "string",
    "comparison": [
      "value"
    ],
    "compiledContextStored": true,
    "economicBasis": {},
    "inputDigest": "string",
    "offerId": "string",
    "receiptDigest": "string",
    "runs": [
      "value"
    ],
    "sourceTextStored": true,
    "version": "string"
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://www.mahastrategies.com/api/v1/context/budget-ladder' -H 'Content-Type: application/json' --data '{"budgetMode":"guaranteed","clientRequestId":"req_budget_ladder_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","scoring":"bm25","task":"Preserve the release authority and rollback condition.","tokenBudgets":[64,96,128,192,256]}'
# -> 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/budget-ladder", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"budgetMode\":\"guaranteed\",\"clientRequestId\":\"req_budget_ladder_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\",\"scoring\":\"bm25\",\"task\":\"Preserve the release authority and rollback condition.\",\"tokenBudgets\":[64,96,128,192,256]}"
});
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/budget-ladder", json=json.loads("{\"budgetMode\":\"guaranteed\",\"clientRequestId\":\"req_budget_ladder_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\",\"scoring\":\"bm25\",\"task\":\"Preserve the release authority and rollback condition.\",\"tokenBudgets\":[64,96,128,192,256]}"))
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/budget-ladder
Machine-readable
/resources/32115.json