generate_integration
Generates ready-to-use code for integrating the Modernity API into your app, including authentication, error handling, and rate-limit retry logic.
Instructions
Generate ready-to-use code for integrating the Modernity API into an application. Produces working code with authentication, error handling, rate-limit retry logic, and best practices. Use this when a user wants code to call the API from their app, needs a quick start snippet, or is building a feature that uses live data.
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": "generate_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | Which endpoint to generate code for: 'recent', 'query', 'multi', 'live_sse', 'sources', 'snapshot', 'counts', 'analyze', 'full_client'. Default: 'recent' | |
| language | No | Target language/framework: 'python', 'javascript', 'typescript', 'curl', 'nextjs', 'react', 'node'. Default: 'python' | |
| use_case | No | Optional: describe what you're building (e.g. 'crypto price dashboard', 'news monitoring bot', 'earthquake alert system') for tailored code |