Skip to main content
Glama

Validate Character Card (V1/V2/V3)

validate_character_card
Read-onlyIdempotent

Validate Character Card V1/V2/V3 JSON for field completeness, Lorebook integrity, regex syntax, macro correctness, and token usage across 8K–32K context windows.

Instructions

Validate a Character Card V1, V2 (chara_card_v2), or V3 (chara_card_v3) JSON payload for field completeness, Lorebook integrity, regex syntax, macro correctness, and estimated token usage across 8K/16K/24K/32K windows.

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": {
      "card": "<card>"
    },
    "name": "validate_character_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardYesCharacter Card JSON string or object (V1, V2, or V3).
strictNoWhen true, treat warnings as validation failures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world behavior, so the description's added value is the list of concrete checks (field completeness, Lorebook integrity, regex syntax, macro correctness, token estimation across four context windows). That is meaningful behavioral detail beyond the annotations. It does not state what the result contains or how findings are surfaced, which keeps it short of a 5.

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?

A single front-loaded sentence with no filler; the format variants and check categories are packed efficiently. The long enumeration makes it slightly dense but every clause carries information.

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?

With only two parameters, full schema coverage, and annotations covering the safety profile, the main remaining gap is the absence of an output schema combined with no description of what validation results look like. Otherwise the definition gives enough to call the tool correctly.

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 both parameters are already documented, including the card's string-or-object flexibility and the strict flag's warning-as-failure semantics. The description adds no parameter-level detail beyond that, so the 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?

The description names a specific verb (validate) and a specific resource (Character Card V1/V2/V3 JSON payload), then enumerates the checks performed. It is clear what the tool does without opening the schema, though it never explicitly contrasts itself with siblings such as lint_character_prompt.

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: the mention of validation targets and token windows suggests checking a card before import or generation. There is no explicit when-to-use, when-not-to-use, or named alternative, so an agent must infer the routing decision.

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