Skip to main content
Glama

analysis_area

Analyze a geographic bounding box to find dark, accessible stargazing locations. Returns cached, paginated candidates for fixed regional searches; set road_radius_km to 0 to skip road checks.

Instructions

Analyze a geographic area for suitable stargazing locations.

Use when: you need synchronous place candidates or cached pages for a fixed regional query. Do not use when: the search needs background polling/cancellation or a complete night plan. Requires: south/west/north/east bounds; keep search parameters fixed while changing pages. Follow-up: analysis_area with the same query for other pages; submit_area_analysis for background work; plan_stargazing_session for dates, weather, and target decisions.

This tool searches for dark, accessible locations with good viewing conditions. Results are cached based on search parameters. Server configuration changes can invalidate cached pages without changing resource_id. A configuration change during calculation returns structured CONFIGURATION_ERROR; resubmit after the configuration is stable. Cache lifetime is not source-data age.

Fast mode: Set road_radius_km=0 to skip road connectivity checks. This avoids OSMnx network downloads from Overpass API and is much faster — use it when you only need candidate locations with light pollution and elevation data, without road distance analysis.

Args: south, west, north, east: Bounding box coordinates. max_locations: Maximum number of candidate locations to find (before pagination). min_height_diff: Minimum elevation difference for prominence. road_radius_km: Search radius for road access. Set to 0 to skip road checks. network_type: Type of road network ('drive', 'walk', etc.). avoid_popular_spots: Penalize heuristically popular locations when ranking results. prefer_quiet_at_night: Favor locations that are likelier to quiet down at night. popularity_radius_km: Preference horizon for the popularity heuristics. db_config_path: Optional path to database config. page: Page number (1-based). page_size: Number of results per page.

Returns: Dict with keys "data", "_meta". "data" contains: - items: List of location results for the current page. - total: Total number of locations found. - page: Current page number. - page_size: Current page size. - resource_id: Cache key for the non-pagination search parameters.

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": {
      "south": "<south>",
      "west": "<west>",
      "north": "<north>",
      "east": "<east>"
    },
    "name": "analysis_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
eastYes
pageNo
westYes
northYes
southYes
page_sizeNo
network_typeNodrive
max_locationsNo
db_config_pathNo
road_radius_kmNo
min_height_diffNo
avoid_popular_spotsNo
popularity_radius_kmNo
prefer_quiet_at_nightNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.10.0
    • addedInput schema / properties / avoid_popular_spots
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / popularity_radius_km
      Added value: +{
      +  "default": 3,
      +  "type": "number"
      +}
    • addedInput schema / properties / prefer_quiet_at_night
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses caching keyed to search parameters, resource_id invalidation on configuration changes, CONFIGURATION_ERROR behavior, cache lifetime semantics, and the road_radius_km=0 fast mode that skips Overpass/OSMnx downloads. It stops short of describing permissions, rate limits, or runtime cost beyond 'much faster', which keeps it from 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?

Front-loaded with purpose and when/when-not guidance, followed by caching behavior, fast mode, Args, and Returns. It is long, but the length is justified by 14 parameters; there is slight redundancy between the Follow-up line and the paging guidance elsewhere.

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?

For a complex 14-parameter tool with no annotations, the definition covers purpose, routing, pagination, caching, error handling, and a performance trade-off. The presence of an output schema means the Returns section is supplementary rather than essential, and the only real gap is that some parameter descriptions add little beyond their names.

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 description coverage is 0%, so the description must compensate, and its Args section documents all 14 parameters with meaningful semantics: bounds, max_locations before pagination, min_height_diff for prominence, road_radius_km=0 to skip road checks, and the popularity/quiet preference heuristics. A few entries are thin (db_config_path is only 'Optional path to database config', network_type only lists example values), leaving minor ambiguity.

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?

States a specific verb and resource (analyze a geographic area for stargazing locations) and immediately distinguishes itself from background/polling work and from full night planning. The sibling routing is explicit enough that an agent can choose it without opening other schemas.

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?

Gives explicit 'Use when' and 'Do not use when' conditions, plus named alternatives: submit_area_analysis for background work and plan_stargazing_session for dates, weather, and targets. It also explains the pagination follow-up pattern (same query, new page).

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