Skip to main content
Glama
shamimlaravel

laravel13-livewire4.2.1-mcp

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeYesRoute path e.g. 'api/users'
methodNoGET
rateDecayNoRate limit decay in minutes
rateLimitNoRequests per minute
modelClassNoAssociated model class
requireAuthNo
responseFormatNojson
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosing behavior, but it does not mention side effects (e.g., file creation/modification, overwrites), prerequisites (e.g., existing Laravel 13.2 project), or the generated endpoint's structure. The phrase 'generate' implies code output, but the exact behavior is opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the main action ('Generate a Laravel 13.2 API endpoint') and lists key features. It is concise with no irrelevant words, though the brevity contributes to the lack of behavioral detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 7 parameters, no output schema, and no annotations, so the description is the primary source of context. It fails to explain the tool's impact on the project (e.g., files written, routes registered) or the format of the generated code. For a code-generation tool with moderate complexity, the description is incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 57%, and the description does not compensate for the gap. It does not explicitly explain any of the seven parameters, only loosely referencing rate limiting and auth, which vaguely map to rateLimit and requireAuth. The description adds little meaning beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as generating a Laravel 13.2 API endpoint with specific features (rate limiting, auth, validation, throttling middleware). It distinguishes itself from sibling tools like generate_routes by emphasizing the rate-limiting and middleware aspects, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool (i.e., when you need a Laravel endpoint with rate limiting and auth) but does not explicitly state alternatives or exclusions, such as using generate_routes for non-rate-limited endpoints. The usage context is only hinted at rather than clearly defined.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shamimlaravel/laravel13-livewire4.2.1-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server