Skip to main content
Glama
cardloom-mcp

cardloom-mcp

by bangca85

Save Learning Draft

save_learning_draft

Saves a new technical knowledge card as a draft so agents can capture learnings now and verify them later.

Instructions

Save a new knowledge card. Cards from an agent always start in status "draft" — verification is a separate, later action.

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": {
      "title": "<title>",
      "type": "<type>",
      "scope": "<scope>",
      "applies_to": "<applies_to>",
      "stack": "<stack>",
      "version_range": "<version_range>",
      "body": "<body>",
      "source_commit": "<source_commit>",
      "provenance": "<provenance>"
    },
    "name": "save_learning_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesCard body in GitHub-flavored Markdown — never continuous prose. Break it into `##` sections (adapt names to the card type, e.g. Context/Decision/Why for a decision, or Symptom/Root Cause/Fix for a gotcha), each a short paragraph or bullet list. Use `> Note: ...` blockquote lines for caveats or exceptions worth flagging separately. For any technical detail (a type/interface, function signature, config shape, API/CLI call), include a real snippet in a fenced ```lang code block — do not just name it inline and describe it in prose; reserve single backticks for short identifiers with no snippet to show. This keeps rendering scannable across the web viewer, search snippets, and get_card output.
typeYesCard type
scopeYesApplicability scope
stackYesTech stack tags this card applies to
titleYesCard title (combined with type to derive the immutable card id)
domainNoOptional domain facet
projectNoProject key from the repo's .knowledge-map.yaml, e.g. "acme/billing-api". Only for scope "project" cards; lowercased and trimmed on save, and a filesystem path is rejected.
task_typeNoOptional task-type facet
applies_toYesProject/target identifiers this card applies to
provenanceYesHow this learning was derived
supersedesNoId of an existing card this one supersedes — recorded as a pending marker only; the old card is left unchanged
sensitivityNoDefaults to "normal"
source_repoNoGitHub "owner/name" of the repo source_commit belongs to. Set it whenever source_commit is a sha: it is how merge promotion finds the commit and checks it reached the default branch.
source_commitYesCommit this learning came from: a bare sha (7-40 hex), nothing else, when there is one. Free text here ("working tree", "local changes") means merge promotion can never verify the card.
version_rangeYesSemver range this card applies to
conflicts_withNoIds explicitly declared as conflicting with this card
error_signatureNoRequired (non-empty) when type is "gotcha"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.5/5.0
Behavior3/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 it does disclose one genuinely important trait: agent-created cards always land in "draft" and verification is a separate step. It says nothing about what happens on save (returned id, duplicate/idempotency behavior given the derived immutable id), failure modes, or permissions, which matters for a 17-parameter write 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, the core action first and the non-obvious draft-status consequence second. No filler, no restatement of the title.

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 17-parameter, 9-required mutation tool with no annotations and no output schema, the description is quite thin: it does not indicate what is returned, how the immutable id is formed, or what to do on conflict/supersede. The exhaustive schema compensates for the field-level gaps, but the outcome side remains unexplained.

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% and the schema descriptions are unusually rich (body formatting rules, project key normalization, source_commit format, error_signature conditionality). The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

"Save a new knowledge card" gives a specific verb plus resource, and the word "new" implicitly separates it from update_card_status. It does not explicitly name a sibling, but the create-vs-update distinction is legible from the text alone.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the description clarifies that saving is creation and that verification is a separate later action, which hints at a follow-up with update_card_status. There is no explicit "use this when…" clause and no stated exclusion or prerequisite for calling it.

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