Skip to main content
Glama

int_widths

Find which integer widths (i8..i64 or u8..u64) accommodate a value and get the wrapped result for those that overflow. Also flags values beyond 2^53 that cannot safely round-trip through JavaScript numbers or JSON floats.

Instructions

Which widths (i8..i64/u8..u64) hold N, and the wrapped value where they do not. Flags anything past 2^53 as unable to round-trip through a JS number or JSON float. int_widths(3000000000) shows the i32 wrap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / n / title
      Added value: +"N"
    • addedInput schema / title
      Added value: +"int_widthsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.5/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 burden. It appropriately discloses that the tool flags values beyond 2^53 as unable to round-trip through JS numbers or JSON floats, and that it shows wrapped values when widths do not hold. This is helpful, though it does not detail other side effects or output formatting.

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?

Two sentences with a concrete example, front-loaded with the core purpose and a precise detail about the 2^53 threshold. No wasted words.

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?

Given the tool's complexity is moderate (single parameter, no output schema), the description provides adequate details about the tool's behavior, especially the wrap and float limitation. However, it does not describe the output structure or how to interpret results beyond the wrap mention, leaving some ambiguity for an agent.

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?

With schema description coverage at 0% and only one parameter, the description compensates with an example that clarifies the expected input type (e.g., int_widths(3000000000)) and purpose. However, it does not fully specify constraints like range limits or whether non-integer input is allowed, which could be inferred from the schema but is not described.

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 clearly states the tool determines which integer widths hold a given number and reports wrapped values, with a specific example. It distinguishes itself from sibling tools like float_repr or bit_analysis by focusing on integer width range checks and wrap behavior.

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?

The description implies its usage for checking integer width suitability and JS/JSON float round-tripping limitations, but does not explicitly state when to use it over alternatives or when not to use it. Given the specialized purpose, some context is provided but exclusion guidance is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-40-Thieves/codecalc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server