Skip to main content
Glama

forge_add_learning

Add a categorized learning entry to the knowledge base to capture patterns, anti-patterns, decisions, or tool insights for reuse in AI-assisted development.

Instructions

Add a learning to the knowledge base. Categories: pattern, anti-pattern, decision, tool.

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": {
      "category": "<category>",
      "title": "<title>",
      "description": "<description>"
    },
    "name": "forge_add_learning"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesLearning title
contextNoAdditional context
categoryYesLearning category
descriptionYesLearning description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say that the call persists/mutates state, whether duplicates are merged or rejected, whether the entry is scoped to a project or cycle, or whether auth/setup is required. For a write operation with zero annotation coverage this is a significant gap.

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?

Two short sentences, front-loaded with the action, with no filler. The category enumeration is slightly redundant against the schema enum, but it is compact and does not bloat the definition.

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

Completeness3/5

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

For a simple four-parameter tool with full schema coverage and no output schema, the description covers the core action adequately. However, with no annotations it leaves unresolved whether the write is persistent, deduplicated, or scoped, and omits any prerequisite such as project initialization.

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?

Schema description coverage is 100%: every parameter has a description and the category field enumerates its four values. The description's category list merely restates the enum already present in the schema and adds no syntax or format guidance for title, description, or context. Baseline 3 applies when the schema does the heavy lifting.

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 and resource: "Add a learning to the knowledge base." The resource (knowledge base of learnings) is distinct from the task/cycle siblings such as forge_add_task and forge_complete_cycle, so an agent can route correctly without opening a schema. It stops short of explicitly naming a sibling to avoid, which keeps it at 4 rather than 5.

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 or when-not-to-use guidance is offered. It never says whether a learning must be captured during a retro versus ad hoc, nor whether the project must be initialized first (forge_init_project exists as a sibling). The only implied usage is what can be inferred from the verb "add."

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