Skip to main content
Glama

generate_model

Generate an Eloquent-style Model class with fillable attributes, casts, and table name for WordPress plugin development.

Instructions

Generate an Eloquent-style Model class with fillable, casts, and table name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNamespaceYesPlugin root namespace (e.g., "MyPlugin")
classNameYesClass name (e.g., "ModelsExample")
extraTokensNoAdditional token replacements
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It does not mention where the file is written, whether it overwrites existing files, authentication requirements, or any side effects. For a code generation tool, these are important behavioral details.

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 sentence of 12 words that immediately conveys the tool's purpose. There is no filler or redundancy, so every word earns its place.

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

Completeness3/5

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

With no output schema, the description should provide adequate information about what the tool produces. It mentions the class features (fillable, casts, table name), but lacks details like file naming, namespace handling, or output structure. Given the tool has only 3 parameters and is relatively simple, the description is minimally adequate.

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?

Schema coverage is 100% with each parameter having a description. The description adds value by indicating the generated output includes fillable, casts, and table name, which provides context beyond the schema. extraTokens is described in schema as 'Additional token replacements', and the description hints at its usage indirectly.

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 it generates an Eloquent-style Model class with specific features (fillable, casts, table name). The verb 'Generate' and resource 'Model class' are specific, and it distinguishes itself from sibling tools like generate_controller or generate_command.

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 provides no explicit guidance on when to use this tool versus alternatives. It does not mention prerequisites, when not to use it, or suggest other tools. Given the sibling list includes many generation tools, some guidance would be helpful.

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/WPDiggerStudio/wpzylos-mcp'

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