Blog · Billing

Why a failed tool call should cost nothing.

An AI agent calls a paid tool and the tool breaks. Charging the caller feels unfair; not paying the tool's creator for work they did feels unfair too. There is a clean line between the two, and it sits at the first byte.

By the Nexus402 team 5 min read

The short answer

A paid tool call that fails before any output reaches the caller should cost nothing, because nothing of value was delivered. One that fails after output started arriving should be charged, because the work was done and part of it was received. On Nexus402 the first case is refunded automatically, and the second is charged at the tool's price.

Who should pay when a tool call fails?

Per-call pricing makes this question unavoidable. With a monthly plan, a failed request is lost in the average. With a price on every call, every failure has an owner: either the developer pays for nothing, or the creator works for nothing.

Both answers are wrong some of the time. A developer should not pay for a timeout. A creator should not lose the price of a long, expensive call because the caller hung up halfway. The rule has to tell those cases apart, every time, without a person reviewing them.

Why the line is the first byte

Before the first byte of the answer reaches the caller, nothing has been delivered. Refunding then costs nobody anything they received. After the first byte, the creator has done the work and the caller holds some of it. Refunding then would make every long-running tool uneconomic to offer, because any caller could take most of an answer and walk away free.

So the first byte is the boundary. It is also something both sides can observe, which matters: a billing rule nobody can check is a billing rule nobody trusts.

Every outcome, and who pays

What happenedCharged?
The tool answeredYes, the listed price
The tool failed before any byte reached youNo, refunded automatically
The tool timed out before its first byteNo, refunded
The tool failed after the first byte reached youYes, part of the work was delivered
You cancelled mid-streamYes, the work was done and partly delivered
Your wallet or the key's cap could not cover itNo, a 402 and nothing taken

Any refusal before the call is made (a 400, 401, 402, 422, 429 or 503) is never charged. A refund on Nexus402 is a new entry in an append-only ledger, not an erased one, so the history of every call stays complete.

A broken answer is a failure too

"Failed" should not only mean an error status. On Nexus402, a creator's server signs its answer with a proof the gateway checks before relaying anything. A response that comes back without a valid proof is treated as a failure before the first byte: the caller gets nothing from it and is not charged. That closes a quieter gap, where a misconfigured or impersonated server returns something that looks like an answer and is billed as one.

What it means for creators

A refunded call owes the creator nothing, which sounds harsh until you see the other side: every call that answers is owed, at once, at the published price less our margin. The incentive is simply to answer quickly and reliably. Endpoints must send a first byte within 5 seconds and finish within 120, and a version whose endpoint is at fault on 20 consecutive calls is taken out of the catalogue until it is republished, so a broken tool stops costing anyone time.

That is the bargain that makes paying per call safe to say yes to, on both sides. Publishing a tool takes minutes; calling one takes less.

Questions

Asked often.

Frequently asked questions

Do I pay if an MCP tool call fails?

Not if it fails before any output reaches your agent: the charge is refunded automatically. If it fails after output started arriving, you are charged, because the work was done and part of it was delivered.

What if the tool times out?

A tool that times out before sending its first byte is not charged. Tools must send their first byte within 5 seconds and finish within 120.

What if I cancel a call?

Cancelling mid-stream is charged, because the work was done and partly delivered. The line is the same as for a failure: what matters is whether output had started reaching you.

Are refused calls ever charged?

No. A call refused with 400, 401, 402, 422, 429 or 503 is never charged.

Pay for answers, not for attempts.

Every tool in the catalogue at a fixed price per call, refunded automatically when it fails first.