Skip to main content
Glama

TinyFn

is_perfect_number

Check if a number is a perfect number (sum of proper divisors equals the number).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesNumber to check

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYes
numberYes
is_perfectYes
divisor_sumYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It correctly describes the operation as a check and defines perfect numbers, but it does not disclose any potential edge cases (e.g., handling of 1) or performance implications. It is truthful but minimally transparent.

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 a single sentence that efficiently conveys the purpose. It is front-loaded with the verb and resource, and the parenthetical definition adds clarity without extra fluff.

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?

Given that an output schema exists, the description does not need to explain return values. The tool is simple, and the description covers its core functionality. It does not mention edge cases, but they are not critical for basic usage.

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% with a clear description for the only parameter. The tool description adds the definition of perfect number, which indirectly relates to the parameter, but doesn't add significant meaning beyond what the schema already provides.

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 the verb 'Check' and the resource 'a number', and explicitly defines a perfect number. It distinguishes itself from sibling tools like 'is_prime' or 'is_armstrong_number' by specifying the exact mathematical property.

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 description implies the tool is for checking perfect numbers but does not explicitly state when to use it over alternatives or provide any exclusions. It's adequate but lacks comparative guidance.

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.