Skip to main content
Glama

UK Data: Maths and statistics

calculate_clock_angle

Read-onlyIdempotent

Calculates the smaller angle in degrees between the hour and minute hands of an analog clock given the time. Returns angle between 0 and 180 degrees. (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
hourNointeger, required, hour value (0-23 or 1-12)
minuteNointeger, required, minute value (0-59)

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 readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely non-structured context: the output range (0–180 degrees, i.e. the smaller angle) and a cost of 1 credit, which is exactly the kind of quota/cost disclosure annotations cannot express.

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?

Three short sentences, each earning its place: what it computes, the return range, and the cost. The core purpose is front-loaded and nothing is padded.

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 two-parameter pure function with fully described schema and no output schema, the description covers purpose, return range, and cost — enough to call it correctly. Only minor details, such as rounding or handling of identical-hour/12-hour notation, are left unstated but are effectively immaterial.

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 description coverage is 100%, with both hour (0-23 or 1-12) and minute (0-59) documented inline. The description adds no additional meaning about parameter encoding — notably it does not clarify that the parameters are typed as strings in the schema — so the baseline of 3 applies.

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 names a specific verb and resource ('Calculates the smaller angle ... between the hour and minute hands of an analog clock') and pins down the exact quantity returned. Unlike the many vaguely named calculate_* siblings, an agent can tell precisely what this computes without opening the schema.

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?

Usage is implied by the narrow, self-contained nature of the operation — there is no real alternative tool for clock-hand angles among the siblings. However, the description never states when to prefer it, or how to handle inputs like 12-hour vs 24-hour hours, leaving guidance to inference.

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