Skip to main content
Glama

generate_strategy

Strategy pattern implementation for interchangeable algorithms. Use when: you specifically need the Strategy pattern with interchangeable algorithms. Related: apply_design_pattern

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": {
      "context": "<context>",
      "strategies": "<strategies>"
    },
    "name": "generate_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYes
interfaceNo
strategiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.2/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 behavioral burden and does very little: 'implementation' hints at code generation but nothing is said about side effects, overwrite behavior, permissions, or determinism. For a generator with no structured safety hints, that is a significant disclosure gap.

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?

The text is short and front-loaded, but the second sentence largely repeats the first with the same pattern-name phrasing, so roughly half the content adds no new information. It is compact rather than wasteful, but the redundancy costs it.

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 three undocumented parameters, no annotations, and no output schema, the description should specify inputs, what is generated, and how it differs from apply_design_pattern, and it does none of these. An agent could not confidently construct a correct call from this definition alone.

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

Parameters1/5

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

All three parameters (context, interface, strategies) have 0% schema description coverage, and the description explains none of them – not what 'context' means, what shape 'interface' takes, or how strategy names map to output. 'Interchangeable algorithms' only faintly gestures at the strategies array and leaves the other two undocumented.

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

Purpose3/5

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

The description identifies the artifact family as a Strategy pattern implementation with interchangeable algorithms, which is a specific concept, but it never says what is actually produced (code files, scaffold, config) or where it lands. It also does not meaningfully distinguish this tool from the named sibling apply_design_pattern beyond restating the pattern name.

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?

The 'Use when' clause merely echoes the purpose line ('you specifically need the Strategy pattern with interchangeable algorithms'), so it gives no real selection criteria. It lists apply_design_pattern as related but never says when to prefer that sibling over this one, leaving the agent with a circular recommendation.

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.