Skip to main content
Glama

Text utilities (hash, encode, UUID, stats)

text_utils
Read-only

Perform everyday text operations in one call: hash, encode/decode Base64 or URLs, create slugs and UUIDs, validate or format JSON, and count words or readability.

Instructions

Everyday text operations in one call: SHA-1/256/512 hashes, Base64 and URL encode/decode, slugs, UUIDs, JSON validation and pretty-printing, word/character/sentence counts with reading time, and readability scores (Flesch, grade level). Costs $0.001 per call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "op": "<op>"
    },
    "name": "text_utils"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesThe operation.
textNoInput text (not needed for uuid).
countNoHow many UUIDs. Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine value beyond that by disclosing the cost model ('$0.001 per call'), which matters for a utility an agent might call in a loop. It does not disclose rate limits, the 100,000-character input cap, or what happens on invalid input such as malformed Base64.

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 lead clause 'Everyday text operations in one call' is front-loaded and correct, and the operation list plus pricing fit in a single compact sentence with no filler. The comma-heavy enumeration is dense but scannable; nothing needs to be cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter, single-op-dispatch utility the description covers the operation surface well. With no output schema, however, the return shape of the less obvious ops (stats, readability scores, json_format) is left undefined, and the mismatch between 'JSON validation' and the json_format enum is not resolved anywhere.

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?

Schema coverage is 100%, so the enum of operations, the text cap and 'count' for UUIDs are already documented in the schema, justifying the baseline 3. The description adds no per-parameter detail beyond naming operation categories, and it mentions 'JSON validation' where the enum only offers 'json_format', which could mislead an agent about the available op values.

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

Purpose4/5

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

The description names a concrete verb+resource ('Everyday text operations') and enumerates the actual operations: hashing, Base64/URL encode-decode, slugify, UUID, JSON formatting, stats, readability. That is enough to distinguish it from siblings such as classify_text and embed_text, which do analysis rather than transformation. It falls short of a 5 only because one advertised capability ('JSON validation') has no corresponding enum value.

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?

'Everyday text operations in one call' implies the tool is a bundled convenience used instead of many single-purpose calls, which is mild routing guidance. There is no explicit when-to-use/when-not-to-use statement and no named alternative for overlapping tasks (e.g. data_convert for format conversion, or classify_text if the goal is analysis rather than transformation).

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