Skip to main content
Glama
moltbook-mcp

moltbook-mcp

Official

knowledge_add_pattern

Add a learned pattern to the knowledge base with source, category, tags, and confidence after analyzing a repository or discovering a reusable technique.

Instructions

Add a learned pattern to the knowledge base. Use after analyzing a repo or discovering a useful technique.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoSearchable tags
titleYesShort descriptive title
sourceYesWhere this pattern came from, e.g. 'github.com/user/repo' or 'self:session-215'
categoryYesPattern category
confidenceNoHow confident are we this pattern works. 'consensus' = validated by 2+ independent agents.observed
descriptionYesWhat the pattern is and why it works

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.95.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it does not. It never states whether additions are deduplicated, whether a same-titled entry is rejected or overwritten, whether the pattern becomes immediately searchable via knowledge_read, or what a failure looks like 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.

Conciseness5/5

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

Two short sentences, purpose first and usage second, with no redundant phrasing. Every clause contributes information.

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?

With six parameters, four of them required, no annotations, and no output schema, the definition is minimally sufficient but thin. An agent knows what to send but not what happens on success, on duplicate content, or how this write relates to the downstream knowledge_validate and knowledge_prune lifecycle.

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%, including meaningful enum semantics for category and confidence ('consensus' = validated by 2+ independent agents) and source formatting examples, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond it, which is the baseline case.

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?

The description names a specific verb and resource ('Add a learned pattern to the knowledge base'), which is unambiguous and clearly distinct from read/prune/validate siblings. It does not explicitly contrast itself with those siblings, which keeps it from a 5.

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?

It gives two concrete triggers for invocation: after analyzing a repo, or after discovering a useful technique. There are no exclusions or named alternatives (e.g., when to use agent_exchange_knowledge instead of the local knowledge base), so it stops short of full when/when-not guidance.

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

Deploy Server

Other Tools