Skip to main content
Glama

gcd_calculate

Read-onlyIdempotent

Compute the greatest common divisor and least common multiple of an array of integers to solve number-theory and fraction-reduction tasks.

Instructions

Compute the greatest common divisor (GCD) and least common multiple (LCM) of integers.

Input Schema

NameRequiredDescriptionDefault
numbersYesArray of integers (at least 2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is fully covered. The description adds only that it computes two quantities at once; it says nothing about handling of negatives, zero, or how many values are returned.

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?

One front-loaded sentence with no filler, appropriate for a simple two-output calculator. It is arguably over-terse rather than padded, but nothing is wasted.

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

Completeness3/5

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

For a one-parameter pure function this is nearly adequate, but with no output schema the description never says the result contains both a GCD and an LCM field or what happens on invalid input. Minor gaps remain for an agent that needs to consume the result.

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 'numbers' parameter is already documented as an array of at least 2 integers. The description adds no format, ordering, or edge-case meaning beyond the schema, 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?

The description gives a specific verb (Compute) and two named resources (GCD and LCM) over integers, so intent is unmistakable. It does not differentiate itself from the near-identical sibling gcd_lcm_calc (or extended_gcd), which keeps it short of a 5.

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?

There is no statement of when to use this versus alternatives, and the sibling list contains gcd_lcm_calc, extended_gcd, and modular_arithmetic, which are plausible competitors. The only usage hint, 'of integers', is implicit in the title rather than guidance.

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

Deploy Server

Other Tools