Docs: Generate Code Example
docs-generate-code-exampleGenerate code examples for Gameball API endpoints in your chosen language, including JavaScript, Python, C#, Go, PHP, or Java. Provide endpoint, method, and request body to get ready-to-use code.
Instructions
Generate a code example for a Gameball API endpoint in a specific programming language. Use when the user asks for code in a specific language (not cURL, which is already included in docs-get-api-endpoint).
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>",
"method": "<method>",
"language": "<language>"
},
"name": "docs-generate-code-example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional JSON request body to include | |
| method | Yes | HTTP method: GET, POST, PUT, DELETE | |
| endpoint | Yes | API path, e.g. "/api/v4.0/integrations/customers" | |
| language | Yes | Language: javascript, python, csharp, go, php, java |