rest_generate_routes
Generate ready-to-use Express/Fastify route handlers with request validation and error handling from endpoint lists.
Instructions
Generate Express/Fastify route handlers with validation and error handling
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": {
"endpoints": "<endpoints>"
},
"name": "rest_generate_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| endpoints | Yes | List of endpoints to generate routes for (e.g. 'GET /users', 'POST /users') | |
| framework | No | Target framework | express |
| include_validation | No | Whether to include request validation |