Skip to main content
Glama

set_location

Set the observer location for sky simulation by choosing a Stellarium database id or entering coordinates; unspecified fields keep their current values.

Instructions

Set the observer location — where on Earth (or another planet) the sky is being simulated from. Either name a location from Stellarium's database with id, or give explicit coordinates. Fields you leave out keep their current value. Use search_locations to find valid ids, countries and planets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoLocation id from Stellarium's database (e.g. 'Paris, France'). Cannot be combined with the coordinate fields
nameNoDisplay name for the location
planetNoPlanet to observe from (e.g. 'Earth', 'Mars') — use search_locations with kind 'planets' for valid values
countryNoCountry name — use search_locations with kind 'countries' for valid values
altitudeNoAltitude above sea level in meters
latitudeNoLatitude in degrees, positive north (-90 to 90)
longitudeNoLongitude in degrees, positive east (-180 to 180)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/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 it does disclose the crucial merge semantics: "Fields you leave out keep their current value," which tells the agent this is a partial update rather than a replacement. It stops short of stating what happens with an invalid id, whether the change persists across sessions, or what a no-field call does, so it is good but not complete for a mutation tool.

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 tight sentences with the purpose front-loaded, followed by the input modes, the merge behavior, and the lookup pointer. Every sentence carries distinct information and nothing is repeated from the schema verbatim without purpose.

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 seven-parameter all-optional mutation tool with no annotations and no output schema, the definition covers the two input modes, partial-update behavior, and how to obtain valid values. The remaining gap is failure behavior on bad ids or empty calls, which matters somewhat given zero required parameters but is a minor omission.

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%, so all seven parameters are already documented, including the id/coordinate exclusivity rule and valid ranges. The description restates the id-vs-coordinates choice and the partial-update rule but adds no syntax or format detail beyond the schema, so the baseline of 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 gives a specific verb and resource ("Set the observer location") and immediately defines the resource in domain terms ("where on Earth (or another planet) the sky is being simulated from"). It also distinguishes the two input modes, so an agent can tell this apart from set_property or set_fov without opening any schema.

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?

It explicitly routes the agent to the sibling search_locations for valid ids, countries and planets, and states the condition under which each input mode applies (named id vs explicit coordinates). No other alternative is implied, and none is needed given the explicit routing.

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