Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-rectangular-diagonal

Rectangular Diagonal: Diagonal of a rectangle. Takes length and width. Returns the diagonal as result. 🆓 5 free trial calls per signed wallet

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402-rectangular-diagonal"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNo
lengthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / length / description
      Removed value: -"Length to process"
    • removedInput schema / properties / width / description
      Removed value: -"Width to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / length
      Added value: +{
      +  "description": "Length to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / width
      Added value: +{
      +  "description": "Width to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It discloses that the result is the diagonal and mentions a 5-call free trial for signed wallets, but it does not clarify input validation, units, error behavior, or whether both parameters are required.

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 short and front-loads the core purpose. The free-trial line is useful but slightly promotional, and the emoji is unnecessary for tool selection.

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 simple two-parameter calculation tool this is mostly adequate, but the schema has 0% description coverage, no output schema, and zero required parameters despite both length and width being needed. Units and input format remain unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 compensate for undocumented parameters. It only restates that the tool takes length and width, without adding units, numeric format, positivity constraints, or requiredness.

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 clearly states that this computes the diagonal of a rectangle from length and width, which separates it from sibling tools like cube diagonal or cuboid diagonal. The purpose is specific, though it does not explicitly contrast itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as x402-cube-diagonal or x402-cuboid-diagonal. The rectangle context implies usage, but the description does not state when-not-to-use or name alternatives.

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