Skip to main content
Glama

import_learnings

Bulk-import marked learnings from Markdown or JSON files, with permissive mode for all headings and bullets, deduplicating against existing entries.

Instructions

Bulk-import learnings from a Markdown or JSON file. By default only MARKED learnings are imported: inline bullets with a [category] prefix, anything inside a *LEARNINGS.md file, anything under a heading that says learnings / lessons / gotchas / rules, and JSON arrays of {category, rule, context}. Set permissive=true to also import every H3 heading, bold bullet and table row (H2=category, H3=rule, bullets=context). Deduplicates against existing learnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoProject name to tag all imported learnings with (e.g., 'FC_project')
file_pathYesAbsolute path to the Markdown (.md) or JSON (.json) file to import from
permissiveNoImport every heading, bold bullet and table row as a rule (the pre-2.5.7 behaviour). Default false: only marked learnings.
default_categoryNoDefault category for rules where category cannot be inferred. Defaults to 'other'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.9.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it delivers: it details exactly what counts as marked, what permissive=true adds, and states deduplication. It does not mention side effects, errors, or write confirmation, but the import behavior is well specified.

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?

The description is dense but every sentence adds relevant information: file types, default marked behavior, permissive mode, and deduplication. It is front-loaded with the core purpose and avoids filler.

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

Completeness4/5

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

Given the tool's moderate complexity, the description covers the core import rules, deduplication, and parameter behavior. It does not describe the return value or error handling, but no output schema exists and the provided detail is sufficient for correct invocation.

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%, so all parameters are already documented in the schema. The description reinforces the permissive parameter's meaning and adds detail about rule extraction, but it does not materially extend the meaning of project or default_category beyond their schema descriptions.

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

Purpose5/5

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

The description clearly states the tool bulk-imports learnings from Markdown or JSON files, with specific verb and resource. It is easily distinguished from the sibling save_learning, which implies single-item saving.

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?

The description explains the default marked-only behavior and when to set permissive=true, giving clear context for typical use. It does not explicitly mention alternatives like save_learning, but 'bulk-import' communicates the batch use case well enough.

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