Skip to main content
Glama

TinyFn

calculate_range

Calculate range (max - min).

Input Schema

NameRequiredDescriptionDefault
numbersYesComma-separated numbers

Output Schema

NameRequiredDescriptionDefault
maxYes
minYes
rangeYes
numbersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__stats_utils__RangeResponse"New value: +"RangeResponse"
  2. Changed3 schema fields changed
    • removedOutput schema / $defs / RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RangeResponse"New value: +"app__routers__stats_utils__RangeResponse"
  3. Changed3 schema fields changed
    • addedOutput schema / $defs / RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__stats_utils__RangeResponse"New value: +"RangeResponse"
  4. Changed3 schema fields changed
    • removedOutput schema / $defs / RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RangeResponse"New value: +"app__routers__stats_utils__RangeResponse"
  5. Changed3 schema fields changed
    • addedOutput schema / $defs / RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__stats_utils__RangeResponse"New value: +"RangeResponse"
  6. Changed3 schema fields changed
    • removedOutput schema / $defs / RangeResponse
      Removed value: -{
      -  "properties": {
      -    "max": {
      -      "title": "Max",
      -      "type": "number"
      -    },
      -    "min": {
      -      "title": "Min",
      -      "type": "number"
      -    },
      -    "numbers": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "title": "Numbers",
      -      "type": "array"
      -    },
      -    "range": {
      -      "title": "Range",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "numbers",
      -    "min",
      -    "max",
      -    "range"
      -  ],
      -  "title": "RangeResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__stats_utils__RangeResponse
      Added value: +{
      +  "properties": {
      +    "max": {
      +      "title": "Max",
      +      "type": "number"
      +    },
      +    "min": {
      +      "title": "Min",
      +      "type": "number"
      +    },
      +    "numbers": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "title": "Numbers",
      +      "type": "array"
      +    },
      +    "range": {
      +      "title": "Range",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "numbers",
      +    "min",
      +    "max",
      +    "range"
      +  ],
      +  "title": "RangeResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RangeResponse"New value: +"app__routers__stats_utils__RangeResponse"
  7. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, and the description does not disclose edge case handling (e.g., empty input, non-numeric strings). The behavioral impact is minimal for a basic operation, but the description fails to add any behavioral context beyond the basic function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no redundant information. It is efficiently front-loaded with the core purpose.

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?

While the tool is simple and has an output schema, the description lacks information on error handling, return format, or input validation. Given the nature of the tool, this is adequate but not comprehensive.

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?

The input schema provides 100% coverage with a description for the single parameter. The description adds no additional meaning beyond the schema's 'Comma-separated numbers'. Baseline score of 3 is appropriate.

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?

The description clearly states the verb 'calculate' and the resource 'range', explicitly defining the operation as 'max - min'. This distinguishes it from sibling tools like 'calculate_mean' or 'calculate_median'.

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?

No guidance on when to use this tool versus alternatives such as 'calculate_stddev' or 'calculate_variance'. The description lacks context about appropriate use cases or when not to use it.

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.