Skip to main content
Glama

Character counter

hopi_character_counter
Read-onlyIdempotent

Count the characters in a block of text, including a count with spaces removed, the word count, how many SMS messages it would take to send, and the Twitter/X characters remaining out of 280. Source: https://hopi.co.uk/character-counter/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to measure

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
wordsNo
summaryYes
smsPartsNo
charactersNo
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
tweetRemainingNo
charactersNoSpacesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover read-only, idempotent, non-destructive behavior, so the description only needs to add algorithmic detail. It adds meaningful behavior by listing exactly which counts are computed (with/without spaces, words, SMS, Twitter remaining), reducing ambiguity about what 'count characters' means.

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?

One information-dense sentence presents the action and all output variants, followed by a short source attribution. No filler or repeated schema information.

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?

With a single string input, a full output schema, and annotations covering side effects, the description gives the agent everything needed to invoke and interpret results. Listing the concrete output categories is sufficient for this pure calculation tool.

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 schema already describes the only parameter ('The text to measure') at 100% coverage, so the description does not need to compensate. It only restates the same concept as 'a block of text' and adds no format, encoding, or length constraints beyond 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 starts with the concrete verb 'Count the characters in a block of text' and then names every output metric: spaces-removed count, word count, SMS segment count, and Twitter/X character remaining. This makes the tool easy to distinguish from sibling text tools like word_counter or text_splitter.

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 use case is clear from the description: any time an agent needs character-level measurements of a text block. It does not explicitly say when to prefer the sibling word_counter or text_splitter, but the scope and metrics imply the appropriate context without ambiguity.

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.

Resources