Skip to main content
Glama
anki-workflow-mcp

anki-workflow-mcp

by Gugart43

Validate Csv Structure

validate_csv_structure

Validates QA or Cloze CSV blocks for correct headers, field counts, raw pipes/newlines, entities, tags, MathJax balance, and BOM before Anki import.

Instructions

Validate the structural integrity of a QA or Cloze CSV block. Checks: header match, column count, raw pipes, raw newlines, HTML entities, forbidden tags, MathJax balance, and UTF-8 BOM. note_type must be 'QA' (7 fields) or 'CL' (6 fields).

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": {
      "csv_text": "<csv_text>",
      "note_type": "<note_type>"
    },
    "name": "validate_csv_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
csv_textYes
note_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.2/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 burden, and it does usefully disclose the exact rule set applied (header match, pipes, newlines, entities, tags, MathJax balance, BOM). It does not say whether all failures are collected or validation stops at the first error, whether it mutates anything, or what severity model is used — meaningful gaps for a validator with zero annotation coverage.

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?

Two sentences, front-loaded with the action and target, followed by a compact checklist — no filler. The check list is dense but each item earns its place by telling the agent what rules will be enforced.

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?

An output schema exists, so return-value explanation is not required, and the check enumeration covers behavior well. What is missing is the routing context against the many sibling validators, which matters given how many near-identical validate_* tools exist.

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 coverage is 0%, so the description must compensate, and it partly does by specifying that note_type must be 'QA' (7 fields) or 'CL' (6 fields), adding field-count semantics beyond the bare enum. csv_text is left entirely unexplained, though its meaning is recoverable from the name and the enumerated checks.

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 ("Validate the structural integrity of a QA or Cloze CSV block") and enumerates exactly what is checked, so the agent knows the operation precisely. It does not differentiate itself from the closely named siblings validate_qa and validate_cloze, which leaves ambiguity about which validator to pick.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus validate_qa, validate_cloze, or validate_batch, nor any prerequisite or exclusion guidance. The only routing hint is the note_type constraint, which is implied rather than explained as a usage rule.

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