MPP32 icon indicating copy to clipboard operation
MPP32 copied to clipboard

get_solana_token_intelligence declares idempotentHint: true on a $0.008/query metered endpoint — hosts read that as licence to retry, and a retry is a second charge (index.ts:644)

Open aurumflux20 opened this issue 2 months ago • 0 comments

Summary

get_solana_token_intelligence is a metered, paid tool — the sibling free-demo tool's own description points callers at it "for unlimited, attributed usage at $0.008/query" — and it declares:

// backend/src/index.ts:642-646
annotations: {
  title: "Solana Token Intelligence",
  destructiveHint: false,
  idempotentHint: true,      // <-- on a per-query charged endpoint
  openWorldHint: true,
},

The MCP specification defines idempotentHint as: calling the tool repeatedly with the same arguments has no additional effect on its environment. A per-query charge is an additional effect. Two identical calls are two charges.

This annotation is not documentation — hosts read it and act on it. idempotentHint: true is the signal that says a retry after a timeout or a dropped connection is free of consequence, so a host is entitled to retry without asking. On a metered endpoint that turns one intended query into two billed ones, and the caller has no way to know: both responses are valid, both are identical, and nothing in either indicates a duplicate charge occurred.

The same pairing appears on the two M32-gated tools at :740 and :759. Those describe themselves as free for qualifying holders, so the annotation may be correct there — I am not claiming those are defects, only that the same value is applied across tools with different billing behaviour.

Why I think this one is worth your time

Your own annotations elsewhere in the same file are careful and correct. call_paid_api (:680) and the non-custodial service call (:700) both declare idempotentHint: false, which is exactly right for a proxy that forwards a paid request. So the distinction is understood in this codebase; the paid oracle is the one place where the paid path carries the safe-to-retry flag.

That also makes this cheap to get wrong and cheap to fix: it is a single annotation on one tool, not a design problem.

Second-order point, worth a look on its own: readOnlyHint is asserted on the tool immediately preceding this one at :626. A metered call is read-only with respect to your data and not with respect to the caller's balance. Whether a host treats readOnlyHint as licence to retry or parallelise is host-defined, and it is the same class of assumption.

What I checked

  • :631-648 — the full tool definition, including idempotentHint: true.
  • :649-661 — the free-demo tool whose description states the paid rate of $0.008/query and directs callers to the paid tool for unlimited use.
  • :139 — const price = s.pricePerQuery ?? 0.001; — per-query pricing is the model, with a non-zero default.
  • :154, :158, :171 — fixed-amount price mode, HTTP 402 payment challenges across the paid endpoints.
  • :680, :700 — the proxy tools correctly declare idempotentHint: false, which is why I read this as an inconsistency rather than a policy.

Limits, stated plainly

This is a code read. I have not driven an MCP host through a timeout against your endpoint and observed two charges — that experiment is what turns a mechanism into a measured rate, and I would want it before quoting one.

If the billing layer deduplicates identical (agent key, token, window) requests server-side, the annotation is arguably honest and this reduces to a documentation gap — I would publish that correction with the same prominence as the claim. I could not establish it from the repository, and the annotation is what a host acts on regardless of what happens behind it.

On the fix

The fix here is genuinely small — one annotation, plus a decision about the two M32 tools. I am not posting the patch.

I would rather say why than be coy about it: I have filed seven of these over three weeks, each with the full remedy and a failing test attached, free. Seven teams shipped fixes. It built a real public record and it has not been a business. So the finding is free and the fix is the work now.

Given how small this one is, the honest offer is not a patch — it is the rest of the surface. If it is useful: I read one money path end to end and return every finding tied to your own file and line numbers, each with its patch and a failing test in your own harness. Five working days, written only, no call. $1,200, no invoice if the path is clean. Deliverable specified up front: https://github.com/aurumflux20/seal/blob/main/docs/REVIEW-DELIVERABLE.md

And if you would rather simply have this one, say so here and I will post it for nothing. I will not withhold a payment-safety fix on a public repository. But it is what I sell, and asking costs you nothing.

Context: of ten agent-payment money paths read in three days, seven could charge a payer twice on an ambiguous outcome. Public record, evidence per row, nobody named while their finding is open: https://aurumflux.co/retry-safety/

aurumflux20 avatar Sep 04 '26 17:09 aurumflux20