Skip to main content
Glama

Count characters

runsheet_count_characters
Read-only

Count characters in YouTube titles, descriptions, and tags against hard caps and search truncation limits, in both code points and UTF-16 units, before publishing.

Instructions

Count text against YouTube's limits. Reports the hard cap and the softer cutoff that matters more: a title may be 100 characters but search truncates around 60, and a description may be 5000 but only about 120 show before the more button. Also reports both code points and UTF-16 units, which differ when emoji are present and which is what YouTube's field actually measures. No cost, no allowance used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to count.
fieldYesWhich YouTube field this text is for. Determines the limits reported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: 'No cost, no allowance used' (quota behavior) and the code-point vs UTF-16 measurement nuance, which is non-obvious behavior for emoji-containing text.

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 tight sentences with the core measurement claim front-loaded; each clause carries information. Slightly dense with three numeric examples, but nothing is filler.

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?

There is no output schema, so the description carries the return-value burden — and it does, describing both the limit outputs and the dual code-point/UTF-16 measurement. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds concrete semantics for the 'field' enum by giving actual limit values (title 100/search ~60, description 5000/~120 visible), which enriches the choice beyond the bare enum labels.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource: counts text against YouTube's limits, and names the exact metrics reported (hard cap, softer cutoff, code points vs UTF-16 units). Clearly distinguishes from siblings like runsheet_style_text or runsheet_preserve_line_breaks, which transform rather than measure text.

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?

The description implies when you'd use it (to check whether text fits YouTube's display limits), but never states prerequisites, when-not-to-use, or how it relates to alternatives such as style_text. Usage context is inferred rather than stated.

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