add_endpoint_source
Register x402 API sources by adding a .well-known/x402 discovery base URL or a direct endpoint URL, enabling agents to discover and call paid endpoints.
Instructions
Add x402 endpoints. Pass a base_url to add a .well-known/x402 discovery source, or pass endpoint_url to add a single API endpoint directly.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_endpoint_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | No | Base URL of a server with .well-known/x402 (e.g. 'https://api.example.com') | |
| description | No | Optional description for a custom endpoint | |
| endpoint_url | No | Direct URL of a single x402 endpoint (e.g. 'https://api.example.com/v1/search') |