Content-addressed result cache shared by your agents (short TTL)
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
| Field | Type | Required | Description |
|---|---|---|---|
op | string; one of "get", "put" | yes | |
namespace | string | no | Default: default. |
request | any | yes | Any JSON identifying the computation; it is canonicalized (RFC 8785) and hashed. |
value | any | no | put: the JSON result, at most 16384 bytes serialized. |
ttlSeconds | integer; 1..3600 | no | put: default 300. |
tenantId | string | no | Required 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.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: 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. |
op | string | no | |
hit | boolean | no | |
key | string | no | sha256(namespace + newline + hex sha256 of the JCS request). |
value | any | no | The cached value on a hit. |
storedAt | one of | no | |
expiresAt | one of | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always 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
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent