Skip to main content
Glama

Convert Text Style

convert_text_style
Read-onlyIdempotent

Transform text with a pure in-Worker algorithm (no upstream HTTP). Pass required text (≤8000 chars) and mode one of: morse, binary, old_english, fancy, upper, lower, title, reverse. Modes: morse / binary (mappable chars only; others kept + optional skipped note), old_english (Fraktur Unicode), fancy (Math Sans-Serif Bold Unicode), upper / lower / title / reverse. Returns { text, mode, result }. Cost: 1 credit per call, charged by mcp-credit-gateway before forwarding. Privacy: Text is processed in-memory for this request only and is not stored. Do not send secrets, passwords, or personal data you would not paste into a public tool. Calls are rate-limited/metered by mcp-credit-gateway and require a valid sk_live_ key. (文本仅在本请求内存中处理、不落盘;请勿提交密钥/密码等敏感信息;调用限频。)

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>",
      "mode": "<mode>"
    },
    "name": "convert_text_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: in-Worker execution with no upstream HTTP, 1-credit cost charged by mcp-credit-gateway before forwarding, rate limiting, a required sk_live_ key, in-memory-only processing with no storage, and an explicit warning not to submit secrets. That is exactly the operational and privacy context an agent needs before sending user text.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical constraints (required params, modes, cost, privacy) are front-loaded, which is good. But the eight-mode list is enumerated twice — once after `mode` and again in the "Modes:" sentence — and the closing Chinese sentence partly restates the English privacy/rate-limit notes, so real content is diluted by repetition.

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?

For a two-parameter transformation tool with no output schema, the description supplies the return shape ({ text, mode, result }), cost model, auth requirement, rate-limit behavior, and privacy posture. Nothing an agent needs in order to call it safely and correctly appears to be missing.

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 description coverage is 0%, so the description carries the burden, and it does: it states the 8000-character ceiling for `text` and explains each mode's behavior (morse/binary map only convertible characters and keep the rest with an optional skipped note, old_english = Fraktur Unicode, fancy = Math Sans-Serif Bold). Only `reverse` and `title` casing rules are left unstated, a minor gap given how self-evident they are.

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?

States a specific verb and resource ("Transform text") and immediately enumerates the eight modes, which separates it cleanly from siblings like translate_text, count_text, and detect_language without opening a schema. It also names the execution model ("pure in-Worker algorithm"), so an agent knows exactly what class of operation this is.

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?

Usage is implied by the mode list — an agent can infer this is the tool for stylizing text rather than translating or counting it — and the "no upstream HTTP" note hints it is the cheap local option. However, there is no explicit when-to-use/when-not statement and no named alternative for cases like translation or character counting.

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.