Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-polygon-area

Polygon Area: Area of a polygon from its vertices. Takes points (at least 3 [x,y] pairs). Returns the area as result. 🆓 5 free trial calls per signed wallet

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": {
      "points": "<points>"
    },
    "name": "x402-polygon-area"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "points"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / points / description
      Removed value: -"Points to process"
  3. First observed

TDQS

B3.2/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 behavioral burden. It does disclose that the result is returned as 'the area' and adds a real operational detail, a 5-free-call quota per signed wallet, which hints at the payment/auth model. It omits whether the area is absolute or signed, how degenerate or self-intersecting input is handled, and what errors look like.

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?

Front-loaded and short: the operation, the input requirement, and the return value come first, with the promotional free-trial line last. The opening 'Polygon Area: Area of a polygon' mildly restates the name, and the emoji/quota line is marketing rather than functional, but neither is costly.

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 single-parameter pure computation with no output schema and no annotations, the description covers purpose, minimum input count, and that the output is the area. It still leaves the string encoding of points and the sign/edge-case behavior of the computed area unspecified, which matters for correct invocation.

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% and the single parameter is typed only as a string, so the description must compensate. It adds the crucial semantics that the value encodes at least three [x,y] pairs, but leaves the string encoding ambiguous (JSON array, delimiter-separated pairs, etc.), which is exactly what an agent needs in order to construct a valid call.

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?

States a specific verb and resource: computes the area of a polygon from its vertices, with the input shape ('at least 3 [x,y] pairs') and the return value ('the area as result') named. It is distinguishable from a regular-polygon area tool by specifying vertices, but it never names that sibling explicitly, so differentiation is only implicit.

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 a minimum-input constraint (at least 3 points), which implies the geometric precondition, but no statement of when to prefer this tool over the many sibling area tools (regular polygon, triangle, trapezoid, etc.) and no exclusions or edge-case conditions (self-intersecting polygons, winding order).

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.