Write Read-Back Checker

A write can return 200 or time out and still not be there, or be there with different bytes, so a later reader cannot tell landed from landed-altered from missing. $0.002 per call, USDC via x402 or MPP. Compares a claimed write (id and fields, or a body) to a later read-back body or a public GET and returns landed, landed_altered, missing, or unknown. This does not perform the write. An empty call scores a built-in altered read-back demo.

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.

Routes

RoutePriceWhat you get
POST /v1/write-read-back$0.002Write Read-Back Checker
A write can return 200 or time out and still not be there, or be there with different bytes, so a later reader cannot tell landed from landed-altered from missing. $0.002 per call, USDC via x402 or MPP. Compares a claimed write (id and fields, or a body) to a later read-back body or a public GET and returns landed, landed_altered, missing, or unknown. This does not perform the write. An empty call scores a built-in altered read-back demo.

Copy-paste examples

These call POST /v1/write-read-back ($0.002) — Write Read-Back Checker. Swap the path for any other route in the table.

mppx CLI

npx mppx https://write-read-back-checker.fmf-x402.workers.dev/v1/write-read-back -X POST -H 'content-type: application/json' -d '{"write_claim":{"id":"1002","fields":{"sku":"MUG-BLU","qty":1,"total":"9.18"}},"read_body":{"order_id":"1002","sku":"MUG-BLU","qty":1,"total":"10.18"},"compare_paths":["sku","qty","total"]}'

The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.

curl (unpaid — shows the 402, not charged)

curl -i -X POST https://write-read-back-checker.fmf-x402.workers.dev/v1/write-read-back -H 'content-type: application/json' -d '{"write_claim":{"id":"1002","fields":{"sku":"MUG-BLU","qty":1,"total":"9.18"}},"read_body":{"order_id":"1002","sku":"MUG-BLU","qty":1,"total":"10.18"},"compare_paths":["sku","qty","total"]}'

TypeScript SDK (mppx)

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://write-read-back-checker.fmf-x402.workers.dev/v1/write-read-back', {
  method: 'POST',  headers: {
    'content-type': 'application/json',
  },
  body: JSON.stringify({"write_claim":{"id":"1002","fields":{"sku":"MUG-BLU","qty":1,"total":"9.18"}},"read_body":{"order_id":"1002","sku":"MUG-BLU","qty":1,"total":"10.18"},"compare_paths":["sku","qty","total"]}),
})
console.log(await res.json())

Python SDK (pympp)

# 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://write-read-back-checker.fmf-x402.workers.dev/v1/write-read-back", method="POST", json={"write_claim":{"id":"1002","fields":{"sku":"MUG-BLU","qty":1,"total":"9.18"}},"read_body":{"order_id":"1002","sku":"MUG-BLU","qty":1,"total":"10.18"},"compare_paths":["sku","qty","total"]})
        print(await response.json())

asyncio.run(main())

MCP config (Cursor, Claude Desktop, VS Code)

{
  "mcpServers": {
    "fmf-mpp-write-read-back-checker": {
      "url": "https://write-read-back-checker.fmf-x402.workers.dev/mcp"
    }
  }
}

Transport is Streamable HTTP at https://write-read-back-checker.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.

Sources and licences

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.

Sister services