Skip to main content
Glama

Agent Data Tools: Utilities

String utilities: every case, slug, counts and more

pack_string_toolbox
Read-only

Transform one string every common way at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Title Case, Sentence case, upper and lower; a URL slug (accents removed); reversed; trimmed and whitespace-collapsed; and counts of characters, letters, digits, words and lines. Splits identifiers like userIDValue or XMLHttpRequest correctly. Use when naming fields, files and routes or cleaning user input. Example: text=Hello World, user profile ID 42. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "text": "<text>"
    },
    "name": "pack_string_toolbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe string (up to 10,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false and idempotentHint=false, so the description's "Reads or computes only and changes nothing" is largely redundant. The genuinely additive disclosure is the pricing model ("$0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free") and the warning that repeats are charged, which explains the non-idempotent hint in practical terms. It does not describe output shape or ordering of results.

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 transformation list is front-loaded and every item names a concrete output, so the length is mostly earned. The pricing sentence is dense but operationally important. Minor cost: the description is one long multi-clause block, and the redundant "changes nothing" clause could be dropped given the read-only annotation.

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 single-parameter, read-only compute tool with no output schema, the description does the necessary work: it enumerates what the response will contain and covers the non-obvious edge behavior (correct identifier splitting for userIDValue / XMLHttpRequest, accent stripping in slugs). The main gap is that it does not state how results are laid out or whether counts are always returned alongside the transformed strings.

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?

With one parameter and 100% schema description coverage (the schema documents the 10,000-character limit), the baseline is already 3-4. The description adds meaning by showing an example value containing mixed content (words, an identifier-like phrase, and a price string), implying arbitrary free-form text is accepted and all transformations are applied unconditionally rather than selected.

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 opens with a specific verb and resource ("Transform one string") and enumerates the exact transformations produced: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Title Case, Sentence case, slug, reversed, trimmed, plus character/letter/digit/word/line counts. That is far more specific than the title. It stops short of naming or differentiating against the sibling tools "case" and "slug", which plausibly overlap, so it lands at 4 rather than 5.

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?

It gives an explicit usage context: "Use when naming fields, files and routes or cleaning user input," and adds a worked example ("text=Hello World, user profile ID 42"). What is missing is any exclusion or alternative — it never says when to prefer the narrower case/slug siblings over this bulk tool — so it is clear context without routing.

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