Compare strict rank-prefix packing with rank-order greedy-fit and score-density greedy-…
Compare strict rank-prefix packing with rank-order greedy-fit and score-density greedy-fit for up to 64 passages under a 1–2048 token budget. Report evidence displacement and optional observed selection violations. Uses declared integer costs/scores; no token…
by www.mahastrategies.com · discovered, not yet claimed by its owner · updated 2026-10-11
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
Compare strict rank-prefix packing with rank-order greedy-fit and score-density greedy-fit for up to 64 passages under a 1–2048 token budget. Report evidence displacement and optional observed selection violations. Uses declared integer costs/scores; no tokenization or causal attribution.
Tags: bounded-computation · evidence · deterministic · microproduct · expansion-20261011 · bazaar · declaration-integrity · maha-offer
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-11
{
"budget": 8,
"candidates": [
{
"evidenceIds": [
"e1"
],
"passageId": "p1",
"rank": 1,
"score": 9,
"tokens": 6
},
{
"evidenceIds": [
"e2"
],
"passageId": "p2",
"rank": 2,
"score": 8,
"tokens": 5
},
{
"evidenceIds": [
"e2"
],
"passageId": "p3",
"rank": 3,
"score": 3,
"tokens": 2
}
],
"dataClass": "synthetic",
"observedSelectedPassageIds": null,
"requiredEvidenceIds": [
"e1",
"e2"
]
}{
"amountBaseUnits": "78000",
"boundaries": [
"Public or synthetic inputs only. Caller labels are declarations,…"
],
"inputDigest": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
"offerId": "packing-displacement-analysis",
"receiptDigest": "sha256:24985ca1d03b3240df328902b9b5f442b1d3c93678823c9b5c0ad363a…",
"result": {
"budget": 8,
"causalityEstablished": false,
"dataClass": "synthetic",
"densityDisplacedPassageIds": [
"p1"
],
"densityGreedy": {
"coverageBps": 5000,
"coveredEvidenceIds": [
"e2"
],
"selectedPassageIds": [
"p2",
"p3"
],
"totalScore": 11,
"usedTokens": 7
},
"greedyAddedPassageIds": [
"p3"
],
"greedyFit": {
"coverageBps": 10000,
"coveredEvidenceIds": [
"e1",
"e2"
],
"selectedPassageIds": [
"p1",
"p3"
],
"totalScore": 12,
"usedTokens": 8
},
"greedyRecoveredEvidenceIds": [
"e2"
],
"inputSha256": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
"limits": [
"Public/synthetic is a caller declaration, not content inspection…"
],
"observedSelection": null,
"rankPrefix": {
"coverageBps": 5000,
"coveredEvidenceIds": [
"e1"
],
"selectedPassageIds": [
"p1"
],
"totalScore": 9,
"usedTokens": 6
},
"resultSha256": "sha256:45a542ef56b8f1a295b2ca7ab633aa121d2a07a6dd811984bd941498e…",
"sourcesVerified": false
},
"version": "maha-microproducts/0.1"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/32177.jsonfor the price and payment options. - Pay. Call
GET https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with 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.078 / 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
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.078 | 0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28 | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "78000",
"amountUsd": 0.078,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"amountBaseUnits": {
"enum": [
"78000"
],
"type": "string"
},
"boundaries": {
"maxItems": 128,
"minItems": 0,
"type": "array"
},
"inputDigest": {
"maxLength": 71,
"type": "string"
},
"offerId": {
"enum": [
"packing-displacement-analysis"
],
"type": "string"
},
"receiptDigest": {
"maxLength": 71,
"type": "string"
},
"result": {
"type": "object"
},
"version": {
"enum": [
"maha-microproducts/0.1"
],
"type": "string"
}
},
"required": [
"version",
"offerId",
"amountBaseUnits",
"inputDigest",
"result",
"boundaries",
"receiptDigest"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"amountBaseUnits": "78000",
"boundaries": [
"value"
],
"inputDigest": "string",
"offerId": "packing-displacement-analysis",
"receiptDigest": "string",
"result": {},
"version": "maha-microproducts/0.1"
},
"type": "string"
}Examples
curl -X POST 'https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis' -H 'Content-Type: application/json' --data '{"budget":8,"candidates":[{"evidenceIds":["e1"],"passageId":"p1","rank":1,"score":9,"tokens":6},{"evidenceIds":["e2"],"passageId":"p2","rank":2,"score":8,"tokens":5},{"evidenceIds":["e2"],"passageId":"p3","rank":3,"score":3,"tokens":2}],"dataClass":"synthetic","observedSelectedPassageIds":null,"requiredEvidenceIds":["e1","e2"]}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"budget\":8,\"candidates\":[{\"evidenceIds\":[\"e1\"],\"passageId\":\"p1\",\"rank\":1,\"score\":9,\"tokens\":6},{\"evidenceIds\":[\"e2\"],\"passageId\":\"p2\",\"rank\":2,\"score\":8,\"tokens\":5},{\"evidenceIds\":[\"e2\"],\"passageId\":\"p3\",\"rank\":3,\"score\":3,\"tokens\":2}],\"dataClass\":\"synthetic\",\"observedSelectedPassageIds\":null,\"requiredEvidenceIds\":[\"e1\",\"e2\"]}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis", json=json.loads("{\"budget\":8,\"candidates\":[{\"evidenceIds\":[\"e1\"],\"passageId\":\"p1\",\"rank\":1,\"score\":9,\"tokens\":6},{\"evidenceIds\":[\"e2\"],\"passageId\":\"p2\",\"rank\":2,\"score\":8,\"tokens\":5},{\"evidenceIds\":[\"e2\"],\"passageId\":\"p3\",\"rank\":3,\"score\":3,\"tokens\":2}],\"dataClass\":\"synthetic\",\"observedSelectedPassageIds\":null,\"requiredEvidenceIds\":[\"e1\",\"e2\"]}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- www.mahastrategies.com
- Endpoint
- https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis
- Machine-readable
/resources/32177.json