Skip to main content
Glama

generate_read_model_schema

CQRS read model: denormalized view table or materialized view for query-side

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

Input Schema

NameRequiredDescriptionDefault
nameYesRead model name
asViewNoGenerate as SQL view instead of table
fieldsYesProjected fields (name:type)
databaseYesTarget database

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/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 does not say whether the tool writes DDL files or just returns SQL text, whether output is idempotent, what happens on name collisions, or what the caller receives; for a generator tool with per-database branching this is a meaningful gap.

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

Conciseness3/5

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

It is a single compact fragment with zero wasted words, which is good, but it is under-specified rather than concise: no leading verb and no structure beyond a colon-delimited gloss. There is nothing to trim, but the brevity comes at the cost of the information an agent needs.

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?

For a 4-parameter, 3-required generator with no output schema and no annotations, the description does far too little: it never states what the generated artifact looks like or how the database enum affects it. An agent would have to infer essentially all behavior from parameter names.

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%, with all four parameters documented in the schema including the enum for target database, so the baseline is 3. The description adds only a loose hint that 'view table or materialized view' relates to the asView flag, but it never explicitly maps that phrase to the parameter or explains the table-versus-view tradeoff.

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

Purpose3/5

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

The description identifies the artifact ('CQRS read model: denormalized view table or materialized view for query-side'), so an agent can tell it produces a query-side read model schema. However it is a noun phrase with no verb, and it gives no signal distinguishing it from sibling generators such as generate_domain_model or generate_graphql_schema, which also produce schema artifacts.

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?

There is no when-to-use guidance at all: nothing says when a read model is appropriate versus a domain model or event store schema, and no alternative sibling is named as a fallback. The phrase 'for query-side' hints at the CQRS context but does not tell the agent when to select this tool over its many siblings.

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.