Skip to main content
Glama

generate_use_case

Application service/use case with dependency inversion. Application layer tool. Use when: structuring code around use cases with dependency inversion. Related: generate_aggregate, generate_entity (domain 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": {
      "name": "<name>"
    },
    "name": "generate_use_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
inputNo
outputNo
dependenciesNo

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 burden. It says nothing about what the tool actually produces or does on disk – whether it emits code as text or writes files into the project, whether existing files are overwritten, or what conventions the generated scaffolding follows.

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 with no padding: purpose, layer placement, usage trigger, and related tools. The telegraphic style is efficient, though the fragmentary phrasing ("Application layer tool.") reads more like metadata tags than connected guidance.

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 four-parameter code generator with no annotations, no output schema, and zero schema description coverage, the description is too thin. An agent still cannot tell what the generated use case looks like, how `input`/`output` shape it, or what the call returns.

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% across four parameters, and the description only indirectly gestures at one of them via the phrase "dependency inversion" (likely the `dependencies` array). The `name`, `input`, and `output` parameters – including expected formats for the string and string-array values – receive no explanation anywhere.

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 concrete artifact ("Application service/use case with dependency inversion") and places it in the application layer, which lets an agent distinguish it from the domain-layer siblings generate_aggregate and generate_entity. The generating verb is only implied by the tool name rather than restated, but the resource is specific enough to act on.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition gives explicit guidance: "Use when: structuring code around use cases with dependency inversion," and points at related domain-layer tools, so the agent knows the architectural context. It stops short of stating when NOT to use it or how to choose between this and a domain-layer generator for a given class.

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.