get_endpoint_spec
Fetch the complete reference for any PayRetailers endpoint, including parameters, response, and error codes, to generate code against the exact schema.
Instructions
Return the full reference page (parameters, response, error codes) for a specific PayRetailers endpoint. Use this to ground your generated code against the exact request/response schema before emitting 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": {
"endpoint": "<endpoint>"
},
"name": "get_endpoint_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | 'full' returns the entire reference page. 'summary' returns just the top of the page. Default 'full'. | |
| endpoint | Yes | Endpoint slug or logical name. Examples: 'create-transaction', 'create-payout', 'createpayoutquote', 'get-payment-methods', 'post_v1-subscriptions'. Case-insensitive. |