Skip to main content
Glama

ScorpTech x402 Tools

Poly Mul

poly_mul
Read-onlyIdempotent

Multiply two integer polynomials, lowest degree first. The zero polynomial is an empty list. An optional modulus reduces each coefficient; zero is rejected. A coefficient past 15 digits is a decimal string. Returns JSON with: value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/poly-mul

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>",
      "b": "<b>"
    },
    "name": "poly_mul"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes
modNo

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 cover read-only, idempotent, non-destructive and open-world, so the description rightly focuses on what they cannot say: the error condition (zero modulus rejected), the encoding rule for very large coefficients, the return envelope, and the per-call price plus payment networks. That is meaningful extra context beyond the structured fields, though the return shape ('value') is left under-explained.

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?

Dense, telegraphic sentences with no filler: operation, conventions, error case, encoding, return, then cost and transport. Front-loaded with the operation and every sentence carries distinct information.

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 must say something about returns, and 'Returns JSON with: value' is minimal — it doesn't clarify that value is the product polynomial or how coefficients are represented. Everything else an agent needs (inputs, encoding, errors, pricing, alternate endpoint) is present.

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 must carry the load and largely does: it defines the polynomial encoding for a and b (lowest degree first, empty list = zero polynomial), the reduction semantics of mod, and the zero-modulus rejection. It omits that mod is supplied as a decimal-string rather than an integer, and the '>15 digit coefficient is a string' rule sits oddly against a schema typed as integer with a 1e8 bound.

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?

Opens with a specific verb and resource ('Multiply two integer polynomials') and immediately adds the representation convention ('lowest degree first'), which is precisely the detail that separates this from poly_add or poly_div. An agent can identify the operation 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 Guidelines3/5

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

The description establishes input conventions and the optional-modulus path, which implicitly tells the agent when the mod argument applies, and it names an HTTPS alternative endpoint. It never states when to prefer this over poly_add/poly_div/poly_eval siblings, so usage is implied rather than directed.

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