Skip to main content
Glama

Estimate sun hours

estimate_sun_hours
Read-onlyIdempotent

Calculates sunrise, sunset, day length, noon sun elevation and direct-sun hours for a window facing north, east, south and west (and optionally a given azimuth) at a location, for the 21st of a month. This is a free-sky estimate that ignores buildings, trees and terrain. Use when the user asks how much sun a window, apartment, plot or facade gets, or about sunrise and sunset at a place (Polish: ile słońca, nasłonecznienie, godziny słońca, wschód i zachód słońca, strona świata, okna na południe).

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": {
      "lat": "<lat>",
      "lng": "<lng>",
      "month": "<month>"
    },
    "name": "estimate_sun_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in degrees (north is positive).
lngYesLongitude in degrees (east is positive).
monthYesMonth from 1 to 12. The 21st of that month is used.
facade_azimuth_degNoOptional direction a window faces, in degrees clockwise from north (0 north, 90 east, 180 south, 270 west).

Output Schema

NameRequiredDescriptionDefault
linksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and idempotency are covered. The description adds behavior the annotations cannot express: results are computed for the 21st of the requested month only, and the calculation is unobstructed free-sky geometry that ignores buildings, trees and terrain. Timezone handling and output units are left unstated, which keeps it off a 5.

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

Conciseness4/5

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

Two sentences, front-loaded with the computed outputs followed by usage triggers and query keywords. The parenthetical output list is dense but readable, and the Polish keyword block earns its place as retrieval signal. Slight redundancy between 'facing north, east, south and west' and the azimuth clause keeps it from a 5.

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 pure-computation tool with an output schema and complete annotation coverage, the description supplies everything an agent needs to decide to call it: purpose, computed quantities, date resolution rule, facade interpretation, and the free-sky limitation. Return formatting need not be explained because an output schema exists.

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; the description still adds meaning by establishing that the default behavior covers all four cardinal facades and that a specific azimuth is an optional override, which the schema's lone facade_azimuth_deg entry does not convey. It also reinforces the 21st-of-month semantics of the month parameter. No units or format detail is added beyond the 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?

The description opens with a specific verb and a full enumeration of outputs: sunrise, sunset, day length, noon sun elevation, and direct-sun hours, scoped to N/E/S/W facades plus an optional azimuth, at a location, for the 21st of a month. An agent knows exactly what the tool returns without opening the schema, and the sibling tools (pricing, plans, orders) are in a wholly different domain so no differentiation is required.

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 explicit usage triggers: user asks how much sun a window, apartment, plot or facade gets, or about sunrise/sunset at a place, with Polish keyword variants to help retrieval. It also bounds applicability by stating the result is a free-sky estimate ignoring buildings, trees and terrain. It stops short of an explicit 'do not use this for X, use Y instead' exclusion, so it is clear context rather than full when/when-not guidance.

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