Skip to main content
Glama

Agent Data Tools: Everyday data

sun

Sunrise, sunset, solar noon, civil dawn and dusk (UTC) and day length for any place and date, computed with the standard solar equations; handles polar day and night. No outside service. Use for photography, events and outdoor planning. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude (-90 to 90)
lonYesLongitude (-180 to 180)
dateNoDate (default today)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (destructiveHint=false, openWorldHint=true), yet the description adds real behavioral context: the $0.001 USDC-on-Base x402 payment requirement, that it is a self-contained computation ('No outside service'), that results are UTC, and that polar day/night is handled. It omits failure/refund behavior and whether the payment must be pre-authorized. The 'No outside service' claim sits slightly in tension with openWorldHint=true, but reads as 'no third-party data API' rather than a direct contradiction.

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?

Three compact sentences, front-loaded with the returned quantities, then scope/method, then practical use, then cost. Every clause carries information — no filler and no repetition of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully enumerates the returned fields and the polar edge case, and it discloses the per-call cost — enough to call correctly and anticipate billing. It would be stronger with a hint about the response shape (units, timestamp format) or payment-failure handling.

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% — lat/lon ranges and the date default are already documented. The description reinforces the 'any place and date' scope but adds no syntax, format, or timezone detail beyond what the schema provides, so the baseline 3 applies.

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 enumerates exactly what is computed — sunrise, sunset, solar noon, civil dawn/dusk, and day length — for 'any place and date', with the computational basis (standard solar equations) and edge-case handling (polar day/night) stated. An agent can distinguish this immediately from siblings like moon, weather, or time without opening the schema.

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?

It gives clear use context ('Use for photography, events and outdoor planning') and scope ('any place and date', defaults handled by the schema). It does not, however, name when NOT to use it or point to adjacent siblings such as moon, weather, or time, which an agent might otherwise confuse for this capability.

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