Skip to main content
Glama
slider79

Vellum

by slider79

Count text

count_text

Counts characters, words, lines, sentences, and bytes in text. Use for precise numbers, with visible characters reported separately from code points for accents and emoji.

Instructions

Count characters, words, lines, sentences and bytes in a piece of text, exactly. Use this whenever the answer needs to be a precise number, because reading tokens is not the same as counting characters. Reports visible characters separately from code points, which differ for accents and emoji.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to measure.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses a key behavioral nuance: reports visible characters separately from code points, which differ for accents and emoji. It also guarantees exact counting. This adds meaningful context beyond the title, though it does not cover edge cases like empty input.

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?

The description is two sentences with zero filler. It front-loads the core function ('Count characters, words, lines, sentences and bytes') and then adds usage guidance and a behavioral nuance, all in a compact structure.

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 simple one-parameter tool with no output schema, the description covers the main operational aspects: what is counted, precision, and the visible-character/codepoint distinction. It does not explicitly state the return format or handle edge cases, but the described behavior is sufficient for an agent to invoke it 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?

The input schema already describes the 'text' parameter with 100% coverage, so the baseline is 3. The description does not add further parameter-specific detail, such as encoding or size limits, so it neither enhances nor detracts from the schema.

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?

The description explicitly states the tool counts characters, words, lines, sentences, and bytes, with a specific verb and resource. It also emphasizes exactness and distinguishes from token-based reading, making the purpose unambiguous even without naming siblings.

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?

The description provides clear guidance on when to use the tool: 'whenever the answer needs to be a precise number.' It also explains why ('reading tokens is not the same as counting characters'). It does not explicitly list alternative tools or exclusion conditions, so it stops short of full when/when-not coverage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/slider79/vellum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server