Skip to main content
Glama

ScorpTech x402 Tools

Landau Mod

landau_mod
Read-onlyIdempotent

g(n) mod m for Landau's function. g(12) mod 7 is 4, and g(25) mod 97 is 96. The modulus is a positive decimal integer, and zero is rejected. n runs from 0 to 25. Returns JSON with: n, mod, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/landau-mod

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>",
      "mod": "<mod>"
    },
    "name": "landau_mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
modYes

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?

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses material behavior the agent could not otherwise know: a $0.001 USDC charge per successful call via x402 on Base or Solana, the JSON return shape (n, mod, value), and an equivalent HTTPS endpoint. Payment gating is exactly the kind of hidden operational cost an agent must know before invoking.

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?

A single tight paragraph that front-loads the operation, follows with concrete examples that validate the semantics, then constraints, return shape, price, and the alternative transport. Every sentence carries distinct information; nothing is padding.

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 fills that gap by enumerating the returned fields, and it covers pricing, input bounds, and an alternate endpoint for a simple two-parameter tool. Minor gaps remain around why the modulus is a string of up to 600 digits and when to prefer it over the non-modular sibling.

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 description coverage is 0%, so the description carries the burden, and it does add real meaning: the modulus is a positive decimal integer and zero is rejected, which the ^[0-9]{1,600}$ pattern alone does not convey (it would accept '0'). The n range 0-25 merely restates the schema min/max, and the up-to-600-digit string representation of the modulus is not explained.

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: g(n) mod m for Landau's function, illustrated with two worked examples (g(12) mod 7 = 4, g(25) mod 97 = 96). An agent can tell this computes a modular residue rather than the full value, implicitly distinguishing it from the 'landau' sibling, but it never explicitly contrasts the two.

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 through the worked examples and the n range 0-25 and positive-modulus constraints, so an agent can tell what inputs are valid. However, there is no statement of when this should be chosen over 'landau', 'mod_pow', or other *_mod siblings, and no exclusion guidance beyond the zero-mod rejection.

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