Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-chinese-remainder

Chinese Remainder: Solves a system of congruences from remainders and moduli arrays, returning x modulo the product of moduli 🆓 5 free trial calls per signed wallet

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": {
      "moduli": "<moduli>",
      "remainders": "<remainders>"
    },
    "name": "x402-chinese-remainder"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
mNo
moduliYes
remaindersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "moduli",
      +  "remainders"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / m / description
      Removed value: -"M to process"
    • removedInput schema / properties / moduli / description
      Removed value: -"Moduli to process"
    • removedInput schema / properties / remainders / description
      Removed value: -"Remainders to process"
  3. Changed4 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / m
      Added value: +{
      +  "description": "M to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / moduli
      Added value: +{
      +  "description": "Moduli to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / remainders
      Added value: +{
      +  "description": "Remainders to process",
      +  "type": "string"
      +}
  4. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Because no annotations are provided, the description must carry the whole burden. It does add useful behavior: it says the result is x modulo the product of the moduli, and it discloses the pricing and access condition ('5 free trial calls per signed wallet'). However, it does not say what happens with inconsistent systems (no solution), non-coprime moduli, or how failures are surfaced.

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 computational statement is front-loaded in a single efficient sentence. The trailing pricing and free-trial note is separated and does not bury the core semantics, though the emoji adds visual noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter math tool with no annotations and no output schema, the definition covers the return value adequately but leaves half the parameters and all error and edge-case behavior unexplained. It is serviceable but not complete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description has to explain all four parameters. It explains only two of them, the remainders and moduli arrays. The parameters a and m are not mentioned at all, so the agent must guess whether they are an alternative single-congruence input form.

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 gives a specific verb and resource: it solves a system of congruences from remainders and moduli arrays and returns x modulo the product of moduli. That is precise enough that an agent can tell it apart from the neighboring numeric and date utilities without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states what the tool computes, but there is no when-to-use guidance, no prerequisites, and no mention of when not to use it. The only routing information is implicit: it requires moduli and remainders.

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