Skip to main content
Glama

Laguerre

laguerre
Read-onlyIdempotent

The Laguerre polynomial L(n, x) at an integer x, as a reduced fraction. L(n, 0) is 1, L(1, 1) is 0, and L(2, 1) is -1/2. n runs from 0 to 32 and x from -1000 to 1000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/laguerre

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>",
      "x": "<x>"
    },
    "name": "laguerre"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
xYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds the economically critical facts the agent cannot get elsewhere: a $0.001 USDC charge per successful call over x402 on Solana, plus an equivalent HTTPS endpoint. The 'per successful call' phrasing also clarifies failure isn't billed.

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?

Three compact sentences, front-loaded with the definition and result format, followed by domain, price, and endpoint. Every sentence carries information, though the endpoint URL is long and the range restatement duplicates the schema constraints.

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?

With no output schema, the description correctly supplies the return form ('reduced fraction') and concrete value examples. Input domain, cost model, payment context, and transport alternative are all covered, leaving nothing essential for a correct invocation unstated.

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 it does give the valid ranges and clarify that x is an integer input. The worked examples (L(n,0)=1, L(1,1)=0, L(2,1)=-1/2) additionally pin down the reduced-fraction return convention, though a plain-language gloss of what n means (polynomial order) and out-of-range behavior is absent.

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 names the exact mathematical object (Laguerre polynomial L(n, x)), states the output form ('as a reduced fraction'), and pins the domain. No sibling tool computes Laguerre polynomials, so nothing is ambiguous even without an explicit sibling callout.

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 by the mathematical definition and the stated bounds (n 0-32, x -1000..1000), which implicitly tells the agent when the tool is valid. However, there is no guidance about alternatives, such as pointing to legendre_pol, hermite, or chebyshev_t for other orthogonal polynomials, and no advice on what to do outside the supported range.

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