Skip to main content
Glama

reverse_text

Reverse text by characters, words, lines, or sentences to transform strings for testing, formatting, or analysis tasks.

Instructions

Reverse text by characters, words, lines, or sentences.

Input Schema

NameRequiredDescriptionDefault
modeNoMode: characters, words, lines, sentences (default characters).
textYesText to reverse.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

A3.6/5.0
Behavior3/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, but it only discloses the four reversal modes. It does not state that the operation is a pure, deterministic, non-mutating transformation, nor what the output looks like. For a trivial pure function this is a modest gap rather than a serious one.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the mode list is the only detail and it is directly relevant.

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 pure text utility with full schema coverage and no output schema needed, the definition is nearly sufficient. A brief note on return behavior or idempotence would close the remaining gap.

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 schema already documents both parameters, including the mode values. The description restates the mode list but adds no syntax or default information beyond what the schema supplies; baseline 3 applies.

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 ('Reverse') and resource ('text'), and enumerates the four supported reversal granularities, which distinguishes it from generic siblings like text_transform or string_case.

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

Usage Guidelines2/5

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

The description gives no indication of when to prefer this tool over alternatives such as text_transform, nor any prerequisites. Usage is only implied by the tool name.

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

Deploy Server

Other Tools