Skip to main content
Glama

ScorpTech x402 Tools

Text Ellipsis

text_ellipsis
Read-onlyIdempotent

Cut one Helvetica line so it fits a width, ending with an ellipsis (…) when the text is too long. The ellipsis is the WinAnsi character. If the whole line already fits, it is returned unchanged. If even the ellipsis is wider than the measure, the call is rejected. Returns JSON with: text, width, truncated, chars. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/text-ellipsis

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>",
      "width": "<width>"
    },
    "name": "text_ellipsis"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontNohelvetica
sizeNo12
textYes
widthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important edge-case behavior: unchanged return when the line fits, rejection when the ellipsis is too wide, the exact WinAnsi ellipsis character, returned JSON fields, pricing, and an alternative HTTPS endpoint. This is substantial behavioral context for a read-only, idempotent text operation.

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?

The description is front-loaded with the core operation and then covers edge cases, return shape, pricing, and endpoint in tight sentences. There is no redundant or filler language.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The return fields are described even without an output schema, and edge cases are handled. However, for a 4-parameter tool with 0% schema description coverage, the description omits critical calling details such as width units, size semantics, and the bold font option.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all four parameters. It only indirectly clarifies text and width, mentions Helvetica but not the helvetica-bold option, and never explains the size parameter or the expected width format or units.

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 states a specific verb and resource: cutting one Helvetica line to a width and adding an ellipsis when needed. It clearly identifies the operation, though it does not explicitly differentiate itself from nearby siblings such as text_fit or text_wrap.

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?

The description gives behavioral conditions, such as returning unchanged text when it fits and rejecting calls when even the ellipsis exceeds the width. However, it does not say when to choose this tool over alternatives like text_fit, text_wrap, or text_block.

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