Skip to main content
Glama

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. Price: $0.001 USDC per successful call (x402, 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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior. The description adds substantive behavioral details beyond that: signed-zero stepping, infinity behavior, NaN payload preservation, pricing, and an HTTPS alternative. It still does not explain input precedence between bits and value or the full return shape.

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 description is front-loaded with the core operation and then gives concise edge-case and access details. Sentences are dense but purposeful, with no obvious repetition or 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?

For a 4-parameter math tool with no output schema and 0% schema description coverage, the definition is only partially complete. It covers exceptional return values and pricing well, but leaves the main input parameters undocumented, which is a significant gap for correct invocation.

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 explain all four parameters. It never mentions dir, bits, value, or width by name; only 'binary32 or binary64' loosely hints at the width enum. The bits and value string parameters remain completely opaque.

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 operation: returning the next binary32 or binary64 float value up or down. It clearly distinguishes edge-case semantics (zeros, infinity, NaN), but does not name or differentiate itself from siblings like float_ulp or float_order.

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

Usage Guidelines2/5

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

It describes what the tool does but gives no guidance on when to use it versus related tools such as float_ulp, float_order, or float_round. The edge-case notes are useful but do not substitute for usage context.

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