Skip to main content
Glama

Decode bits

decode_bits
Read-only

Decode binary or hexadecimal bit patterns into a chosen numeric format and get the decimal value plus a full bit-level component breakdown.

Instructions

Decode a binary or hexadecimal bit-pattern into a specified format. Returns the decimal value and full component breakdown.

Input Schema

NameRequiredDescriptionDefault
bitsYesBit-pattern as a binary string (e.g. "0100000001001000") or hex string with 0x prefix (e.g. "0x4048").
formatYesFormat preset key (e.g. "fp16") or custom format object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description is free to add the return shape — the decimal value plus a full component breakdown — which is valuable since there is no output schema. It does not say what happens with an invalid bit-pattern or how custom format objects behave, so it is not fully transparent.

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?

Two tight sentences, front-loaded with the action and resource. No redundant restatement of the name or title. It is efficient but very sparse given the tool's flexibility.

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 2-parameter tool with full schema coverage and no output schema, the description covers both inputs generically and the return value. The main gap is not explaining which format presets are valid or pointing to list_formats/get_format_info, which matters for the 'preset key' input.

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 coverage is 100%, so both parameters are already documented with examples (binary string, 0x-prefixed hex, preset key vs custom object). The description adds no additional parameter semantics, so baseline 3 applies.

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 (decode) and resource (binary/hex bit-pattern) plus the target (specified format). It does not explicitly name how it differs from sibling encode_number or convert_format, which is the inverse operation, so it stops short of full sibling differentiation.

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?

The description never states when to use this versus encode_number, convert_format, or list_formats, nor any prerequisites. Usage is only inferable from the name 'decode'. No alternatives or exclusions are given.

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