Skip to main content
Glama

ScorpTech x402 Tools

Cf Value

cf_value
Read-onlyIdempotent

Exact value of a continued fraction [a0; a1, a2, ...]. Later terms are at least 1. [3; 7, 15, 1] and [3; 7, 16] are both 355/113. The canonical field is the short Euclidean form. Returns JSON with: fraction, numerator, denominator, decimal, terms, canonical. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/cf-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": {
      "terms": "<terms>"
    },
    "name": "cf_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (which already declare a read-only, idempotent, open-world evaluation), the description discloses the return payload fields (fraction, numerator, denominator, decimal, terms, canonical), the invariant that later terms are at least 1, the canonicalization rule, the per-call price, and the HTTPS endpoint. That is substantial operational context for a paid remote call. It stops short of stating failure behavior for invalid terms or latency.

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 definition and the illustrative example, then output fields, then pricing/transport. Sentences are dense but each carries information; the price and endpoint lines are slightly extraneous to the math but necessary for a paid x402 tool.

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 one-parameter read-only evaluator with no output schema, the description supplies the return field names, the canonicalization rule, the term constraint, the cost, and the alternative transport. An agent can invoke it correctly and anticipate the response shape from the description alone.

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 parameters. It adds real meaning to 'terms' by stating the notation and the 'later terms are at least 1' constraint, which explains why the schema floor is 0 for the leading term only. It does not mention the 64-item cap or the 1e12 element bound, leaving part of the contract to the schema alone.

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 opens with a specific verb+resource: 'Exact value of a continued fraction [a0; a1, a2, ...]'. The example pair ([3; 7, 15, 1] and [3; 7, 16] both equal 355/113) makes the computational contract concrete. It is clearly the forward/evaluation direction versus expand-style siblings, though it does not name them explicitly.

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 only implied by the mathematical statement of purpose. There is no explicit 'use this when you have terms and want a rational/decimal value; use cf_expand for the inverse' routing, and no mention of when the canonical form or decimal output should drive the choice of tool.

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