Skip to main content
Glama

Self Number

self_number
Read-onlyIdempotent

Whether n is a self number: no m has m plus its digit sum equal to n. 1, 20, and 108 are. 2, 10, and 21 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/self-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": "self_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior, while the description adds useful operational context: the 1 to 1,000,000 domain, the $0.001 USDC per successful x402 call price, and an HTTPS endpoint alternative. It does not explicitly state the boolean return shape or failure behavior, so it falls short of full transparency.

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 definition, examples, domain, price, and endpoint are all relevant and front-loaded without waste. The description is appropriately sized for a simple one-parameter predicate with payment details.

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 one-parameter boolean predicate with rich annotations, the description covers definition, examples, domain, pricing, and alternate access. Its main omission is an explicit statement that the return value is true/false, which leaves a minor gap because no output schema exists.

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 parameter meaning. It identifies n as the number being tested and states the range 1 to 1,000,000, which compensates well for the single required parameter, though it does not explicitly restate integer typing.

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 clearly defines a specific predicate: determining whether n is a self number, with a formal definition and positive/negative examples. It is distinguishable in substance from sibling tools like self_count and self_next, but it does not explicitly name or differentiate those siblings.

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?

It gives the input range and examples but provides no explicit guidance on when to use this tool versus self_count, self_next, self_nth, self_seed, or digit_sum. Usage is implied by the predicate framing, but alternatives and exclusions are absent.

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