Skip to main content
Glama

Additive Persistence

additive_persistence
Read-onlyIdempotent

Additive persistence: how many times the decimal digits of n must be summed to reach a single digit, and that digit. 199 takes 3 steps and ends at 1. A single digit takes 0 steps. n runs from 0 to 999999999999999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/additive-persistence

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": "additive_persistence"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnly/idempotent/openWorld already declare the safety profile), the description adds the payment model: $0.001 USDC per successful call via x402 on Solana, plus an equivalent HTTPS endpoint. It also pre-empts the edge-case behavior (single digit takes 0 steps). It does not describe the response structure or failure modes, keeping it just short of 5.

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?

The definition and boundary behavior are front-loaded, followed by the range, price, and alternate endpoint. Every sentence carries information, though the pricing/endpoint metadata sits in the same breath as the math definition and slightly dilutes the core.

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?

With 1 parameter, no output schema, and annotations covering safety, the description supplies the domain, edge case, and an illustrative result. It could be tighter about how the two return values (step count and final digit) are surfaced, but nothing needed to call it correctly is missing.

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 load; the numeric range largely duplicates the schema's min/max, but the worked example (199 -> 3 steps, ends at 1) and the explicit single-digit edge case add real semantic value not present in the schema.

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 gives a precise mathematical definition (repeatedly summing decimal digits to a single digit) via a stated verb/operation plus the resource and both outputs (step count and terminal digit). The word 'summed' and the worked example cleanly separate it from multiplicative_persistence and from single-pass tools like digit_sum or digital_root.

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?

Usage is implied rather than stated: an agent can infer it is the additive counterpart of multiplicative_persistence, but the description never names an alternative tool or says when to prefer this one. There are no exclusion conditions beyond the input domain.

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