l402-discover
Probe an endpoint to uncover L402 pricing before payment: returns cost in sats, payment methods, and credit tiers. Caches the challenge for a follow-up payment.
Instructions
Probe an endpoint to discover its L402 pricing without committing to payment. Returns the cost in sats, available payment methods, and credit tiers (if toll-booth server). The challenge is cached so a subsequent l402-pay can reuse it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "l402-discover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to probe for L402 pricing | |
| method | No | HTTP method to use | GET |