Skip to main content
Glama

reverse_text

Read-onlyIdempotent

Text reverser — reverse characters, words or lines

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": "reverse_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoMode: one of characters, words, lines.
textYesThe text to process, plain UTF-8, for example: The quick brown fox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / mode / description
      Added value: +"Mode: one of characters, words, lines."
    • addedInput schema / properties / text / description
      Added value: +"The text to process, plain UTF-8, for example: The quick brown fox."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is carried by structured data. The description adds the granularity of reversal, but says nothing about edge cases an agent would want — Unicode/grapheme handling, whether line endings or whitespace are preserved, or whether reversing twice is guaranteed to restore the input.

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?

A single short sentence with zero waste and the key differentiator (the three modes) front-loaded. It is arguably terse to the point of under-specification, which is why it falls short of a 5.

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, fully documented, annotated pure function with no output schema, the definition is sufficient to call it correctly. Only the absence of behavior notes around Unicode and whitespace handling keeps it from being complete.

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% and the enum for mode is fully documented, so baseline 3 applies. The description's "characters, words or lines" merely restates the enum and adds no example, default, or semantics for the required text parameter beyond what the schema provides.

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?

States a specific verb and resource ("Text reverser — reverse characters, words or lines") and names the three granularities it operates at. An agent knows exactly what the tool produces, though it does not distinguish itself from near-neighbors such as sort_text or diff_text.

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 only implied: the enumerated modes (characters, words, lines) suggest the cases the tool covers, but there is no explicit when-to-use versus alternative, no prerequisites, and no statement of what it is not for.

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