Skip to main content
Glama

Line Sorter

LineSorter
Read-only

Line Sorter: Line Sorter organizes text by sorting lines alphabetically in ascending or descending order with case-sensitive options. (Cost: 1 credit)

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": {
      "lines": "<lines>"
    },
    "name": "LineSorter"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesArray of text lines to sort (max 10,000)
orderNoSort orderasc
caseSensitiveNoEnable case-sensitive sorting

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description's real addition is the cost signal ('1 credit'), which the agent needs for budgeting. It says nothing about sort stability, locale/collation rules, or duplicate handling, which are the actual behavioral questions for a sorter.

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?

One front-loaded sentence with the cost appended — appropriately sized for a simple utility. Minor waste from repeating the tool name twice ('Line Sorter: Line Sorter ...') and the title again in the opening clause.

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 three-parameter text utility with an output schema and fully documented parameters, the description covers purpose, sort axes and cost. Gaps like collation behavior and equals-handling are minor given the low complexity and the presence of an output schema.

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 every parameter has its own description plus examples, so the baseline is 3. The description restates 'ascending or descending' and 'case-sensitive options' but adds no format or semantic detail beyond what the schema already documents (and no enum is declared for order despite only asc/desc being implied).

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 names a specific verb (organizes/sorts) and resource (text lines), plus the two axes of variation: order (asc/desc) and case sensitivity. It is clear what the tool produces, though it does not differentiate itself from text-transformation siblings such as ReverseText or TextStyler.

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?

There is no when-to-use guidance, no mention of when NOT to use it, and no named alternative among the many text tools (ReverseText, Slugify, RemovePunctuation) an agent might confuse it with. The implied usage is obvious from the purpose statement but nothing routes the agent explicitly.

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.