Skip to main content
Glama

sample_profile

Read-only

[Site data] Values of one dataset along the shorter great circle between two points, evenly spaced, with the distance of each sample from the start in kilometers 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%. Up to 256 samples (64 when not given), each the value of the tile cell under it, null where the dataset has none. 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. The largest answer is about 14,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>",
      "from_lat": "<from_lat>",
      "from_lon": "<from_lon>",
      "to_lat": "<to_lat>",
      "to_lon": "<to_lon>"
    },
    "name": "sample_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
to_latYesLatitude of the end, degrees. Planetocentric (geodetic on Earth).
to_lonYesEast longitude of the end, degrees.
datasetYesA dataset id as data_catalog lists it, for example mars.height.
samplesNoHow many samples, ends included.
from_latYesLatitude of the start, degrees. Planetocentric (geodetic on Earth).
from_lonYesEast longitude of the start, degrees.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With only readOnlyHint=true in annotations, the description carries the disclosure burden and does a strong job: default vs maximum sample counts (64/256), null where the dataset has no value, coordinate convention differences (planetocentric everywhere but geodetic WGS84 on Earth, ~0.4% error), longitude normalization to -180..180, unit semantics, and the critical truncation-safe answer size. The one unclear point is 'a sphere of radius sphere_radius_m, the registry radius each answer gives' — sphere_radius_m is not a parameter, and the phrasing is hard to parse, but it does not contradict readOnlyHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The output contract and sampling semantics are front-loaded, which is good, but the body compresses four or five distinct topics (geometry, coordinates, units, tile budget, licensing) into long compound clauses that are hard to parse in one pass. Most content earns its place, yet the license/citation reminder and the character-budget note could be tightened without losing meaning.

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?

There is no output schema, so the description must explain returns, and it does: per-sample values, distance-from-start in km, null for missing data, the level and cell size actually used, dataset.classes for class layers, and source/license/citation metadata. For a 7-parameter read tool with no output schema, almost nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so the schema already documents each parameter's range and meaning, and that sets the baseline at 3. The description does add some meaning beyond it — the default of 64 samples when 'samples' is omitted, and the coarsening behavior when 'level' is omitted or too fine — but coordinate handling is largely restated from the schema rather than extended.

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 precise verb-and-resource combination: values of one dataset sampled on an evenly spaced great-circle transect between two points. The geometry ('shorter great circle between two points, evenly spaced') is specific enough that an agent can tell it apart from grid or point sampling siblings without opening the schema, though no sibling is named for contrast.

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 rather than stated: the agent can infer this is for a linear transect because of the from/to geometry, and the tile-budget rule ('one call reads at most 24 tiles, so a wide request is read at a coarser level') tells it what happens on oversized requests. There is no explicit when-to-use-this-vs-sample_points/sample_grid guidance and no stated prerequisites beyond the dataset id coming from data_catalog.

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