Content-addressed result cache shared by your agents (short TTL)

$0.005 USDC per call · Agent infrastructure · POST /api/v1/result-cache · Id result-cache

Caches a result under the SHA-256 of the canonical (JCS) request, so every agent in your fleet that makes the same request reuses one answer for up to an hour. get returns hit with the value and age, or a miss (status unknown). Scoped to your wallet or tenantId, never shared across customers, so nobody else can poison your cache.

What you get

One $0.005 lookup replaces repeating an expensive model or API call across a fleet.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/result-cache. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/result-cache \
  -H 'content-type: application/json' \
  -d '{"op":"get","namespace":"geocode","request":{"q":"1600 Amphitheatre Pkwy","provider":"osm"}}'

Input

FieldTypeRequiredDescription
opstring; one of "get", "put"yes
namespacestringnoDefault: default.
requestanyyesAny JSON identifying the computation; it is canonicalized (RFC 8785) and hashed.
valueanynoput: the JSON result, at most 16384 bytes serialized.
ttlSecondsinteger; 1..3600noput: default 300.
tenantIdstringnoRequired for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant.

Example request body

{
  "op": "get",
  "namespace": "geocode",
  "request": {
    "q": "1600 Amphitheatre Pkwy",
    "provider": "osm"
  }
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
opstringno
hitbooleanno
keystringnosha256(namespace + newline + hex sha256 of the JCS request).
valueanynoThe cached value on a hit.
storedAtone ofno
expiresAtone ofno
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the agent-coordination-kit package.

Machine-readable