Skip to main content
Glama

Get PIREPs

get_pireps
Read-onlyIdempotent

Return stored PIREPs near a point or airport. Pass lat and lon, or icao. Use get_advisories for SIGMET and AIRMET, not pilot reports. Optional airport, radius_nm, and hours.

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": "get_pireps"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees. Example: 37.6189
lonNoLongitude in decimal degrees. Example: -122.375
icaoNoAirport ICAO ident. Example: KSFO
hoursNoLookback hours, default 2, max 12. Example: 2
airportNoAirport ident. Example: KSFO
radius_nmNoSearch radius in nautical miles. Example: 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / airport / description
      Previous value: -"Airport ident"New value: +"Airport ident. Example: KSFO"
    • addedInput schema / properties / airport / examples
      Added value: +[
      +  "KSFO"
      +]
    • changedInput schema / properties / hours / description
      Previous value: -"Lookback hours, default 2, max 12"New value: +"Lookback hours, default 2, max 12. Example: 2"
    • addedInput schema / properties / hours / examples
      Added value: +[
      +  2
      +]
    • changedInput schema / properties / icao / description
      Previous value: -"Airport ICAO ident, such as KSFO"New value: +"Airport ICAO ident. Example: KSFO"
    • addedInput schema / properties / icao / examples
      Added value: +[
      +  "KSFO"
      +]
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude in decimal degrees"New value: +"Latitude in decimal degrees. Example: 37.6189"
    • addedInput schema / properties / lat / examples
      Added value: +[
      +  37.6189
      +]
    • changedInput schema / properties / lon / description
      Previous value: -"Longitude in decimal degrees"New value: +"Longitude in decimal degrees. Example: -122.375"
    • addedInput schema / properties / lon / examples
      Added value: +[
      +  -122.375
      +]
    • changedInput schema / properties / radius_nm / description
      Previous value: -"Search radius in nautical miles"New value: +"Search radius in nautical miles. Example: 20"
    • addedInput schema / properties / radius_nm / examples
      Added value: +[
      +  20
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered structurally. The description adds only the word 'stored', which hints at archived rather than live data — useful but thin — and says nothing about return shape, whether results are paginated, or what happens when neither locator form is supplied.

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 short sentences, front-loaded with purpose, then invocation mode, then the sibling exclusion. Every clause carries information; nothing is restated or padded.

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 read-only lookup with six optional parameters and no output schema, the description covers purpose, locator choice and the key sibling boundary. It is slightly incomplete on the edge case of calling with no locator at all, where the schema advertises zero required parameters but the prose implies one of lat/lon or icao is needed.

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 lat, lon, icao, hours, airport and radius_nm are already documented, including the hours default of 2 and max of 12. The description only restates the optional trio and does not clarify the icao-vs-airport relationship, so the baseline of 3 is correct.

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 ('Return stored PIREPs') plus the scoping modes ('near a point or airport'), which is enough for an agent to tell it apart from get_metar or get_advisories 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 Guidelines5/5

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

Gives explicit invocation guidance ('Pass lat and lon, or icao') and an explicit exclusion with the correct alternative ('Use get_advisories for SIGMET and AIRMET, not pilot reports'). That is both a when-to-use and a when-not-to-use in one line.

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