Skip to main content
Glama

ScorpTech x402 Tools

Float Next

float_next
Read-onlyIdempotent

The next binary32 or binary64 value up or down. Positive zero and negative zero both step up to the smallest positive subnormal, and both step down to the smallest negative one. Infinity stays put at its end. A NaN is returned with its payload unchanged. Returns JSON with: width, bits, kind, sign, exponent, hidden, significand, quiet. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/float-next

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": {
      "dir": "<dir>"
    },
    "name": "float_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirYes
bitsNo
valueNo
widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations (which already establish read-only, idempotent, non-destructive), the description discloses the signed-zero stepping rule, infinity clamping, NaN payload preservation, and the exact return field list (width, bits, kind, sign, exponent, hidden, significand, quiet). It also exposes cost and an x402 payment requirement, which the annotations do not convey. Slight deduction because the relationship between the 'bits' and 'value' inputs for supplying the operand is never described.

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?

The core behavior is front-loaded in the first sentence, followed by compact edge-case rules and the return shape. The pricing and HTTPS endpoint sentences are operational rather than semantic but are short and clearly separated; no sentence is filler.

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?

With no output schema, listing the return fields is genuinely useful and the edge cases are covered. The gap is on the input side: with four parameters at 0% schema coverage, an agent still cannot tell how to pass the floating-point operand, which is the central input for this tool.

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% across four parameters, so the description carries the full burden and largely fails. It maps 'dir' implicitly via 'up or down' and 'width' via binary32/binary64, but never explains what 'value' versus 'bits' represent or which one supplies the operand, leaving the caller guessing between two string inputs.

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 opening sentence states a precise verb and resource: the next representable binary32/binary64 value in a direction. That is a real operation, not a restatement of the name. It does not explicitly distinguish itself from siblings like float_ulp or float_round, so it stops 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?

Direction selection ('up'/'down') is clear from the edge-case exposition, and the zero/infinity notes imply when the tool is useful. However, there is no explicit statement of when to prefer this over float_bits or float_ulp, nor any prerequisite or exclusion 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