Skip to main content
Glama

Validate note drafts

validate-note-drafts
Read-onlyIdempotent

Checks candidate Anki notes without creating them, validating deck and note type names, fields, existing media references, empty-card rules, and duplicate rules before creation.

Instructions

Checks candidate notes without creating them. Validates decks, note types, field names, existing media references, empty-card rules, and Anki duplicate rules.

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": "validate-note-drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYesCandidate notes to validate without creating them

Output Schema

NameRequiredDescriptionDefault
resultsYes
validCountYes
invalidCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, and the description is consistent with all of them. It adds real behavioral context beyond the annotations by disclosing the specific rule sets enforced (empty-card rules, Anki duplicate rules, existing-media checks), which tells the agent this is a pure dry-run. It stops short of describing the pass/fail result shape, but an output schema exists to cover that.

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 with zero filler, and the most important constraint ('without creating them') is front-loaded before the enumeration of validation domains. Nothing is repeated or padded.

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 rich schema, full annotation coverage, and an existing output schema, the description supplies enough to call the tool correctly and understand its dry-run nature. The only minor gap is the absence of any routing sentence telling the agent to follow up with the creation tool after validation.

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% with a single top-level 'notes' parameter, so the schema already documents the candidate-note structure, options, and mediaReferences semantics. The description only restates that these are candidates validated without creation, adding no syntax or per-parameter meaning beyond that. Baseline 3 is appropriate.

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 (validates/checks) and resource (candidate notes), and enumerates the validation domains: decks, note types, field names, media references, empty-card rules, and duplicates. The phrase 'without creating them' implicitly separates it from the write-side create-notes path, though it never names that sibling explicitly.

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 only implied: an agent can infer this is a dry-run check to run before creating notes. There is no explicit when-to-use statement, no exclusion of cases (e.g. already-created notes), and no named alternative tool for the actual creation step.

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