Skip to main content
Glama

Jacobi

jacobi
Read-onlyIdempotent

The Jacobi symbol (a/n). n must be odd and positive. The value is -1, 0, or 1. An even or non-positive n is rejected. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/jacobi

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": {
      "a": "<a>",
      "n": "<n>"
    },
    "name": "jacobi"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
nYes

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?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive). The description goes beyond them by disclosing the output domain (-1, 0, or 1), input validation behavior for invalid n, and the pricing model ($0.001 USDC per successful call via x402 on Solana), plus an alternative HTTPS endpoint. That is meaningful extra context an agent needs before paying for a call.

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, then constraints, then the return domain, then cost and alternate endpoint. Every sentence carries operational information and nothing is padded.

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?

For a 2-parameter, no-output-schema tool with full annotation coverage, the description supplies the return values, validity rules, and payment model. The only gap is the semantics/format of parameter a, which an agent must infer from the regex pattern.

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 coverage is 0%, so the description must carry the burden. It documents the constraint on n (odd, positive) but says nothing about a's domain (any integer, supplied as a string up to 200 digits per the pattern), leaving the schema pattern as the only signal for both parameters.

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 names the exact mathematical object, the Jacobi symbol (a/n), so an agent knows precisely what is computed. It does not explicitly differentiate from close siblings like legendre_symbol or kronecker, but the resource identity is unambiguous.

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?

It states a hard precondition (n must be odd and positive, even or non-positive n is rejected), which implicitly tells the agent when the tool is callable. However, there is no guidance on when to prefer this over legendre_symbol or kronecker, so sibling selection is left 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