Skip to main content
Glama

ScorpTech x402 Tools

Odd Goldbach

odd_goldbach
Read-onlyIdempotent

The lexicographically smallest triple of primes adding to an odd n. 7 is 2+2+3, 9 is 2+2+5, and 27 is 2+2+23. n is odd, from 7 to 9999. Returns JSON with: n, a, b, c. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/odd-goldbach

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the description is free to add the genuinely non-obvious parts: this is a paid x402 endpoint at $0.001 USDC per successful call on Base or Solana, plus an equivalent HTTPS path. That pricing/payment context materially affects whether and how an agent invokes it. Minor gap: no mention of failure behavior or whether failed calls are billed.

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 is front-loaded with the core computation, then domain, then return shape, then cost — a sensible order. Three worked examples (7, 9, 27) are one more than strictly needed to convey lexicographic minimality, a small redundancy, but no sentence is filler.

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 correctly enumerates the returned fields (n, a, b, c), and it covers the input domain and cost model for a single-parameter tool. What remains unstated is error behavior for out-of-domain input, which matters for an agent that might pass an even number.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the schema only enforces integer 7-9999, so the description must carry the semantics — and it does, adding the parity constraint ('n is odd') that the schema does not enforce, plus concrete input/output examples. This is the rare case where the prose supplies a rule the structured schema cannot express.

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 states a precise computation: the lexicographically smallest prime triple summing to an odd n, with worked examples (7 = 2+2+3) that pin down what 'lexicographically smallest' means. It does not explicitly contrast itself with the sibling 'goldbach' tool (presumably the even case), so an agent must infer the split from the word 'odd' in the name and description.

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 context is implied by the stated input domain ('n is odd, from 7 to 9999') and the examples, which tell an agent when this tool applies. However, there is no explicit routing guidance such as 'use goldbach for even n' or what happens if an even n is supplied, despite several closely related siblings existing.

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