Skip to main content
Glama
event4u-app

@event4u/agent-config

Official

update_form_request_messages

Synchronize Laravel FormRequest messages() method: add missing custom messages linked to translation keys and remove stale entries after updating rules(). Preview changes with dry run mode.

Instructions

Synchronise the messages() method of a Laravel FormRequest class: add entries for validation rules that lack a custom message, link them to translation keys, and drop stale ones. Use after changing a FormRequest's rules(). Edits the class file on disk and returns the planned or applied message changes. Set dry_run: true to preview the diff without writing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_classYesFully-qualified FormRequest class FQN or repo-relative file path.
dry_runNoWhen true, return the planned message changes without editing the file.
Behavior4/5

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

The description discloses that the tool edits the file on disk and returns planned or applied changes. It explains the dry_run option to avoid modifications. No annotations are provided, so the description carries the full burden; it adequately covers the main behaviors but could mention potential side effects like overwriting existing messages.

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 two sentences, each serving a distinct purpose: explaining the core function and providing usage guidance. It is front-loaded with the main action and is appropriately concise with no unnecessary words.

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

Completeness5/5

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

Given the tool has two parameters, no output schema, and no nested objects, the description sufficiently covers purpose, usage context, parameter behavior, and expected outcome. An AI agent can correctly select and invoke the tool based on this description alone.

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 covers both parameters with descriptions. The description adds value by explaining the `dry_run` parameter's effect ('preview the diff without writing'), which goes beyond the schema's boolean description. For a simple tool with 100% schema coverage, this is above baseline.

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 purpose: synchronise the `messages()` method of a Laravel FormRequest class by adding, linking, and dropping entries. It specifies the verb (synchronise) and resource (messages() of FormRequest), and distinguishes it from sibling tools which perform different tasks.

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 provides explicit guidance: 'Use after changing a FormRequest's `rules()`.' It also explains the `dry_run` parameter to preview changes. However, it does not mention when not to use the tool or suggest alternatives, which would improve clarity.

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/event4u-app/agent-config'

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