Skip to main content
Glama

format_text

Standardize text by converting case or trimming whitespace. Apply uppercase, lowercase, titlecase, or trim operations to normalize raw strings.

Instructions

Transforms and normalizes string casing and whitespace. Use this tool for text standardization like uppercase, lowercase, titlecase, or trimming. Do not use for generating interpersonal greetings (use 'greet_user' instead). Deterministic in-memory string transformation.

Input Schema

NameRequiredDescriptionDefault
textYesThe raw text string to format.
operationNoThe formatting operation: 'uppercase', 'lowercase', 'titlecase', or 'trim'. Defaults to 'trim'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the key trait: 'Deterministic in-memory string transformation' tells the agent there are no side effects, no external state, and no network calls. It does not describe behavior on an invalid or missing operation value, which is a minor remaining gap for a mutation-free utility.

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?

Three short sentences, front-loaded with purpose, then routing guidance, then a behavioral note. The final sentence slightly overlaps the first but earns its place by signaling determinism.

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 two-parameter, no-output-schema utility, the description covers purpose, routing, and purity, which is nearly everything an agent needs. Only the handling of an invalid operation value is left unspecified.

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 description coverage is 100%, so both parameters are already documented in the schema, making 3 the baseline. The description restates the operation set (uppercase/lowercase/titlecase/trim) but adds no default behavior or edge-case guidance beyond the schema.

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+resource ('Transforms and normalizes string casing and whitespace') and names the sibling it is not (greet_user). An agent can distinguish it from the arithmetic and task-processing siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use examples (uppercase, lowercase, titlecase, trimming) and an explicit when-not-to-use with the alternative tool named ('Do not use for generating interpersonal greetings (use greet_user instead)'). Nothing is left to inference.

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