Skip to main content
Glama

MCP Character Count

count_chars

Count characters or bytes in text with options to include or exclude whitespace for accurate text length measurement and analysis.

Instructions

Count the length of input text. - mode="chars": Unicode code points count (Python len). - mode="bytes": UTF-8 encoded byte length. - include_whitespace: when False, whitespace characters are filtered out before counting.

Input Schema

NameRequiredDescriptionDefault
include_whitespaceNo
modeNochars
textYes

Input Schema (JSON Schema)

{ "properties": { "include_whitespace": { "default": true, "title": "Include Whitespace", "type": "boolean" }, "mode": { "default": "chars", "enum": [ "chars", "bytes" ], "title": "Mode", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "count_charsArguments", "type": "object" }

Other Tools from MCP Character Count

Related Tools

    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/TORIFUKUKaiou/mcp-charcount'

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