Skip to main content
Glama

generate_projection

Generate an event projection query that builds a read model from the event store

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": {
      "aggregate": "<aggregate>",
      "events": "<events>",
      "readModel": "<readModel>",
      "database": "<database>"
    },
    "name": "generate_projection"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYesEvent types to handle
databaseYesTarget database
aggregateYesAggregate name to project
readModelYesTarget read model table name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/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 burden. It does not disclose whether this only emits a query/DDL artifact or actually creates the read model table in the target database, whether it is idempotent, whether it overwrites an existing projection, or what permissions are needed for the named database.

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 sentence with no filler, and the artifact type and its purpose are front-loaded. It is arguably too terse for the amount of ambiguity it leaves, 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 four required parameters, no annotations, and no output schema, the description should explain what is returned (a query string? a migration file? a created table?) and whether any side effects occur. Neither is covered, leaving a material gap for a code-generation tool with all-required inputs.

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 four documented parameters (aggregate, events, readModel, database including an enum), so the schema already does the heavy lifting. The description adds only the framing that these relate to an event store and a read model, without clarifying format or constraints such as whether 'events' must exist or how readModel relates to the aggregate.

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?

States a specific verb and artifact ('Generate an event projection query') plus its effect ('builds a read model from the event store'), so the agent knows this is event-sourcing read-model generation rather than the many other generate_* config tools. It stops short of naming or contrasting any sibling, which keeps it at 4 rather than 5.

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 phrase 'builds a read model from the event store' implies the usage context (you have an event-sourced aggregate and want a projection), which is more than nothing. However there is no explicit when-to-use/when-not-to-use guidance, no mention of alternatives, and no prerequisite about the event store or target database needing to exist.

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.