{
 "tools": [
  {
   "type": "function",
   "function": {
    "name": "sr_search",
    "description": "Find anything Space Radar publishes: objects in the sky, guided trips, Lab simulators, articles, 3D models, films, games, sky events and pages. Start here: it returns the ids the other tools take, and links.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "What to look for, in plain words or a name."
      },
      "kinds": {
       "type": "array",
       "items": {
        "type": "string",
        "enum": [
         "object",
         "trip",
         "lab",
         "article",
         "model",
         "video",
         "game",
         "event",
         "country",
         "launch-year",
         "page"
        ]
       },
       "minItems": 1,
       "maxItems": 11,
       "description": "Only these kinds."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8,
       "description": "How many results, 8 by default."
      },
      "cursor": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$",
       "description": "next_cursor of the previous answer, with the same other arguments."
      }
     },
     "required": [
      "query"
     ],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_object",
    "description": "Everything published about one thing: what it is, its facts with their sources, what is measured, modelled or illustrative, and its link on the live 3D map.",
    "parameters": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112,
       "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
      }
     },
     "required": [
      "id"
     ],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_compare",
    "description": "Put the published facts of two to four things side by side. Facts one of them does not have stay empty.",
    "parameters": {
     "type": "object",
     "properties": {
      "ids": {
       "type": "array",
       "items": {
        "type": "string",
        "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
        "maxLength": 112,
        "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
       },
       "minItems": 2,
       "maxItems": 4
      }
     },
     "required": [
      "ids"
     ],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_trips",
    "description": "Guided trips through the 3D map, by topic. Each opens in a browser with no account.",
    "parameters": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A subject, a place or a mission. All trips when left out."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 10,
       "description": "How many results, 10 by default."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_lab",
    "description": "Small interactive physics and astronomy simulators, by topic.",
    "parameters": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A subject, such as tides, orbits or black holes. All when left out."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 10,
       "description": "How many results, 10 by default."
      },
      "cursor": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$",
       "description": "next_cursor of the previous answer, with the same other arguments."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_articles",
    "description": "Journal articles and long reads, by subject. Scheduled posts are never listed before their day.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A subject. The newest when left out."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 5,
       "description": "How many results, 5 by default."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_models",
    "description": "Free 3D spacecraft models (glTF, MIT licence) with their viewer, file, size and credit line.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A spacecraft, a class or a mission. All when left out."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8,
       "description": "How many results, 8 by default."
      },
      "cursor": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$",
       "description": "next_cursor of the previous answer, with the same other arguments."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_videos",
    "description": "Films with their chapters, by subject. Films with a later release date are never listed.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A subject. All when left out."
      },
      "kids": {
       "type": "boolean",
       "description": "Only films made for children."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 5,
       "description": "How many results, 5 by default."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_games",
    "description": "The Space Radar games and where each one stands.",
    "parameters": {
     "type": "object",
     "properties": {},
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_sources",
    "description": "Where the numbers of a record come from, or, with no id, the pages that explain sources, licences and accuracy.",
    "parameters": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112,
       "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_navigate",
    "description": "The exact link that opens a record on the live 3D map or on its page. Links are copied from the published site, never composed.",
    "parameters": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112,
       "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
      },
      "view": {
       "type": "string",
       "enum": [
        "map",
        "page"
       ],
       "default": "map"
      }
     },
     "required": [
      "id"
     ],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_events",
    "description": "Dated sky events: eclipses, meteor showers, full Moons, solstices and missions, next ones first.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "A kind or a name, such as eclipse or Geminids."
      },
      "from": {
       "type": "string",
       "maxLength": 25,
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$",
       "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out."
      },
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8,
       "description": "How many results, 8 by default."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_satellite_position",
    "description": "The position of a bright satellite or a space station, propagated with SGP4 from CelesTrak elements no more than 7 days from the instant asked.",
    "parameters": {
     "type": "object",
     "properties": {
      "norad_id": {
       "type": "integer",
       "minimum": 1,
       "maximum": 999999,
       "description": "NORAD catalogue number: 25544 is the ISS."
      },
      "name": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "Or a name, such as ISS, Tiangong or Hubble."
      },
      "at": {
       "type": "string",
       "maxLength": 25,
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$",
       "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "sr_space_weather",
    "description": "The planetary K index, observed and forecast, from NOAA. Kp is global: it is not a promise of aurora at a place.",
    "parameters": {
     "type": "object",
     "properties": {},
     "required": [],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "search",
    "description": "Search Space Radar. Returns results with id, title and url. Use fetch with an id for the full text.",
    "parameters": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160,
       "description": "What to look for."
      }
     },
     "required": [
      "query"
     ],
     "additionalProperties": false
    }
   }
  },
  {
   "type": "function",
   "function": {
    "name": "fetch",
    "description": "The full published text of one search result, by id.",
    "parameters": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112,
       "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
      }
     },
     "required": [
      "id"
     ],
     "additionalProperties": false
    }
   }
  }
 ]
}