Skip to main content
Glama

generate_domain_model

Create Aggregates, Entities, Value Objects following DDD patterns. Domain layer tool. Use when: modeling business domains with DDD. Related: generate_use_case, create_clean_layers (application layer)

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

Input Schema

NameRequiredDescriptionDefault
fieldsNo
entitiesNo
aggregateYes
valueObjectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. 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 disclosure burden. It says nothing about what artifact is produced (files? code snippet?), whether existing aggregates are overwritten, what prerequisites exist, or what the response contains — significant gaps for a scaffolding/mutation tool.

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?

Three short, front-loaded fragments that are easy to scan, with no filler. The telegraphic style ('Domain layer tool.') is slightly choppy but costs nothing in clarity.

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 no annotations, no output schema, zero parameter documentation, and a nested 'fields' object, the description is too thin for the tool's complexity. An agent can guess the intent but cannot predict the generated output or how to shape 'fields'.

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 0%, so the description must compensate. It implicitly names three of the four parameters (aggregate, entities, valueObjects) by referencing the DDD concepts, but the 'fields' object parameter and the expected string format of the entity/value-object arrays are never explained.

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 ('Create') and concrete resources (Aggregates, Entities, Value Objects) plus the governing pattern (DDD), and labels itself 'Domain layer tool'. It doesn't distinguish itself from close siblings such as generate_aggregate or generate_domain_event, so it falls short of a 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?

'Use when: modeling business domains with DDD' gives a context, and the related-tools line marks generate_use_case and create_clean_layers as application-layer. However, the trigger condition nearly restates the tool name, and there is no guidance on when to pick this over generate_aggregate or generate_domain_event, nor any when-not guidance.

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.