earned-price

For shopping agents

A coupon code is useless to a shopping agent: it cannot guess one. A published, machine-checkable rule is not. This read-only interface lets an agent read a merchant's rule and ask what a buyer would pay.

Three tools (Model Context Protocol, HTTP)

  • get_rule — the rule in plain English and as validated JSON.
  • preview_price — what a recorded sample profile or a public GitHub login would pay, computed by the same code as the checkout. No order is created and nothing is charged.
  • get_checkout_link — the link the buyer opens to pay.

It cannot create an order or pay. Paying needs the buyer's own GitHub sign-in (no permissions) and their PayPal approval. Live GitHub lookups are rate limited; samples are not.

Try it

Add it to Claude Code

claude mcp add --transport http earned-price https://earned-price.onrender.com/api/mcp

Or call it directly

curl -s https://earned-price.onrender.com/api/mcp -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"preview_price","arguments":{"sample":"qualifies"}}}'