Skip to main content
Glama

Get Apod

get_apod
Read-onlyIdempotent

Get the NASA Astronomy Picture of the Day with explanation. Optionally specify a date. Example: get_apod({ date: "2024-01-15", _apiKey: "DEMO_KEY" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (optional, defaults to today). Range: 1995-06-16 to today.
_apiKeyNoNASA API key (optional, defaults to DEMO_KEY — get a free key at api.nasa.gov)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to the astronomy picture
dateYesDate of the astronomy picture in YYYY-MM-DD format
titleYesTitle of the astronomy picture
hd_urlNoURL to the high-definition version of the picture
copyrightNoCopyright information for the picture
media_typeYesType of media (image or video)
explanationYesExplanation of the astronomy picture

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the description's addition of 'with explanation' and the example add context but do not significantly enhance behavioral understanding beyond annotations. No contradictions.

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?

Two sentences plus an example, with no wasted words. The most critical information (what it does and the optional date) is front-loaded.

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?

Given the existence of an output schema (handling return values), the description completely covers what an agent needs to know: it retrieves APOD with explanation, optionally for a date. Examples further aid understanding.

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 coverage is 100%, so baseline is 3. The description reinforces optionality and provides an example, but does not add new meaning beyond the schema's descriptions.

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 description clearly states the tool retrieves the NASA Astronomy Picture of the Day with an explanation, and the name and title reinforce this. It is distinct from sibling tools like get_asteroids or get_mars_photos, which focus on different NASA data.

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

Usage Guidelines4/5

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

The description explains when to use the tool (to get APOD) and mentions the optional date parameter. However, it does not explicitly state when not to use it or provide alternatives, though siblings are sufficiently different that guidance is less critical.

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.