Skip to main content
Glama

ScorpTech x402 Tools

Quat Pow

quat_pow
Read-onlyIdempotent

Integer power of a quaternion. i squared is -1, and i to the fourth is 1. Exponent 0 is 1, including zero to the 0. A negative power inverts first. Returns JSON with: w, x, y, z, exp. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/quat-pow

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": {
      "q": "<q>",
      "exp": "<exp>"
    },
    "name": "quat_pow"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
expYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description goes beyond them by disclosing edge-case behavior (exponent 0 yields 1 including 0^0, negative exponents invert first), the exact return payload (w, x, y, z, exp), and a per-call cost of $0.001 USDC via x402 on Base or Solana — a genuinely useful operational fact an agent could not infer. It stops short of describing payment failure handling or rate limits, which keeps it off a 5.

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 mathematical definition is front-loaded, followed by edge cases, then return shape, then pricing and transport. Every sentence adds information, though the raw HTTPS URL is somewhat boilerplate and the mathematical examples could be trimmed without losing meaning.

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 compensates by enumerating the returned fields (w, x, y, z, exp), and it covers pricing and transport for a paid endpoint. The remaining gap is the unexplained 'q' input format, which for a two-parameter tool with zero schema documentation is a meaningful omission.

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 carries the burden. It explains 'exp' thoroughly (integer, negative inverts, zero yields 1), but says nothing about 'q' — notably that it is a 4-element array of strings rather than numbers, which is a non-obvious and potentially error-prone format the agent must get right. Half the parameters are therefore well served and half are not.

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 opens with a precise verb+resource phrase, 'Integer power of a quaternion,' immediately telling the agent what computation is performed, and the worked examples (i squared is -1, i to the fourth is 1) confirm the semantics. It stops short of explicitly distinguishing itself from nearby siblings like quat_mul or quat_inv, but the mathematical statement is unambiguous on its own.

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 math: raise a quaternion to an integer exponent, with negative exponents handled by inversion first. There is no explicit statement of when to prefer this over repeated quat_mul calls or quat_inv, and the only named alternative is the HTTPS transport endpoint, which is not a tool-selection alternative.

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