Skip to main content
Glama

Date to binary

date_to_binary
Read-only

Convert a date (birthday, anniversary, due date) to its BinaryBirthday code: 12-bit year, 4-bit month, 5-bit day. Returns gift links with the code pre-filled.

Input Schema

NameRequiredDescriptionDefault
dateYesDate as YYYY-MM-DD, e.g. 1990-06-15

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds the useful fact that the return payload includes gift links with the code pre-filled, which no output schema documents. It omits edge-case behavior for invalid or out-of-range dates, so it stops short of a 5.

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 tightly packed sentences: the conversion and encoding come first, the return payload second. No filler, and nothing important is buried.

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?

With no output schema, the description correctly compensates by describing the returned gift links. For a one-parameter read-only tool this is nearly complete, though it does not mention validity constraints (e.g., supported year range for the 12-bit field).

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% and the single parameter is fully documented with a format example (YYYY-MM-DD), so the baseline applies. The description adds only loose semantic examples of what counts as a date, with no extra format or range guidance.

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?

States a specific verb and resource ('Convert a date ... to its BinaryBirthday code') and disambiguates by spelling out the exact encoding (12-bit year, 4-bit month, 5-bit day). This is clearly distinguishable from siblings like binary_to_text or number_to_binary, which convert in the opposite direction or from a different input.

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?

Names example inputs ('birthday, anniversary, due date') and hints at a downstream use ('gift links with the code pre-filled'), but never states when to use this versus siblings such as binary_to_number or suggest_binary_gifts. The usage context is implied rather than specified.

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