Skip to main content
Glama

region_stats

Read-only

[Site data] Statistics of one dataset over a latitude and longitude box (west to east, across the antimeridian when west is greater than east) or a cap around a point: cell count, area, minimum, maximum, mean, standard deviation and percentiles, each cell weighted by its area, with an optional histogram and the area fraction above given thresholds. A class layer answers the area share of each class instead. Areas are on a sphere of radius sphere_radius_m, the registry radius each answer gives; on Earth geodetic latitudes are treated as spherical, within about 0.4%. Latitudes are planetocentric on every body but Earth, where they are geodetic (WGS84); longitudes are degrees east, -360 to 360 accepted, answered from -180 to 180. Values are in the dataset unit each answer names (meters above the height reference for a height dataset). One call reads at most 24 tiles, so a wide request is read at a coarser level and the answer says which level and cell size it used. The largest answer is about 5,000 characters, under the 30,000 characters a connector result is cut at. Each answer carries the source, license and citation: repeat them with any value you use.

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": {
      "dataset": "<dataset>"
    },
    "name": "region_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
eastNoBox: eastern edge, degrees east.
westNoBox: western edge, degrees east.
levelNoThe tile level to read at exactly; the call is refused when that needs more tiles than one call reads. Omit it for the finest level that fits.
northNoBox: northern edge, degrees. Planetocentric (geodetic on Earth).
southNoBox: southern edge, degrees. Planetocentric (geodetic on Earth).
datasetYesA dataset id as data_catalog lists it, for example mars.height.
center_latNoCap: latitude of the center, degrees. Planetocentric (geodetic on Earth).
center_lonNoCap: east longitude of the center, degrees.
radius_degNoCap: radius as an angle at the body's center, degrees.
thresholdsNoValues to report the area fraction above.
histogram_binsNoEqual-width bins from the minimum to the maximum; 0 or absent for none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The readOnlyHint annotation only establishes that this is a safe read; the description adds substantial behavior beyond that: area weighting, spherical radius handling, antimeridian semantics, latitude conventions, tile-read limits and automatic coarsening, answer-size limits, and required source/license/citation repetition. These details materially affect how an agent should interpret and use results.

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 and densely packed with relevant information; almost every sentence contributes behavioral or semantic detail. It is somewhat long and uses run-on sentences, so it is not maximally scannable, but it avoids filler.

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

Completeness5/5

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

For a complex 11-parameter read-only statistics tool with no output schema, the description covers the important dimensions: query modes, weighting, coordinate conventions, tile limits and level fallback, unit handling, output statistics, histogram and threshold behavior, and attribution requirements. It gives an agent enough context to invoke the tool correctly and interpret the answer.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents the parameters well. The description still adds useful meaning beyond it: west greater than east crosses the antimeridian, level omission triggers automatic coarsening, thresholds report area fractions, and histogram bins are equal-width from minimum to maximum. A few details, such as dataset id validation, remain schema-only.

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 resource and operation: statistics of one dataset over a latitude/longitude box or a cap around a point. It distinguishes the statistics mode from class-layer area-share behavior and from ordinary sampling siblings, so an agent can identify the tool without opening its schema.

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

Usage Guidelines4/5

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

It clearly explains the two spatial query modes, box versus cap, and notes that a class layer returns area share instead of numeric statistics. It also explains when to omit level so the finest fitting level is chosen, though it does not explicitly name alternative sibling tools or when not to use this one.

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