Skip to main content
Glama

Self Count

self_count
Read-onlyIdempotent

How many self numbers are at most n. Through 1 there is 1, through 10 there are 5, through 20 there are 6, and through 100 there are 13. n runs from 1 to 20000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/self-count

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_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 and openWorld, so the safety profile is covered. The description adds genuinely useful context outside the annotations: a per-call price ($0.001 USDC via x402 on Solana) and an alternate HTTPS endpoint, plus sample outputs that reveal the return is a small integer count. It does not cover edge behavior at n=1 or error conditions, so this is additive but not rich.

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?

Purpose is front-loaded in the first sentence, followed by examples, the valid range, pricing and an alternate endpoint — each element earns its place as operational context. Minor redundancy in restating the 1..20000 range already present in the schema.

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, no-output-schema tool the description covers what the tool computes, its domain, its cost, and an alternative transport. The remaining gap is that 'self number' is never defined, which matters for a specialized term an agent may not know; the sample values only partly substitute for a definition.

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 0%, so the description must carry the burden, and it partially does: 'how many self numbers are at most n' defines n as an inclusive upper bound, which the schema's bare integer does not. However, 'n runs from 1 to 20000' simply restates the schema's min/max, and no format or edge-case semantics are added beyond that, so it lands at baseline-plus rather than fully compensating.

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 verb and resource: counting self numbers up to a bound n. The cumulative 'at most n' framing distinguishes it from the sibling predicates (self_number, self_next, self_nth), though no sibling is named explicitly. An agent can infer it is a counting/cumulative tool rather than a membership test or nth-term lookup.

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?

No guidance on when to use this versus self_number, self_nth, self_next or self_seed, which occupy adjacent territory in the sibling list. The worked examples imply behavior but do not tell the agent which selection condition picks this tool over its neighbors.

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