Skip to main content
Glama

ScorpTech x402 Tools

Float Order

float_order
Read-onlyIdempotent

IEEE 754 totalOrder on two binary32 or binary64 values. Negative zero is below positive zero. Negative NaNs are below minus infinity and positive NaNs are above plus infinity. A larger NaN payload is farther from zero. sameBits is true only when every bit matches. form bits reads both sides as hex; the default reads them as numbers rounded ties-to-even. Returns JSON with: width, form, cmp, sameBits, left, right, leftKind, rightKind. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/float-order

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": {
      "left": "<left>",
      "right": "<right>"
    },
    "name": "float_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
formNovalue
leftYes
rightYes
widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real behavioral substance beyond that: the full ordering rules for signed zero, NaNs and payloads, plus the fact that the default form rounds inputs ties-to-even before comparing. It omits behavior on malformed or out-of-range inputs, so it stops short of a 5.

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 operation, then the edge-case rules, then the return shape, then pricing/endpoint metadata. Sentences are dense but each carries semantic content; the return-field enumeration ('width, form, cmp, sameBits, left, right, leftKind, rightKind') is compact shorthand rather than prose 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?

There is no output schema, but the description compensates by listing the returned JSON fields and what 'cmp' and 'sameBits' mean. For a four-parameter pure comparison tool this is close to sufficient; what remains unaddressed is error behavior for unparseable or oversized inputs, which matters given the 4000-character string operands.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the parameters and it largely does: 'form bits reads both sides as hex; the default reads them as numbers rounded ties-to-even' explains the form enum and its default, and 'binary32 or binary64' maps to the width enum. left/right are only implicitly identified as the two operands, and maxLength constraints are never referenced, leaving a small 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?

Opens with a precise verb+resource: 'IEEE 754 totalOrder on two binary32 or binary64 values,' which unambiguously identifies an ordering/comparison operation over two float operands. The tie-breaking rules (negative zero, NaN placement, payload magnitude) further pin down the exact semantics. It does not explicitly distinguish itself from nearby siblings such as float_bits or float_round, which keeps it just short of a 5.

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 implied by the operation itself (compare/order two floats under totalOrder), and the negative-zero and NaN rules hint at when this differs from ordinary '<' comparisons. However, there is no explicit when-to-use statement, no mention of when to prefer this over a sibling like float_bits, and no stated exclusions.

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