Skip to main content
Glama

sample_grid

Read-only

[Site data] One dataset resampled to a small grid over a latitude and longitude box: rows from north to south, columns from west to east (across the antimeridian when west is greater than east), each cell the value of the tile cell under its center, read at the level whose cells are closest to the grid spacing, null where the dataset has none. Up to 64 rows and 64 columns and 1600 cells in all, which keeps the largest answer near 22,000 characters, under the 30,000 characters a connector result is cut at. 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). A class layer's value is a class index; its names are in the answer's dataset.classes. 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. 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>",
      "south": "<south>",
      "north": "<north>",
      "west": "<west>",
      "east": "<east>",
      "rows": "<rows>",
      "cols": "<cols>"
    },
    "name": "sample_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
colsYesColumns, west to east.
eastYesEastern edge, degrees east.
rowsYesRows, north to south.
westYesWestern 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.
northYesNorthern edge, degrees. Planetocentric (geodetic on Earth).
southYesSouthern edge, degrees. Planetocentric (geodetic on Earth).
datasetYesA dataset id as data_catalog lists it, for example mars.height.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses hard caps (64 rows/cols, 1600 cells), the resulting answer size (~22,000 chars, under the 30,000-char connector cutoff), the 24-tile read budget and its coarsening consequence, plus the reporting of source, license and citation. It also explains the antimeridian convention and the geodetic-vs-planetocentric latitude rule, which an annotation could never convey.

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 a single dense paragraph, but nearly every clause carries load — caps, coordinate conventions, class-index semantics, tile budget, attribution. The core description is front-loaded before the caveats. Slight cost in readability from cramming all constraints into one block, but nothing is 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 an 8-parameter, mutation-free sampling tool with no output schema, the description covers limits, units (meters above height reference for height datasets; class indices with names in dataset.classes), coordinate frames, degraded-resolution fallback, and attribution requirements. An agent has everything needed to call it correctly and interpret the result.

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?

With 100% schema coverage the baseline is 3, and the description earns more by explaining that west greater than east crosses the antimeridian, that -360 to 360 is accepted but answered from -180 to 180, and that omitting level selects the finest level that fits while an explicit level is refused if it needs too many tiles. These add behavioral meaning beyond the per-parameter schema text.

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 opening states a specific verb+resource: one dataset resampled to a small lat/lon grid, with row/column orientation and cell semantics spelled out. An agent can tell this apart from point or profile sampling. It stops short of naming the sibling it replaces (e.g. sample_points or region_stats), so differentiation is inferred rather than stated.

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 implied through the limit discussion: 'One call reads at most 24 tiles, so a wide request is read at a coarser level', which tells the agent how wide requests behave but not when to choose this tool over sample_points or region_stats. There are no explicit when-not conditions or prerequisites. Guidance is adequate for a competent reader but not directive.

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