Skip to main content
Glama

x402-map-value

Map Value: Computes the linear mapping of value from the fromMin..fromMax range onto toMin..toMax; a zero-width source range is rejected as a caller error, not answered with Infinity or NaN 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
toMaxNo
toMinNo
valueNo
fromMaxNo
fromMinNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / fromMax / description
      Removed value: -"FromMax to process"
    • removedInput schema / properties / fromMin / description
      Removed value: -"FromMin to process"
    • removedInput schema / properties / toMax / description
      Removed value: -"ToMax to process"
    • removedInput schema / properties / toMin / description
      Removed value: -"ToMin to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed5 schema fields changed
    • addedInput schema / properties / fromMax
      Added value: +{
      +  "description": "FromMax to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / fromMin
      Added value: +{
      +  "description": "FromMin to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / toMax
      Added value: +{
      +  "description": "ToMax to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / toMin
      Added value: +{
      +  "description": "ToMin to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose one valuable behavioral trait — a zero-width source range is rejected as a caller error rather than returning Infinity/NaN — which is real value beyond the schema. But it omits other key behaviors: whether out-of-range values are clamped or extrapolated, and what the response shape looks like.

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 semantics are front-loaded in a single tight sentence, followed by a short error-behavior clause. The trailing trial-call/marketing tag is minor noise but does not obscure the definition.

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?

For a simple arithmetic tool with 5 string parameters and no output schema, the description covers purpose, parameter roles, and error semantics adequately. The main residual gap is out-of-range/extrapolation behavior, which matters for a mapping function but is a smaller omission than for a mutation 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?

Schema description coverage is 0%, so the description must compensate. It effectively assigns meaning to all five parameters by name (value, fromMin/fromMax, toMin/toMax) within the mapping sentence, which is more than the bare schema provides. However, it gives no format details (all are strings — decimal precision, numeric validation) and says nothing about required vs optional behavior.

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?

States a specific verb and operation ('computes the linear mapping of value from the fromMin..fromMax range onto toMin..toMax') with unambiguous semantics. However, it does not distinguish itself from close siblings such as x402-map-to-range, x402-remap, or x402-lerp, which an agent would reasonably confuse it with.

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?

There is no guidance on when to choose this over the near-identical siblings (map-to-range, remap, lerp, interpolate, inverse-lerp). The description implies its use only by virtue of describing the computation; it gives no context, prerequisites, or 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