Skip to main content
Glama

ScorpTech x402 Tools

Euler Zigzag

euler_zigzag
Read-onlyIdempotent

The nth Euler zigzag number, the number of up-down permutations of n. a(0) is 1, a(3) is 2, a(4) is 5, and a(5) is 16. For n at least 1 it is the Entringer number E(n, n). n runs from 0 to 40. Past 15 digits the value is a decimal string. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/euler-zigzag

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

Input Schema

NameRequiredDescriptionDefault
nYes

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?

Annotations already declare readOnly, idempotent, non-destructive behavior, and the description adds substantial context beyond that: cost of $0.001 USDC per successful call, the x402 payment rail (Base or Solana), an equivalent HTTPS endpoint, and the output-format quirk that values past 15 digits come back as a decimal string. The monetary cost and payment requirement are exactly the kind of behavioral detail an agent needs 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, leading with the definition before moving to range, formatting, return shape, and pricing. Some redundancy exists — 'n runs from 0 to 40' restates the schema bounds — but every sentence, including the endpoint and price, carries information the agent cannot get from structured fields.

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

Completeness5/5

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

For a single-parameter computation tool with no output schema, the description supplies everything needed: the mathematical meaning, valid input range, output shape (JSON with n and value), a serialization caveat for large values, and the payment/transport details. Nothing required to call it correctly is missing.

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 coverage is 0%, so the description must carry the parameter burden, and it does: it fixes n as the term index, bounds it to 0 through 40, and illustrates the mapping with sample inputs and outputs. The bounds duplicate the schema's minimum/maximum, but the examples and the Entringer-number equivalence E(n, n) add genuine semantic meaning.

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 specific resource (the nth Euler zigzag number) and defines it precisely as the count of up-down permutations of n, with concrete values a(0)=1, a(3)=2, a(4)=5, a(5)=16. An agent can distinguish this from `euler_zigzag_sum` or `euler_secant` by the singular value and the definition, though it never explicitly names the sibling to use for a sum.

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 only implied: the tool computes one term, so an agent can infer it should call `euler_zigzag_sum` for a cumulative value, and the n range 0-40 implies out-of-range calls fail. There is no explicit when-to-use/when-not statement, no mention of the sibling alternative, and no discussion of error handling for n > 40.

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