Skip to main content
Glama
Aaryan-Kapoor

MCP Character Tools

Letter Frequency

letter_frequency
Read-onlyIdempotent

Analyze character frequency distribution in text. Return sorted counts, most and least common characters, with customizable options for case, spaces, punctuation, and letters only.

Instructions

Get frequency distribution of all characters in text.

Provides a complete breakdown of character frequencies.

Args:

  • text (string): The text to analyze

  • case_sensitive (boolean): Distinguish upper/lowercase (default: false)

  • include_spaces (boolean): Include spaces in count (default: false)

  • include_punctuation (boolean): Include punctuation (default: false)

  • letters_only (boolean): Only count a-z letters (default: true)

Returns: Frequency map, sorted list, most/least common characters.

Example: letter_frequency("hello") → h: 1, e: 1, l: 2, o: 1

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to analyze
letters_onlyNoOnly count a-z letters
case_sensitiveNoDistinguish upper/lowercase
include_spacesNoInclude spaces
include_punctuationNoInclude punctuation
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds context about the output format (frequency map, sorted list, most/least common) and parameters that affect behavior (case_sensitive, include_spaces). This goes beyond the annotations' safety profile.

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?

The description is well-structured with Args, Returns, and an Example section. It front-loads the main purpose. While it is slightly long, every sentence earns its place and the structure aids readability.

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?

Despite no output schema, the description fully explains the return values (frequency map, sorted list, most/least common characters) and provides a detailed example. All 5 parameters are explained, and the annotations cover safety and idempotence. The description is complete for this task.

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% with descriptions for all 5 parameters. The description adds value by providing a concrete example ('hello' case) and clarifying the return structure (frequency map, sorted list, most/least common), which helps interpret parameter effects.

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 clearly states the tool's purpose: 'Get frequency distribution of all characters in text.' It distinguishes itself from siblings like 'count_letter' and 'count_letters' by providing a full distribution rather than a single count, and the example further clarifies the output.

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 provides a clear function but does not explicitly mention when to use this tool versus alternatives like 'count_letter' or 'analyze_sentence'. It implies usage through the detailed description but lacks explicit guidance on exclusions or when not to use.

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/Aaryan-Kapoor/mcp-character-tools'

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