Skip to main content
Glama
shamimlaravel

laravel13-livewire4.2.1-mcp

generate_middleware

Generate Laravel HTTP middleware classes for Admin, Tenant, VerifyEmail, RateLimit, CheckSubscription, and MaintenanceMode to enforce access control and request constraints.

Instructions

Generate a Laravel HTTP middleware class (Admin, Tenant, VerifyEmail, RateLimit, CheckSubscription, MaintenanceMode).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
middlewareNameYes
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It accurately indicates a code-generation action and lists the middleware class options. However, it doesn't disclose details like whether the generated file overwrites existing files, the expected file path convention, or whether namespace/registration steps are included. This is a moderate level of transparency for a generation tool.

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

Conciseness5/5

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

The description is a single, front-loaded sentence that states the action, the target (Laravel HTTP middleware class), and the complete set of options in parentheses. Every word earns its place; there is no redundancy or filler.

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

Completeness4/5

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

The tool is simple: one parameter, no output schema, and a clear generation action. The description fully specifies the parameter domain, making the tool usable for an agent to invoke correctly. The only slight gap is the lack of behavioral information about the generation side effects, but for a simple generator, the description is sufficiently complete.

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

Parameters4/5

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

The input schema describes the single parameter (middlewareName) with an enum of all six valid values, which provides complete shape information. The description's list of middleware names exactly matches the enum and adds meaningful context about what each preset represents, going slightly beyond the raw schema. With one parameter at 0% schema description coverage, the description compensates well by listing options.

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 states the tool's function: 'Generate a Laravel HTTP middleware class' with a specific verb and resource. It lists the exact middleware names (Admin, Tenant, VerifyEmail, RateLimit, CheckSubscription, MaintenanceMode), which not only clarifies scope but also aligns perfectly with the sibling tool generate_custom_middleware, distinguishing this as the preset-based generator.

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

Usage Guidelines4/5

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

The description explicitly scopes the tool to generating one of the six listed Laravel HTTP middleware classes, which implicitly tells the agent when to use it. While it doesn't name generate_custom_middleware as the alternative for custom middleware, the sibling context and the enumerated list strongly imply the distinction, giving clear context without explicit exclusions.

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