Polling clients trust If-None-Match and then get a 200 for the same bytes, or a 304 only after the W/ prefix on the ETag is stripped, so they cannot rely on the documented cache contract. $0.002 per call, USDC via x402 or MPP. Fetches a public URL, repeats the GET with If-None-Match using the issued tag and with the weak prefix stripped or added, and reports whether the contract is honored, broken, or has no ETag. An empty call checks https://example.com/.
No account and no API key. Pay per successful call with MPP on Tempo (USDC.e or pathUSD). Invalid input or an upstream failure returns 402 and is not charged.
| Route | Price | What you get |
|---|---|---|
POST /v1/http-cache-check | $0.002 | ETag Contract Tester Polling clients trust If-None-Match and then get a 200 for the same bytes, or a 304 only after the W/ prefix on the ETag is stripped, so they cannot rely on the documented cache contract. $0.002 per call, USDC via x402 or MPP. Fetches a public URL, repeats the GET with If-None-Match using the issued tag and with the weak prefix stripped or added, and reports whether the contract is honored, broken, or has no ETag. An empty call checks https://example.com/. |
These call POST /v1/http-cache-check ($0.002) — ETag Contract Tester. Swap the path for any other route in the table.
npx mppx https://etag-contract-tester.fmf-x402.workers.dev/v1/http-cache-check -X POST -H 'content-type: application/json' -d '{"url":"https://example.com/","etag_modes":["as_issued","strip_weak_prefix"]}'
The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.
curl -i -X POST https://etag-contract-tester.fmf-x402.workers.dev/v1/http-cache-check -H 'content-type: application/json' -d '{"url":"https://example.com/","etag_modes":["as_issued","strip_weak_prefix"]}'
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'
Mppx.create({
methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})
// Global fetch now pays the 402 automatically.
const res = await fetch('https://etag-contract-tester.fmf-x402.workers.dev/v1/http-cache-check', {
method: 'POST', headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"url":"https://example.com/","etag_modes":["as_issued","strip_weak_prefix"]}),
})
console.log(await res.json())
# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo
account = TempoAccount.from_key("0x...")
async def main():
async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
response = await mpp.fetch("https://etag-contract-tester.fmf-x402.workers.dev/v1/http-cache-check", method="POST", json={"url":"https://example.com/","etag_modes":["as_issued","strip_weak_prefix"]})
print(await response.json())
asyncio.run(main())
{
"mcpServers": {
"fmf-mpp-etag-contract-tester": {
"url": "https://etag-contract-tester.fmf-x402.workers.dev/mcp"
}
}
}
Transport is Streamable HTTP at https://etag-contract-tester.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.
Operated by FMF Tools (fmf-tools@agentmail.to). Pay-per-call only; no API key and no account. Invalid input or an upstream failure returns 402 and is not charged.