Skip to main content
Glama

ephemeris_next_eclipse

Read-only

Find the next solar or lunar eclipse with type, date, magnitude, and duration. Optionally provide latitude and longitude for local visibility and contact times.

Instructions

Find the next solar or lunar eclipse. Returns the eclipse type, date/time of maximum, magnitude, and duration of totality (if any).

📍 LOCATION OPTIONAL: • WITH latitude+longitude → returns local contact times and visibility for that specific location. • WITHOUT latitude+longitude → returns the next global eclipse of that type (no location needed).

USE THIS TOOL FOR: 'When is the next solar eclipse?', 'When is the next total lunar eclipse?', 'Will there be an eclipse visible from Tokyo?'

CREDIT COST: 1 credit per call.

EXAMPLE: Next solar eclipse globally (no location needed): eclipse_type='solar'

EXAMPLE: Next solar eclipse visible from New York: eclipse_type='solar', latitude=40.7128, longitude=-74.006

EXAMPLE: Next lunar eclipse from London: eclipse_type='lunar', latitude=51.5074, longitude=-0.1278

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eclipse_typeYesEclipse type to search for. Use 'any' for whichever comes first (solar or lunar).
latitudeNoObserver latitude in decimal degrees (optional). When provided with longitude, returns local contact times and visibility.
longitudeNoObserver longitude in decimal degrees (optional, pair with latitude).
after_dateNoISO 8601 date to search after (e.g. '2026-01-01'). Defaults to today if omitted.
Behavior5/5

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

Discloses behavior beyond readOnlyHint: returns global or local results based on location, mentions credit cost, and specifies output details (magnitude, duration). No contradiction with annotations.

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

Conciseness5/5

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

Well-structured with headings, bullet points, and examples. Every sentence adds value; no wasted words. Front-loaded with core purpose, then organized details.

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?

Complete for a query tool: covers purpose, parameters, optional behavior, output summary, and credit cost. No output schema needed as description explains return values. All essential information for correct invocation is present.

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 has 100% coverage with good descriptions, but description adds value by explaining the optional location behavior and providing usage context (e.g., 'WITH latitude+longitude → returns local contact times'). Enhances understanding beyond schema.

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?

Clearly states 'Find the next solar or lunar eclipse' with specific return fields (eclipse type, date/time, magnitude, duration). Distinguishes from many sibling ephemeris tools by being uniquely focused on next eclipse.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: with location (local visibility) vs without (global). Includes example queries (e.g., 'When is the next solar eclipse?') and three concrete examples with different inputs, making usage clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/openephemeris/openephemeris-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server