Skip to main content
Glama

ScorpTech x402 Tools

Quat Rotate

quat_rotate
Read-onlyIdempotent

Rotate a vector by a quaternion, q v q inverse. k sends (1, 0, 0) to (-1, 0, 0), a half turn about z. Scaling q does not change the turn. Returns JSON with: w, x, y, z. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/quat-rotate

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>",
      "v": "<v>"
    },
    "name": "quat_rotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
vYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond that: it discloses the return shape (w, x, y, z), the scaling invariance, the per-call price, and an alternative HTTPS endpoint.

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 front-loaded with the core operation, then moves through an example, an invariant, return fields, and invocation details. It is efficient overall, though the phrase 'k sends...' uses an undefined k that may briefly confuse a reader.

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 two-parameter math primitive with no output schema, the description covers the operation, an example, scaling behavior, return fields, pricing, and endpoint. However, it omits input array ordering and string-encoding details, which are critical given 0% schema description coverage, and the return field list does not explain why a vector rotation returns w, x, y, z.

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?

With 0% schema description coverage, the description must carry parameter meaning. It does establish that q is a quaternion and v is a vector through the q v q inverse notation and the scaling note, but it does not specify array ordering or the expected string format for the numeric components, leaving important input semantics ambiguous.

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 states a specific mathematical operation: rotating a vector by a quaternion via q v q inverse. It clearly distinguishes this from sibling quaternion utilities such as quat_mul, quat_inv, quat_norm, and quat_pow by naming the exact operation and giving a concrete half-turn example.

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 purpose, and the note that scaling q does not change the turn is a useful usage insight. However, there is no explicit when-to-use guidance, no exclusions, and no comparison to sibling tools like quat_mul or quat_inv.

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