Skip to main content
Glama

generate_repository

Generate repository interface + implementation following DDD

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": "generate_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodsNo
databaseYes
aggregateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it omits the essentials for a file-generating tool: where output is written, whether existing files are overwritten, and what the tool returns. It also doesn't say whether the aggregate referenced must already exist. Only the generation target is disclosed.

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?

A single short sentence with no filler and the key action front-loaded, so it is efficient. However, at this length for a three-parameter generator with zero schema documentation, the terseness reads as under-specification rather than disciplined concision.

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 code-generation tool with three parameters, no annotations, no output schema, and 0% schema coverage, the definition leaves too much unknown for confident invocation. The agent cannot predict the artifacts produced, their location, or the meaning of two of the three parameters.

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

Parameters2/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 and does not. It never explains what 'aggregate' refers to (a name, a path, an existing type), what 'methods' entries should look like, or how 'database' changes the generated implementation beyond the self-evident enum. The phrase 'interface + implementation' only loosely implies that methods populate the generated signatures.

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 names a specific verb and resource pair ('Generate repository interface + implementation') and adds the DDD convention, which separates it from adjacent generators like generate_aggregate or generate_adapter. It does not explicitly contrast with siblings, but the resource is unambiguous.

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 statement of when to use this tool versus alternatives, no prerequisites (e.g. does an aggregate need to exist first?), and no exclusions. 'Following DDD' hints at architectural context but gives no actionable selection criteria.

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.