Skip to main content
Glama

ScorpTech x402 Tools

Css Length

css_length
Read-onlyIdempotent

Convert one CSS absolute length. An inch is 96px and 2.54 cm, so a centimetre is 4800/127 px, a millimetre is 480/127 px, and Q (a quarter-millimetre) is 120/127 px. A point is 4/3 px and a pica is 16px. Units: px, in, cm, mm, Q, pt, pc. em, rem, percent and viewport units are rejected. Exact rationals, 12 decimal places. Returns JSON with: value, unit, px, pxFraction, in, inFraction, cm, cmFraction. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/css-length

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": {
      "value": "<value>"
    },
    "name": "css_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only say readOnly/idempotent/openWorld), the description discloses the exactness model (exact rationals, 12 decimal places), the return payload keys, and a paid x402 pricing/authentication model at $0.001 USDC per successful call on Base or Solana. The cash cost per call is critical information an agent needs before invoking a tool, and the HTTPS alternative endpoint is a useful fallback.

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 action and unit scope, then the return shape and price. The conversion-factor derivations (4800/127 px, 480/127 px, 120/127 px) are mathematically interesting but largely unneeded for an agent deciding whether to call, adding minor bloat.

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?

No output schema exists, but the description compensates by enumerating all returned fields, and it covers cost and alternate transport. The only substantive omission is the concrete format of the input string, which matters for a single-required-parameter tool.

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?

With 0% schema description coverage on the single `value` string parameter, the description must carry the semantics. It partially does by enumerating valid units, but never states whether the unit is embedded in `value` or whether a bare numeric string is acceptable, nor what the 80-character limit implies.

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?

"Convert one CSS absolute length" gives a specific verb plus a precisely scoped resource, and the unit list (px, in, cm, mm, Q, pt, pc) plus the rejection of em/rem/percent/viewport units separates it cleanly from siblings like css_angle, css_resolution, and css_time.

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

Usage Guidelines4/5

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

The description states the accepted unit set and explicitly rules out relative and viewport units, which is genuine when-not-to-use guidance. It does not name a sibling to redirect to for relative units or explain how the input string should be formatted (e.g. "12px" vs "12" plus a separate unit), leaving one gap.

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