Skip to main content
Glama

map_aggregate_to_schema

Map a DDD aggregate with entities and value objects to relational tables

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>",
      "database": "<database>"
    },
    "name": "map_aggregate_to_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesTarget database
entitiesNoChild entity names
strategyNoMapping strategy
aggregateYesAggregate root name
valueObjectsNoValue object names

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 burden and largely drops it. It never says whether the tool writes files, emits SQL/DDL text, or only returns a mapping recommendation, nor whether the operation is read-only or mutating, nor how the choice of strategy alters output. Only the input side of the contract is implied.

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?

One front-loaded sentence with no filler, so nothing is wasted. However, the terseness leaves the reader without any structural hints about inputs or outcomes, which the remaining dimensions penalize.

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 5-parameter tool with no annotations and no output schema, the definition is thin: it never explains what is returned, how the three mapping strategies differ, or what happens to entities and value objects. The agent has enough to form a call but not enough to predict or trust the result.

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% and both enums are self-documenting ('Target database', 'Mapping strategy'), so the schema does the heavy lifting. The description adds no meaning about how entities/valueObjects are used or what effect strategy has on the resulting tables, so the baseline of 3 applies.

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 resource: 'Map a DDD aggregate with entities and value objects to relational tables.' An agent can tell this is a DDD-to-relational mapping tool, but the description does not distinguish it from nearby siblings such as convert_schema, design_schema, or generate_read_model_schema, which plausibly overlap.

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, no prerequisites, and no mention of an alternative. The agent must guess whether this produces DDL, a design plan, or a migration, and cannot tell when to prefer it over convert_schema or design_schema.

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.