Skip to main content
Glama

The Moon's gravity at a point (reference: pyshtools 4.14.1)

gravity_at
Read-only

[Reference and validated] reference: pyshtools 4.14.1, unmodified, run in the reference image. Every answer ends with a provenance block that names the class, the library and data file hashes and the build; say which class produced each number you repeat. The Moon's gravitational acceleration at one point, from the GRGM1200B spherical harmonic model summed by SHTOOLS. radial_m_s2 is positive away from the center of the Moon, so the pull of gravity reads negative; north_m_s2 and east_m_s2 are along local north and east. Gravitation only: the term from the Moon's rotation is not included, and no terrain is read, so radius_km is the caller's. The model is given in the principal axis frame. A point in MOON_ME, the frame of lunar maps and the default, is rotated into MOON_PA by the fixed rotation of NAIF's lunar frame kernel before the sum; pa_lon_deg and pa_lat_deg say where it was evaluated, and north and east are those of the frame asked for. The sum stops at lmax or, above the 1,738.0 km reference sphere, at the last degree n whose (R/r)^n is over 1e-12; degree_summed says where it stopped. A point inside the reference sphere is answered and flagged below_reference_sphere.

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": {
      "body": "<body>",
      "lon_deg": "<lon_deg>",
      "lat_deg": "<lat_deg>",
      "radius_km": "<radius_km>"
    },
    "name": "gravity_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe body. Only "luna" has a gravity model here.
lmaxNoHighest degree summed; no more than the degree of the model, 1200 for GRGM1200B.
frameNoThe frame the longitude and latitude are in and north and east are answered in. MOON_ME is mean Earth and polar axis, the frame of lunar maps; MOON_PA is the principal axis frame the model is given in. A MOON_ME point is rotated into MOON_PA before the sum, up to about 0.9 km on the ground.MOON_ME
modelNoThe gravity model: GRGM1200B, the GRAIL degree 1200 lunar field from NASA PDS Geosciences.GRGM1200B
lat_degYesLatitude, degrees north.
lon_degYesLongitude, degrees east.
radius_kmYesDistance from the center of the Moon, kilometers. The mean radius is 1,737.4 km and the reference sphere of the model 1,738.0 km. Below 1,738.0 km see below_reference_sphere.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

With only readOnlyHint=true in the annotations, the description carries the behavioral burden and does so richly: it discloses the sign convention for radial_m_s2, that rotation and terrain terms are excluded, that MOON_ME input is rotated into MOON_PA, the degree-sum stopping rule, and the below_reference_sphere flag. It also describes the provenance block emitted with each answer.

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?

It is a dense wall of text in which the actual purpose is buried in the second sentence behind a provenance preamble addressed to the agent. Most sentences carry substantive information, but the structure is not front-loaded and the opening meta-instruction adds overhead.

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 the return values, and it does: radial_m_s2, north_m_s2, east_m_s2, pa_lon_deg, pa_lat_deg, degree_summed, and below_reference_sphere are all characterized. For a 7-parameter read-only computation tool, nothing essential is missing.

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 baseline is 3, but the description adds real meaning beyond the schema: it clarifies that radius_km is caller-supplied and not terrain-derived, explains the sign and direction conventions for the output components, and ties frame choice to the rotation applied before summation.

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 specific verb and resource: 'The Moon's gravitational acceleration at one point, from the GRGM1200B spherical harmonic model summed by SHTOOLS.' The phrase 'at one point' implicitly separates it from the sibling gravity_line, but no sibling is named, so sibling differentiation is left to inference.

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?

It gives situational context (frame choice, when lmax matters, what happens inside the reference sphere) but never explicitly says when to use this versus gravity_line or sample_points for multiple locations. Usage is implied rather than stated, with no named alternatives or exclusions.

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