Skip to main content
Glama

x402-midpoint

Midpoint: Calculate the midpoint (halfway point) between two GPS coordinates given lat1/lon1 and lat2/lon2. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
lat1No
lat2No
lon1No
lon2No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / lat1 / description
      Removed value: -"Lat1 to process"
    • removedInput schema / properties / lat2 / description
      Removed value: -"Lat2 to process"
    • removedInput schema / properties / lon1 / description
      Removed value: -"Lon1 to process"
    • removedInput schema / properties / lon2 / description
      Removed value: -"Lon2 to process"
  2. Changed4 schema fields changed
    • addedInput schema / properties / lat1
      Added value: +{
      +  "description": "Lat1 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / lat2
      Added value: +{
      +  "description": "Lat2 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / lon1
      Added value: +{
      +  "description": "Lon1 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / lon2
      Added value: +{
      +  "description": "Lon2 to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it: it never says whether the midpoint is a simple coordinate average or a spherical/great-circle interpolation, what datum or degree format is expected, or what shape the result takes. The one genuine addition is the '5 free trial calls per signed wallet' note, which discloses a billing/authentication constraint, but that alone does not cover the operational gaps.

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?

Two short sentences, with the operation front-loaded before the trial-call caveat, and no redundant restatement. The emoji and the marketing line about free calls are mild noise but do not obscure the core instruction.

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 four-argument pure calculation with no annotations and no output schema, the description covers what the tool computes and which inputs it takes, which is the minimum viable set. It stops short of specifying coordinate format and the geometric model of 'midpoint', which an agent would need to call it reliably.

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 none of the four parameters have descriptions, so the description must compensate; it does so partially by labelling them as GPS coordinates and grouping them into two coordinate pairs. It adds no format detail (decimal degrees vs DMS, valid ranges, sign conventions) and does not explain why all four are optional in the schema despite being logically required.

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 names a specific verb and resource ('Calculate the midpoint (halfway point) between two GPS coordinates') and even restates the argument pairing lat1/lon1 and lat2/lon2, so the operation is unambiguous. It does not distinguish itself from nearby siblings such as x402-distance, x402-bearing, or x402-midrange, which is the only thing keeping it from 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 Guidelines2/5

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

Usage is only implied by the input description ('given lat1/lon1 and lat2/lon2'); there is no statement of when to reach for this instead of x402-distance or x402-geo-bounding, nor any exclusion or precondition (e.g. planar vs great-circle use). The free-trial note is commercial context, not usage guidance.

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