Skip to main content
Glama

ScorpTech x402 Tools

Farey Count

farey_count
Read-onlyIdempotent

How many reduced fractions lie in the Farey sequence of order n, from 0/1 through 1/1. Order 1 has 2, order 5 has 11, and order 6 has 13. The count is one more than the totient sum. n runs from 1 to 100000. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/farey-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": "farey_count"
  }
}

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description still adds genuinely useful behavior: the $0.001 USDC x402 payment per successful call, the Base/Solana rails, and an alternative HTTPS endpoint — none of which the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the definition and small worked examples, then the constraint range, then return shape and pricing details. Every sentence adds either mathematical grounding or operational information; nothing is redundant with the schema or annotations.

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 no output schema, the description usefully names the return fields (n, value), states the admissible range, and discloses payment/transport details. For a single-parameter pure-computation tool this is close to complete, though it omits error behavior (e.g., what happens for out-of-range n or failed payment).

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 coverage is 0% — the schema only carries minimum/maximum with no textual description of n — so the description must carry the meaning. It does: n is the order of the Farey sequence and runs from 1 to 100000, matching the schema bounds and pinning down what the integer represents.

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 states a precise mathematical object (count of reduced fractions in the Farey sequence of order n from 0/1 to 1/1) plus concrete worked examples (order 5 → 11, order 6 → 13) that let an agent verify intent. It also relates the quantity to the totient sum, which distinguishes it from the sibling totient tool.

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 by the domain definition (compute the Farey count for a given order), and the totient-sum note hints at overlap with the totient sibling, but the description never says when to prefer this tool over totient or farey_adjacent/farey_child. No exclusions or prerequisites are stated.

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