Skip to main content
Glama

Get card preview

get-card-preview
Read-onlyIdempotent

Preview an existing Anki card's rendered HTML, shared CSS, and standalone static documents for front/back and light/dark inspection without changing Anki.

Instructions

Returns Anki-rendered HTML, shared CSS, and standalone static HTML documents for one existing card. Supports front/back and light/dark inspection without changing Anki. Not a screenshot: JavaScript, navigation, media, and external resources are disabled in documents. Raw source is untrusted.

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": {
      "cardId": "<cardId>"
    },
    "name": "get-card-preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNoWhich existing card side to inspect; Anki resolves fields and template filtersboth
themeNoDocument color scheme; dark adds Anki's nightMode and night_mode classeslight
cardIdYesAnki card ID

Output Schema

NameRequiredDescriptionDefault
cardIdYesAnki card ID
existsYes
previewYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, idempotent, closed-world), yet the description adds real behavioral context beyond them: documents are sandboxed with JavaScript, navigation, media, and external resources disabled, and raw source is flagged as untrusted. That sandboxing and trust warning is the kind of operational detail the annotations cannot express; only return-format specifics are absent, which the output schema covers.

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?

Four short sentences, front-loaded with the return payload, then the inspection modes, then the sandboxing caveat, then the trust warning. No sentence is redundant and the most surprising constraint (not a screenshot) is stated early.

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

Completeness5/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 values need no explanation, and the description still supplies the sandboxing and untrusted-source caveats an agent needs to interpret that output safely. For a three-parameter read-only preview tool, nothing material is missing.

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 both enums are fully documented, so the schema carries parameter meaning. The description's reference to front/back and light/dark mirrors those parameters but adds no syntax, edge-case, or default behavior beyond what the schema states.

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?

Names a specific verb and a concrete set of outputs (Anki-rendered HTML, shared CSS, standalone static HTML documents) scoped to one existing card, and the 'Not a screenshot' clause pre-empts the most likely misread. It does not explicitly separate itself from lookalike siblings such as get-card-details or get-note-type-design, so it stops 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?

'Supports front/back and light/dark inspection without changing Anki' implies the inspection use case, but there is no explicit when-to-use versus when-to-use-something-else guidance and no named alternative. The agent must infer that this tool is for rendering/preview rather than card metadata.

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