Skip to main content
Glama

Acceleration along a line from the Moon through EML1 (validated model: pyshtools 4.14.1)

gravity_line
Read-only

[Reference and validated] validated model: pyshtools 4.14.1, unmodified libraries combined by this site's own model, 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 acceleration at evenly spaced samples along the straight line from a site on the Moon through EML1 at one epoch. Three terms, each one switchable: body_harmonics is the GRGM1200B model summed by SHTOOLS, to degree 600 at most; earth_point_mass is Earth's attraction as a point mass at its geometric position from CSPICE and DE440; frame_rotation is the centrifugal term of a frame turning with the Earth-Moon line about their barycenter at the circular rate for the separation used. The SHTOOLS sum and the CSPICE geometry are unmodified; adding the three is this site's own model, which is why this is a validated model and not a reference answer. It leaves out the Moon's eccentric motion, the Sun, and the Coriolis term on anything moving along the line. EML1 here is the collinear point of the circular restricted three-body problem: on the line from the center of the Moon to the center of Earth at the epoch, where the two point masses and the rotation balance for the mass ratio in the provenance, 0.150934 of the separation from the center of the Moon. The site is on the 1,737.4 km mean sphere, not on terrain, and height_km is above that sphere; with no site given the line starts under Earth. net_along_m_s2 is the component along the line, positive away from the Moon. radial_m_s2 is positive away from the center of the Moon, north_m_s2 and east_m_s2 are along local north and east of the frame asked for, at each sample's own longitude and latitude. Above the 1,738.0 km reference sphere the harmonic sum stops at the last degree n whose (R/r)^n is over 1e-12, and degree_summed says where.

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>",
      "epoch_utc": "<epoch_utc>"
    },
    "name": "gravity_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe body. Only "luna" has a gravity model here.
lmaxNoHighest degree of body_harmonics, 600 at most on a line. 0 leaves the Moon a point mass.
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
termsNoWhich terms are added.
samplesNoSamples along the line, first and last included. At most 85 rows and 30,000 characters of answer; cover a longer line in several calls with start_km and stop_km.
stop_kmNoLast sample, kilometers along the line from the site. EML1 when absent.
throughNoThe point the line runs through.EML1
start_kmNoFirst sample, kilometers along the line from the site.
epoch_utcYesThe instant, UTC, as 2026-12-11T00:00:00Z. From 1850-01-01T00:00:00Z to 2150-01-01T00:00:00Z.
from_lat_degNoSite latitude, degrees north.
from_lon_degNoSite longitude, degrees east. Given with from_lat_deg; with neither, the site is the point under Earth at the epoch.
separation_kmNoReplaces the epoch's distance between the centers of Earth and the Moon; the direction stays the epoch's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations supply only readOnlyHint, and the description carries the rest: what each of the three terms computes, what the model deliberately omits (Moon's eccentric motion, the Sun, the Coriolis term), how EML1 is defined, the reference sphere used, and the truncation rule above 1,738.0 km. It also discloses the mandatory provenance block and the 30,000-character/85-row answer limit, which are real behavioral constraints an agent must plan around.

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?

Roughly 400 words in one undivided block, fronted by a provenance/instruction preamble before the purpose is ever stated, so the key sentence is not front-loaded. Nearly every sentence carries technical content, but the dense run-on phrasing and lack of paragraph breaks make it harder to scan than its length warrants.

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 13-parameter modeling tool with no output schema, the description defines the returned components (net_along_m_s2, radial_m_s2, north_m_s2, east_m_s2, degree_summed) with sign conventions and explains the physics stack and its limits. Nothing an agent needs to call this correctly or interpret the result 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 3 is the floor, and the description earns more by explaining meaning the schema only gestures at: the site-on-mean-sphere convention, the MOON_ME/MOON_PA rotation consequence, separation_km replacing the distance while keeping the epoch direction, and the sign conventions for net, radial, north and east. It does not restate per-parameter types, which is correct.

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 second sentence states a precise verb and resource: 'The acceleration at evenly spaced samples along the straight line from a site on the Moon through EML1 at one epoch.' The sample-along-line scope, plus the explicit term breakdown, makes it distinguishable from the point-evaluation sibling gravity_at without opening either schema.

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?

Operational guidance is present ('At most 85 rows... cover a longer line in several calls with start_km and stop_km') and defaults are explained ('with no site given the line starts under Earth'), but there is no explicit when-to-use/when-not statement and no named alternative such as gravity_at for single-point queries. The agent must infer the routing from scope.

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