Skip to main content
Glama

add_pattern

Add or update a reusable portfolio pattern with a key, category, description, evidence, and optional scope so agents can retain and query project knowledge.

Instructions

Add or update a reusable portfolio 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": {
      "key": "<key>",
      "category": "<category>",
      "description": "<description>",
      "evidence": "<evidence>"
    },
    "name": "add_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
scopeNo
categoryYes
evidenceYes
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.2/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 mostly drops it. It does not state what happens to an existing pattern on update (merge vs full replace), whether prior evidence is preserved, what permissions or session state are required, or whether the write is reversible — all critical for a mutation tool.

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, so there is nothing to trim. But brevity here reflects under-specification rather than discipline: it earns its place only as a label, not as 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?

This is a mutation tool with five parameters, four required, no annotations, and no output schema — a case where the description should do heavy lifting. Instead it supplies one sentence, leaving the agent unable to construct a valid call confidently or predict the effect of the update path.

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?

Schema description coverage is 0% and the description mentions no parameters at all. Five parameters, four of them required, are left entirely unexplained — most importantly "key", which is likely the upsert identity, and "evidence", whose array-of-strings structure and required content are unstated.

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 names a verb pair and a resource ("Add or update a reusable portfolio pattern"), which is more specific than a bare label. However, "pattern" is never defined — it could be a code idiom, an architectural convention, or a stack template — and nothing distinguishes it from siblings like add_observation, add_skill, or track_decision beyond the noun.

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?

No when-to-use guidance, no prerequisites, and no mention of the alternative tools that store related knowledge (add_observation, add_skill, track_decision). The only implicit signal is "or update", which hints at upsert behavior, but it never says what triggers an update versus an insert.

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