Skip to main content
Glama

ScorpTech x402 Tools

Digit Rev

digit_rev
Read-onlyIdempotent

Reverse the decimal digits of an integer. Leading zeros of the reversal are dropped, so 1200 becomes 21. The sign is kept. A malformed integer is rejected. Returns JSON with: value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/digit-rev

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description goes further by disclosing real behavioral details beyond those hints: leading zeros are dropped, the sign is preserved, malformed integers are rejected, and the response shape is a JSON object with a 'value' field. It also surfaces the paid x402 cost model and the HTTPS endpoint, which an agent cannot infer from annotations at all.

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 core transformation, then edge semantics, then the return shape and pricing/transport line. Every sentence carries information, though the clipped 'Returns JSON with: value.' phrasing and the appended pricing sentence are slightly less polished than the opening.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter deterministic utility with no output schema, the description covers everything needed: the operation, rounding/leading-zero behavior, sign handling, error behavior, the returned field name, and even payment and transport details. Nothing an agent needs in order 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?

With one parameter and 0% schema description coverage, the description must carry the load, and it does: 'malformed integer is rejected' plus 'the sign is kept' explains why the schema pattern allows an optional +/- prefix, and 'decimal digits' clarifies the base. It does not name the parameter 'n' or state that the value is transmitted as a string, which is why this is not a 5.

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?

States a specific verb and resource ('Reverse the decimal digits of an integer') and immediately disambiguates from sibling digit tools like digit_sum or digit_power_sum by making the transformation explicit. The concrete example (1200 becomes 21) pins down the exact semantics an agent needs to select it with confidence.

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 purpose is narrow enough that correct usage is strongly implied, and the description supplies the edge-case conditions for invoking it (malformed input rejected, sign preserved). However, it never states when to prefer this over sibling digit tools or names any alternative, leaving selection guidance to inference.

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