{"uid":"cap_wmIW_cSnIUuggw_9jFjb4","slug":"writerslogic-cache-key-checker-704fa67f","name":"WritersLogic Cache Key Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/cache-key-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"scope":{"type":"string","maxLength":200,"description":"Namespace mixed into the digest."},"inputs":{"type":"array","items":{"type":"object","required":["name","influencesOutput"],"properties":{"name":{"type":"string","maxLength":200,"minLength":1},"value":{"description":"Optional value, used only to compute the key digest."},"volatile":{"type":"boolean","description":"Changes on every call (timestamp, request id, nonce)."},"influencesOutput":{"enum":["yes","no","unknown"],"type":"string"}},"additionalProperties":false},"maxItems":100,"minItems":1},"private":{"type":"boolean","description":"The result is per-tenant or per-user."},"keyParts":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":100,"description":"Names of the inputs the key is built from."},"tenantInput":{"type":"string","maxLength":200,"minLength":1,"description":"Name of the input that identifies the tenant or user; required in the key when private."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HXVH5tMagtn6yFRBNgzds","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a declared set of computation inputs and cache key parts to detect stale hits, volatile inclusions, unknown-influence omissions, and cross-tenant leaks, optionally returning a deterministic SHA-256 key digest.","exampleAgentPrompt":"Check my cache key setup: I have inputs userId (influencesOutput=yes), requestId (influencesOutput=no, volatile=true), modelVersion (influencesOutput=yes), and timestamp (influencesOutput=no, volatile=true). My key is built from modelVersion only, the result is private, and the tenant input is userId. Flag anything wrong and give me the key digest.","exampleUseCases":[{"title":"Catching stale hits from missing model version","prompt":"My AI inference cache uses only the prompt text as the cache key, but I also have a modelVersion input that influences the output and a temperature setting that influences output — neither is in the key. Can you check this setup and tell me which inputs I'm missing that could cause stale cache hits?"},{"title":"Preventing cross-tenant data leaks","prompt":"I'm building a multi-tenant API that caches responses. The inputs are tenantId (influencesOutput=yes), query (influencesOutput=yes), and requestNonce (influencesOutput=no, volatile=true). My cache key only uses query. The result is private per tenant and tenantInput is tenantId. Run a cache key check and tell me if there's a cross-tenant leak risk."},{"title":"Computing a deterministic cache key digest","prompt":"I need a reproducible SHA-256 cache key digest for a computation with inputs: userId with value 'u-42' (influencesOutput=yes), locale with value 'en-US' (influencesOutput=yes), and sessionToken with value 'tok-abc' (influencesOutput=no). The key is built from userId and locale, scope is 'recommendations-v2'. Give me the digest and flag any issues."}],"resultDescription":"Returns lists of problematic inputs categorized as: influential inputs missing from the key (stale/wrong cache hits), volatile inputs inside the key (cache never hits), unknown-influence inputs omitted from the key, and a missing tenant dimension warning for private results. When input values are provided, also returns a deterministic RFC 8785 JSON + SHA-256 key digest string.","failureModes":["Missing required 'inputs' array returns a 400 validation error","'keyParts' referencing names not present in the inputs list may produce unexpected results","Providing 'private: true' without specifying 'tenantInput' triggers a cross-tenant leak warning rather than an error","Input arrays exceeding 100 items are rejected with a 400 error","Digest is only computed when all relevant inputs include a 'value' field; otherwise digest is omitted"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify or audit cache key correctness before deploying or during debugging, especially when the inputs' influence on output is known by the caller (not discovered by code inspection). It is the right choice when you want a declarative, code-free cache key audit with optional deterministic digest computation and multi-tenant safety checking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:37:06.349Z","isFirstParty":false,"canonicalSlug":"writerslogic-cache-key-checker-704fa67f"}