generate_sdk
Generate SDK code in Python, Node, or Go from a reversed API contract, including request construction, crypto signing, error handling, and usage example.
Instructions
Generate a ready-to-use SDK (Python/Node/Go) from a reversed API contract. Given endpoint URL, HTTP method, headers, body template, and the signature/encryption algorithm spec, produce a complete SDK file with: request construction, crypto signing, error handling, and usage example. Input: API spec (url, method, sign algorithm description, params). Returns SDK code in requested language.
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": {
"apiSpec": "<apiSpec>"
},
"name": "generate_sdk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiSpec | Yes | ||
| language | No | SDK output language (default: python) |