Skip to main content
Glama
Ivan-Madera

midd-nestjs-hexagonal-architecture-mcp

by Ivan-Madera

get_rules

Retrieve domain-agnostic hexagonal architecture rules and snippets. Apply them before generating or refactoring NestJS microservices to ensure consistency.

Instructions

Devuelve el cerebro de calidad del área (rules.yaml): las convenciones de arquitectura hexagonal, naming, puertos inbound/outbound multi-método, DTOs JSON:API, acceso a datos (TypeORM/SP), reglas de negocio, catálogo de errores, seguridad y complejidad. Es AGNÓSTICO de dominio (module/entity los pone el usuario) e incluye snippets destilados del repo canónico. El agente DEBE leerlo ANTES de generar un servicio nuevo o refactorizar uno existente.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden; it does disclose that the payload is domain-agnostic (module/entity supplied by the user) and includes distilled repo snippets, which is useful for interpreting the result. It says nothing about failure behavior (e.g. missing rules.yaml), caching, or whether the content is static — relevant for a file-backed fetch.

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?

Front-loaded with the verb and the artifact name, then a dense but purposeful enumeration of covered topics and a clear imperative. The content list is long but each item maps to a real rules domain; slightly verbose in Spanish prose but no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, no annotations and no params, the description does the necessary work: it describes what comes back and when to call it. The only gap is operational behavior (what happens if the rules file is unavailable), which matters for an agent planning a scaffold or refactor.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Zero parameters, so baseline 4 applies; the description correctly reinforces this by stating the tool is domain-agnostic and that module/entity are supplied by the user rather than as arguments.

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+resource ('Devuelve el cerebro de calidad del área (rules.yaml)') and enumerates its contents precisely: hexagonal architecture, naming, ports, DTOs, data access, error catalog, security. An agent can distinguish it from get_template or get_learnings by the contents, though no sibling is named explicitly.

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?

Gives an explicit trigger: read it BEFORE generating a new service or refactoring an existing one, which positions it relative to scaffold_service. It lacks any when-not guidance or named alternative, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.