Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

conversion_bcd

Read-onlyIdempotent

Convert decimal numbers to 8421 Binary-Coded Decimal (BCD) or decode BCD nibbles back to decimal. Each decimal digit is encoded as a 4-bit group.

Instructions

BCD Converter (Binary-Coded Decimal). Convert a decimal number to 8421 Binary-Coded Decimal (BCD), or decode BCD nibbles back to a decimal number. In BCD each decimal digit 0-9 is encoded independently as its own 4-bit group, so 25 becomes 0010 0101 rather than the pure-binary 11001. Only the standard 8421 weighting is supported (no excess-3 or 2421 variants). Use conversion_binary_decimal for whole-number pure base-2/decimal conversion, conversion_gray_code for reflected binary, or conversion_parity_bit for error-detection bits. Runs locally on the value you provide: read-only, non-destructive, offline, and rate-limited (60 requests/min anonymous). Returns the converted string, the echoed input/mode/formats, and a per-digit breakdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesValue to convert. For decimal-to-bcd, decimal digits 0-9 only, maximum 16 digits. For bcd-to-decimal, BCD interpreted per inputFormat (maximum 16 nibbles); each nibble must decode to 0-9.
modeYesConversion direction. decimal-to-bcd encodes a decimal number as BCD; bcd-to-decimal decodes BCD nibbles back to a decimal number.
outputFormatNoBCD rendering for decimal-to-bcd output. nibbles is space-separated 4-bit groups, continuous is one unbroken bit string, hex is a 0x prefixed hexadecimal string. Ignored for bcd-to-decimal.nibbles
inputFormatNoHow input is parsed for bcd-to-decimal. nibbles is space-separated 4-bit groups, continuous is a bit string whose length is a multiple of 4, hex is a 0x prefixed hexadecimal string. Ignored for decimal-to-bcd.nibbles

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoWhether the conversion succeeded.
inputNoThe input value, echoed back.
modeNoThe conversion mode used: decimal-to-bcd or bcd-to-decimal.
outputFormatNoThe output format applied: nibbles, continuous, or hex.
inputFormatNoThe input format applied: nibbles, continuous, or hex.
resultNoThe converted string (BCD groups or decimal number, per mode).
breakdownNoPer-digit mapping between each decimal digit and its 4-bit BCD group.
Behavior5/5

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

Discloses 'Runs locally on the value you provide: read-only, non-destructive, offline, and rate-limited (60 requests/min anonymous).' Describes return structure. No contradiction with annotations.

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?

Description is a single paragraph but well-organized; each sentence provides essential information. Slightly verbose but not excessive; could be more structured with sections.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers conversion direction, BCD explanation, supported variants, limits, rate limits, return outputs, and sibling differentiation. Output schema exists. No gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage describing all 4 parameters. Description adds context about BCD encoding and constraints beyond schema, e.g., 'maximum 16 digits' and explanation of outputFormat options.

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 'BCD Converter (Binary-Coded Decimal). Convert a decimal number to 8421 Binary-Coded Decimal (BCD), or decode BCD nibbles back to a decimal number.' with an example. It also distinguishes from sibling tools like conversion_binary_decimal and conversion_gray_code.

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

Usage Guidelines5/5

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

Explicitly says 'Use conversion_binary_decimal for whole-number pure base-2/decimal conversion, conversion_gray_code for reflected binary, or conversion_parity_bit for error-detection bits.' Also notes maximum length constraints and input format requirements.

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

Install Server

Other Tools

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/Jambozx/onlinecybertools-mcp-server'

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