Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-trapezoid-area

Trapezoid Area: Area of a trapezoid. Takes base1, base2 and height. Returns the area 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-trapezoid-area"
  }
}

Input Schema

NameRequiredDescriptionDefault
base1No
base2No
heightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / base1 / description
      Removed value: -"Base1 to process"
    • removedInput schema / properties / base2 / description
      Removed value: -"Base2 to process"
    • removedInput schema / properties / height / description
      Removed value: -"Height to process"
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load; it does disclose the return shape ('returns the area as result') and a commercial trait (5 free trial calls per signed wallet), which is genuinely useful context an agent can't get elsewhere. It omits precision/rounding, unit assumptions, and failure behavior for non-numeric strings, leaving real gaps for an unannotated tool.

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?

It is short and front-loaded: purpose first, inputs second, return value third, commercial note last. The opening 'Trapezoid Area: Area of a trapezoid' is mildly redundant but costs little.

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

Completeness2/5

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

For a three-parameter tool with no annotations, no output schema, and 0% schema description coverage, the description should clarify numeric-string expectations and the result's format or units. It covers the mechanical shape of the call and the pricing tier but leaves the agent guessing about input validity and output interpretation.

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% and all three parameters are untyped-by-meaning strings with none marked required. The description only restates the parameter names ('takes base1, base2 and height') without saying that they should be numeric values, what units apply, or whether negative or zero values are valid, so it barely compensates for the undocumented schema.

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 verb+resource (compute the area of a trapezoid) and names the three inputs, which is enough to separate it from siblings like x402-trapezoid-perimeter or x402-circle-area by the shape whose area it computes. It does not explicitly point at a sibling alternative, so it stops short of a 5.

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 by the mathematical definition — an agent can infer it should call this when it needs a trapezoid's area. There is no guidance on units, on whether the inputs must be numeric strings, or on when to prefer a different area tool, and no stated preconditions despite the paid/free-trial framing.

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.