Skip to main content
Glama

ScorpTech x402 Tools

Text Block

text_block
Read-onlyIdempotent

Wrap a Helvetica block and give its height. Line breaking is the same as text-wrap. Leading defaults to 1.2 times the font size, rounded half away from zero to 0.001 pt. Block height is the line count times the leading, and a blank line from a hard break counts. An empty string has height zero. Returns JSON with: lines, lineCount, maxLineWidth, broken, leading, blockHeight, size, method. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/text-block

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_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontNohelvetica
sizeNo12
textYes
widthYes
leadingNoLine height in points. Default is 1.2 × size

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds real behavioral detail beyond them: leading defaults to 1.2×size rounded half away from zero to 0.001 pt, block height = line count × leading, hard-break blank lines count, and empty input yields zero height. It also discloses the x402 cost ($0.001 USDC per successful call) and a parallel HTTPS endpoint, which annotations do not provide.

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?

Front-loaded with the core semantics (wrap, leading rule, height formula) before the return fields, price, and endpoint. Dense but nearly every sentence carries information; the endpoint URL and price could arguably be moved to metadata but are legitimately useful for callers.

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?

With no output schema, the description enumerates the return keys (lines, lineCount, maxLineWidth, broken, leading, blockHeight, size, method), which fills that gap. For a five-parameter geometric tool the only real omissions are units for width and size.

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 only 20%, so the description must compensate, and it does so well for 'leading' (default 1.2×size, 0.001 pt rounding). However, width units and size units are never stated, and the font enum includes helvetica-bold while the description only names 'Helvetica'. Partial compensation for the coverage gap.

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 concrete verb+resource pair ('Wrap a Helvetica block and give its height') and ties line-breaking semantics to the sibling text-wrap, which lets an agent distinguish a measure-and-wrap tool from a plain wrap tool. It stops short of naming why one would pick this over text_width or text_fit, but the core purpose is unambiguous.

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 mention that 'line breaking is the same as text-wrap' and the block-height output suggest this is the choice when height/leading matters, but the description never says when to prefer it over text_wrap or text_fit. Price and the HTTPS alternative are useful context but not usage guidance.

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