Skip to main content
Glama

Create notes

create-notes

Validates a batch of Anki notes and creates them only after all inputs pass, optionally merging existing media references and returning per-note status so partial or unknown outcomes are visible.

Instructions

Validates the complete batch before creating Notes, optionally merging existing media references. Returns a status for every input and preserves acknowledged IDs if readback fails. A null createdNoteCount means an unknown creation outcome; null cardIds means unverified readback. Partial/unknown outcomes are errors with structured results. Never blindly resend the whole batch; duplicate checks are not idempotency. No automatic retry or rollback.

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": {
      "notes": "<notes>"
    },
    "name": "create-notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYesOne or more notes to validate and create as one batch

Output Schema

NameRequiredDescriptionDefault
outcomeYes
warningsYes
noteResultsYes
validationsYes
createdNotesYes
reportedNoteIdsYesDistinct IDs reported by AnkiConnect, including unmapped IDs from malformed replies; not proof of ownership or creation
createdNoteCountYesExact acknowledged count when every creation outcome is known; null if any outcome is unknown
reportedNoteIdsTruncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the supplied annotations by explaining failure semantics: null createdNoteCount means unknown creation outcome, null cardIds means unverified readback, partial/unknown results are surfaced as errors with structured results. It also discloses that there is no automatic retry or rollback and clarifies that duplicate checks are not idempotency, which is consistent with idempotentHint=false.

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?

Compact at five sentences with no filler, and the failure-handling rules are densely packed. However, it front-loads validation rather than the create action, and the null/partial-outcome rules arrive as an undifferentiated block without ordering by importance.

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 a 100% covered schema and an existing output schema, the description doesn't need to restate parameters or return values, and it still supplies the non-obvious outcome semantics an agent needs for safe batch handling. The only gap is alternative-tool routing, which is a usage concern rather than completeness of the call contract.

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 deckName, modelName, fields, options and mediaReferences are already fully documented in the schema; the baseline is 3. The description adds only the meaning that media references are merged into fields before validation and creation, which is marginal extra signal.

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: validating a batch and creating Notes, with the optional media-reference merge named. It doesn't differentiate itself from near-neighbours like attach-media-to-notes or create-note-type, and the primary action (creation) is grammatically subordinate to validation, so it falls short of 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 Guidelines3/5

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

Gives operational guidance about what not to do ("Never blindly resend the whole batch") and about retry/rollback expectations, but never says when to pick this tool over siblings such as attach-media-to-notes for the merge path or when a single-note creation is more appropriate. Usage context is implied rather than explicit.

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