Skip to main content
Glama

UK Data: Everyday calculators

format_date

Read-onlyIdempotent

Convert a date (and optional time) from one format to another using strftime codes (%Y %m %d %B %b %A %a %H %I %M %S %p %j). Rejects impossible dates such as 31 February instead of rolling them over. (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
dateNostring, required, e.g. 2026-11-07 or 07/11/2026
input_formatNostring, optional, default %Y-%m-%d
output_formatNostring, required, e.g. '%A %d %B %Y'

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?

The annotations already declare read-only, idempotent, non-destructive behavior. The description adds useful context beyond that: supported strftime tokens, strict rejection of impossible dates such as 31 February, and a 1-credit cost. It does not describe the exact return shape, but behavior is otherwise well covered.

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 two front-loaded sentences plus a short cost note, with no wasted wording. The most important information, format conversion and supported strftime codes, comes first.

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?

This is a low-complexity formatting tool with rich annotations and full schema coverage. The description covers the format syntax and invalid-date behavior sufficiently for an agent to call it correctly, and no output schema is needed.

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 description coverage is 100%, so the baseline would be 3. The description still adds meaning by listing supported strftime codes and clarifying that time is optional while impossible dates are rejected rather than normalized.

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 states a specific verb and resource: convert a date, with optional time, from one format to another using strftime codes. It is clear, but it does not explicitly distinguish itself from date/time siblings such as convert_time.

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 use case is implied by the description, but there is no explicit when-to-use or when-not-to-use guidance, and no alternative tools are named. It is the minimum viable level for a straightforward formatting tool.

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