Skip to main content
Glama
sirius-zuo

Design-Pattern-MCP

by sirius-zuo

get_template

Retrieve structural constraints and anti-patterns for a design pattern in a selected language. Provides concise plain-text guidance for implementing patterns correctly.

Instructions

Get structural constraints and anti-patterns for a specific design pattern in a specific language. Returns compact plain text (~300-500 tokens) optimized for LLM consumption. Call this when you know which pattern to implement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesPattern name (e.g. "Strategy", "Observer", "Circuit Breaker")
languageYesTarget language: "go", "java", "python", "rust", or "generic"
Behavior4/5

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

The description discloses that the tool returns compact plain text (~300-500 tokens) optimized for LLM consumption, which goes beyond the basic action. Since no annotations are provided, this adds useful context about output format and size. It does not explicitly state side effects, but the verb 'Get' implies a read-only operation, and no contradicting information exists. A small deduction for not explicitly noting that the operation is read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, with the first sentence stating the core purpose and the second providing usage guidance. Every word earns its place; there is no fluff or repetition of schema information. It is efficiently structured and immediately readable.

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

Completeness5/5

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

For a simple two-parameter tool with full schema coverage, the description provides sufficient context: it tells the agent what the tool does, when to call it, and what the output format looks like. No output schema exists, but the description's mention of plain text token size gives the agent enough to know what to expect. The sibling tool relationship is also addressed via usage guidance.

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?

The input schema already provides 100% coverage for both parameters (`pattern` and `language`) with examples and allowed values. The description does not add meaning beyond what the schema gives, such as parameter constraints or relationships. The baseline of 3 is appropriate given full schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the function: retrieving structural constraints and anti-patterns for a specific design pattern in a specific language. The verb 'Get' and the resource ('structural constraints and anti-patterns') are specific and distinguish this from the sibling `suggest_pattern`, which likely suggests patterns rather than retrieving details for a known one.

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

Usage Guidelines5/5

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

The description explicitly says 'Call this when you know which pattern to implement,' which directly tells the agent when to use this tool. It implicitly contrasts with the sibling `suggest_pattern`, implying that if the pattern is unknown, the other tool should be used first. This provides clear usage guidance and exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sirius-zuo/design-pattern-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server