Skip to main content
Glama

Preview a card

preview_card
Read-only

Validates a card config and returns a text preview of the card and its menu, or the list of problems to fix. Use it after every change and show the preview to the user.

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": {
      "config": "<config>"
    },
    "name": "preview_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesThe card configuration (card.config.json). Call list_card_options for the fields.
languageNoOptional language code for the preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior: it validates and returns either a rendered text preview (card plus menu) or a problem list, which is the return contract since there is no output schema. It stops short of explaining what validation rules apply or how problems are structured.

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 waste: purpose and return values first, then the usage instruction. Everything is front-loaded and nothing needs trimming.

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?

For a two-parameter, nested-config validation tool with no output schema, the description covers both what it does and what comes back (preview text or problem list). Minor gaps remain around validation scope and problem-list shape, but the essentials for correct invocation are present.

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 100%, and the schema already documents config as card.config.json and language as an optional language code, plus the pointer to list_card_options. The description adds no parameter meaning beyond that, so baseline 3 applies.

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 pair of verbs and resources: validates a card config and returns a text preview of the card and its menu, or the list of problems. This clearly separates it from export_card_config and get_card, though no sibling is named explicitly.

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?

Gives explicit usage timing – call it after every change and show the preview to the user – which is actionable workflow guidance. It does not state when to skip the call or what alternatives exist for related tasks.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.