Skip to main content
Glama

Arithmetic Number

arithmetic_number
Read-onlyIdempotent

Whether the average of the divisors of n is an integer. 1, 3, 6, 15, and 20 are. 2, 4, 8, and 12 are not. n runs from 1 to 1000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/arithmetic-number

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "n": "<n>"
    },
    "name": "arithmetic_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the description rightly focuses elsewhere — it discloses the cost ($0.001 USDC per successful call), the x402/Solana payment mechanism, and an equivalent HTTPS endpoint. Pricing and payment requirements are exactly the kind of behavioral context annotations cannot convey; only the return-value shape is left unstated.

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?

Front-loaded with the definition, then the examples that disambiguate it, then constraints, then pricing and endpoint. Four short sentences, none wasted; only the endpoint URL line is verbose but it carries real operational value.

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 single-parameter predicate with no output schema, the description covers domain, semantics, cost and access method well. It stops short of stating the response format (boolean vs. {result: bool}), which an agent must infer from 'Whether…'.

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 0%, so the description must carry the burden, and it does specify the input domain (n runs from 1 to 1000000), matching the schema's min/max. It does not restate that n is the integer being tested or that the result is a boolean, leaving a small gap.

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?

States a specific, well-defined mathematical predicate — whether the average of n's divisors is an integer — and backs it with worked examples (1, 3, 6, 15, 20 yes; 2, 4, 8, 12 no). The property is distinct from neighbours like arithmetic_sum or arithmetic_count, though the description never names those siblings to sharpen the distinction.

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 domain of n and the example sets imply when to reach for this tool (testing membership in the arithmetic-number sequence), but there is no explicit when-to-use/when-not guidance and no pointer to alternatives such as arithmetic_sum or arithmetic_next, which appear in the sibling list and could easily be confused with it.

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