Skip to main content
Glama

Get Kp Index

noaa_spaceweather_get_kp_index
Read-onlyIdempotent

Planetary K-index (0–9 geomagnetic activity scale) — recent observed 3-hour values with their NOAA G-scale equivalents and aurora-latitude guidance, plus the 3-day Kp forecast series. Kp is the primary driver of aurora visibility and geomagnetic storm severity. SWPC reports Kp in thirds and starts each G level at that level’s "minus" value: Kp 4.67 (5−) is G1, Kp 6.67 (7−) is G3 (aurora to ~50° geomagnetic), Kp 8.67 (9−) is still G4, and only Kp 9 is G5 extreme. Use noaa_spaceweather_get_conditions for a combined snapshot including storm scales; use this tool when you need the Kp time series or forecast detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
window_daysNoNumber of past days of observed Kp to return (1–7, default 1). Larger windows show trend context.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
forecastNoKp forecast series: estimated and predicted entries, no observed history.
observedNoObserved Kp in the window, oldest first.
currentKpNoLatest observed Kp; 0 when the window has none.
currentGScaleNoG level (0–5) for currentKp.
observedCountNoEntries in observed.
auroraLatitudeNoAurora guidance for currentKp.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedOutput schema / properties / auroraLatitude / description
      Previous value: -"Aurora visibility guidance for current conditions."New value: +"Aurora guidance for currentKp."
    • changedOutput schema / properties / currentGScale / description
      Previous value: -"NOAA G-scale for current Kp."New value: +"G level (0–5) for currentKp."
    • changedOutput schema / properties / currentKp / description
      Previous value: -"Latest observed Kp value."New value: +"Latest observed Kp; 0 when the window has none."
    • changedOutput schema / properties / forecast / description
      Previous value: -"Forward-looking Kp forecast series (estimated and predicted entries only; observed history excluded)."New value: +"Kp forecast series: estimated and predicted entries, no observed history."
    • changedOutput schema / properties / forecast / items / description
      Previous value: -"One forward-looking Kp forecast interval (estimated or predicted)."New value: +"One Kp forecast interval."
    • changedOutput schema / properties / forecast / items / properties / gLabel / description
      Previous value: -"NOAA G-scale label, e.g. \"G0\", \"G3\"."New value: +"G label, e.g. \"G3\"."
    • changedOutput schema / properties / forecast / items / properties / gScale / description
      Previous value: -"NOAA G-scale equivalent (0–5) derived from Kp, on the same minus-third band floors SWPC uses — it agrees with noaaScale when the feed states one."New value: +"G level (0–5) derived from kp; matches noaaScale when stated."
    • changedOutput schema / properties / forecast / items / properties / kp / description
      Previous value: -"Forecasted Kp value."New value: +"Forecast Kp value (0–9)."
    • changedOutput schema / properties / forecast / items / properties / noaaScale / description
      Previous value: -"NOAA scale string, e.g. \"G1\", null when not available."New value: +"NOAA scale the feed states, e.g. \"G1\"; null when none."
    • changedOutput schema / properties / forecast / items / properties / observed / description
      Previous value: -"\"estimated\" for near-real-time model points, \"predicted\" for forecast points."New value: +"\"estimated\" (near-real-time model) or \"predicted\"."
    • changedOutput schema / properties / forecast / items / properties / timeTag / description
      Previous value: -"ISO 8601 time tag for the forecast interval."New value: +"ISO 8601 forecast interval time tag."
    • changedOutput schema / properties / observed / description
      Previous value: -"Observed Kp readings within the requested window, oldest first."New value: +"Observed Kp in the window, oldest first."
    • changedOutput schema / properties / observed / items / description
      Previous value: -"One observed Kp 3-hour interval reading."New value: +"One observed 3-hour Kp interval."
    • changedOutput schema / properties / observed / items / properties / auroraLatitude / description
      Previous value: -"Aurora visibility guidance for this Kp level, in geomagnetic latitude."New value: +"Aurora guidance for this Kp, in geomagnetic latitude."
    • changedOutput schema / properties / observed / items / properties / gLabel / description
      Previous value: -"NOAA G-scale label, e.g. \"G0\", \"G3\"."New value: +"G label, e.g. \"G3\"."
    • changedOutput schema / properties / observed / items / properties / gScale / description
      Previous value: -"NOAA G-scale equivalent (0–5). Each level starts at its \"minus\" third — G1 at Kp 4.67, G2 at 5.67, G3 at 6.67, G4 at 7.67 (through 8.67), G5 at 9."New value: +"G level (0–5) for this Kp; G1 starts at 4.67, G5 at 9."
    • changedOutput schema / properties / observed / items / properties / kp / description
      Previous value: -"Kp index value 0–9."New value: +"Kp value (0–9)."
    • changedOutput schema / properties / observedCount / description
      Previous value: -"Number of Kp observations in the observed array, matching the requested window."New value: +"Entries in observed."
  2. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `feed_unavailable`: SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried before failing. `feed_moved`: SWPC feed path returns a permanent 4xx (404, 410, 401, 403). Fails in one attempt. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `feed_unavailable`: SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing. `feed_moved`: SWPC feed path returns a permanent 4xx (404, 410, 401, 403). Fails in one attempt. Other values are possible when a failure originates below the handler."
  3. Changed5 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `feed_unavailable`: SWPC endpoint returns non-OK status or times out after retries. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `feed_unavailable`: SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried before failing. `feed_moved`: SWPC feed path returns a permanent 4xx (404, 410, 401, 403). Fails in one attempt. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "feed_unavailable"
      -]New value: +[
      +  "feed_unavailable",
      +  "feed_moved"
      +]
    • changedOutput schema / properties / forecast / items / properties / gScale / description
      Previous value: -"NOAA G-scale equivalent (0–5) derived from Kp."New value: +"NOAA G-scale equivalent (0–5) derived from Kp, on the same minus-third band floors SWPC uses — it agrees with noaaScale when the feed states one."
    • changedOutput schema / properties / observed / items / properties / auroraLatitude / description
      Previous value: -"Aurora visibility guidance for this Kp level."New value: +"Aurora visibility guidance for this Kp level, in geomagnetic latitude."
    • changedOutput schema / properties / observed / items / properties / gScale / description
      Previous value: -"NOAA G-scale equivalent (0–5)."New value: +"NOAA G-scale equivalent (0–5). Each level starts at its \"minus\" third — G1 at Kp 4.67, G2 at 5.67, G3 at 6.67, G4 at 7.67 (through 8.67), G5 at 9."
  4. Changed2 schema fields changed
    • removedOutput schema / properties / forecast / items / properties / noaaScale / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / forecast / items / properties / noaaScale / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  5. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "observed",
      +      "forecast",
      +      "currentKp",
      +      "currentGScale",
      +      "auroraLatitude",
      +      "observedCount"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `feed_unavailable`: SWPC endpoint returns non-OK status or times out after retries. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "feed_unavailable"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "observed",
      -  "forecast",
      -  "currentKp",
      -  "currentGScale",
      -  "auroraLatitude",
      -  "observedCount"
      -]
  6. Changed6 schema fields changed
    • changedOutput schema / properties / forecast / description
      Previous value: -"3-day Kp forecast series."New value: +"Forward-looking Kp forecast series (estimated and predicted entries only; observed history excluded)."
    • changedOutput schema / properties / forecast / items / description
      Previous value: -"One Kp forecast interval."New value: +"One forward-looking Kp forecast interval (estimated or predicted)."
    • addedOutput schema / properties / forecast / items / properties / gLabel
      Added value: +{
      +  "description": "NOAA G-scale label, e.g. \"G0\", \"G3\".",
      +  "type": "string"
      +}
    • addedOutput schema / properties / forecast / items / properties / gScale
      Added value: +{
      +  "description": "NOAA G-scale equivalent (0–5) derived from Kp.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / forecast / items / properties / observed / description
      Previous value: -"\"observed\" for confirmed readings, \"predicted\" for forecast points."New value: +"\"estimated\" for near-real-time model points, \"predicted\" for forecast points."
    • changedOutput schema / properties / forecast / items / required
      Previous value: -[
      -  "timeTag",
      -  "kp",
      -  "observed",
      -  "noaaScale"
      -]New value: +[
      +  "timeTag",
      +  "kp",
      +  "observed",
      +  "noaaScale",
      +  "gScale",
      +  "gLabel"
      +]
  7. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark the tool as read-only/idempotent, and the description adds meaningful behavioral context beyond that: SWPC reports Kp in thirds, G-levels start at the 'minus' value, and specific examples show how Kp values map to G1/G3/G4/G5. This helps the agent interpret returned values correctly and does not contradict the annotations.

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?

The description is front-loaded with the core result, then provides essential interpretative context and ends with actionable routing guidance. Every sentence earns its place and no filler is present.

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?

Given the tool has one optional parameter, rich annotations, an output schema, and explicit sibling differentiation, the description covers everything needed for correct selection and invocation. It explains data granularity, forecast horizon, scale semantics, and when to choose an alternative.

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?

The single parameter, window_days, is already fully documented in the schema, including default, range, and purpose. Schema description coverage is 100%, so the tool description adds little parameter-level meaning beyond what the schema provides. A baseline score of 3 is appropriate.

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 explicitly states the resource (Planetary K-index) and the delivered content: recent observed 3-hour values, G-scale equivalents, aurora-latitude guidance, and the 3-day forecast series. It also names the sibling tool noaa_spaceweather_get_conditions and clarifies how this tool differs, so an agent can distinguish it from alternatives.

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?

The description gives an explicit routing rule: use noaa_spaceweather_get_conditions for a combined snapshot including storm scales, and use this tool when the Kp time series or forecast detail is needed. This is clear when-to-use and when-not-to-use guidance with a named alternative.

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.