Skip to main content
Glama

ScorpTech x402 Tools

Ternary Value

ternary_value
Read-onlyIdempotent

The integer written by balanced ternary digits, where T means -1. "0" is 0, "T" is -1, "1T" is 2, "10" is 3, and "1TT" is 5. A bad digit or a leading zero is rejected. Returns JSON with: digits, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/ternary-value

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": {
      "digits": "<digits>"
    },
    "name": "ternary_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
digitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description goes well beyond them: it discloses the error behavior (bad digit or leading zero is rejected), the return shape (JSON with digits, value), and a paid-call requirement of $0.001 USDC per successful call via x402 on Base or Solana. The alternate HTTPS endpoint is also surfaced, which is exactly the kind of operational context annotations cannot carry.

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 core definition is front-loaded in one sentence, then examples, then validation, then return shape and pricing — a sensible order with little filler. It is dense but every clause (including the cost and endpoint) carries information a caller needs.

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?

There is no output schema, but the description states the returned fields explicitly, and it covers validation, cost, and transport. For a single-parameter pure-function tool, nothing an agent needs in order to call it correctly or anticipate failure 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?

The schema documents only that digits is a 1-30 character string, with 0% description coverage, so the description must compensate. It does so by defining the digit alphabet, the T = -1 mapping, and the rejection of bad digits and leading zeros, giving the agent enough to construct valid input; only the 30-character bound is left to the schema.

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 first sentence names a concrete transformation — a balanced-ternary digit string interpreted as an integer — with the T = -1 convention spelled out. The direction (ternary digits in, integer out) is unambiguous, which implicitly separates it from siblings like balanced_ternary, though no sibling is named.

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?

Worked examples ("0" is 0, "T" is -1, "1T" is 2, "10" is 3, "1TT" is 5) give a clear sense of valid inputs, and the rejection rule tells the caller what is out of scope. However, there is no explicit statement of when to reach for this tool versus the sibling conversion tools, leaving usage 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