Skip to main content
Glama

generate_orm_models

Generate ORM model definitions from a schema (TypeORM, Prisma, Mongoose, SQLAlchemy)

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": {
      "table": "<table>",
      "fields": "<fields>",
      "orm": "<orm>",
      "database": "<database>"
    },
    "name": "generate_orm_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
ormYesORM target
tableYesTable or collection name
fieldsYesField definitions (name:type)
databaseYesDatabase backend
withRelationsNoInclude relationship decorators/fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It never states whether generation is pure/side-effect free, whether files are written or code is returned inline, or what the agent should expect back — critical for a code-generation tool with no output schema.

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?

A single tight sentence with zero filler, front-loading the verb and resource. It is arguably under-specified rather than verbose, but nothing in it is wasted.

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?

With five parameters, four required, and no output schema, the definition should clarify the shape of the result (files vs. code string) and the expected format of `fields` entries. Neither is addressed, leaving a meaningful gap for a tool whose entire value is the generated artifact.

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

Parameters3/5

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

Schema description coverage is 100%, so all five parameters (including the two enums and `withRelations`) are already documented in the schema; the baseline is 3. The description adds only the ORM enumeration, which partially duplicates the schema and inconsistently lists four of the five supported values.

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

Purpose4/5

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

The description states a specific verb+resource ("Generate ORM model definitions from a schema") and names supported ORMs, which is enough to distinguish it from unrelated generate_* siblings. However, the parenthetical list omits `sequelize`, which the schema enum supports, so the stated scope is slightly narrower than the actual capability.

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

Usage Guidelines2/5

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

No guidance on when to use this versus alternatives, no prerequisites (e.g., must a schema already exist, is it derived from the fields param or an external schema), and no exclusions. The agent must infer everything about invocation context from the name alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.