generate_rate_limited_endpoint
Generate a Laravel API endpoint with rate limiting, authentication, validation, and throttling to protect your routes from abuse.
Instructions
Generate a Laravel 13.2 API endpoint with rate limiting, auth, validation, and throttling middleware.
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": {
"route": "<route>"
},
"name": "generate_rate_limited_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | Route path e.g. 'api/users' | |
| method | No | GET | |
| rateDecay | No | Rate limit decay in minutes | |
| rateLimit | No | Requests per minute | |
| modelClass | No | Associated model class | |
| requireAuth | No | ||
| responseFormat | No | json |