Skip to main content
Glama

Read restorable PITR intervals

pitr_window_get
Read-onlyIdempotent

Retrieve engine-verified restorable point-in-time recovery intervals for a cluster, including optional anchoring full-backup names, to identify valid restore windows.

Instructions

Read restorable PITR intervals

Returns every engine-verified restorable range in intervals, with optional anchoring full-backup names; legacy start/end retain the latest-ending merged interval. An initializing cluster with no ready replica set or no configured backup storage returns 409 invalid_state with PITR prerequisite guidance instead of an internal error. Established coverage remains queryable during scaling, upgrades, resource changes, joins and reloads; live agent/storage failures can still affect availability. Engines without PITR return 400 invalid_request with reason unsupported and a message naming the engine capability.

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": {
      "cluster": "<cluster>"
    },
    "name": "pitr_window_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.

Output Schema

NameRequiredDescriptionDefault
endNo
startNo
messageNo
availableYes
intervalsNoAll engine-verified restorable intervals, sorted by start, end, then backup name. Intervals anchored by different full backups are not merged. Omitted or empty when unavailable.
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "PITRInterval_depth15": {
      +      "additionalProperties": false,
      +      "description": "A continuous engine-verified restorable interval, optionally attributed to its anchoring full backup.",
      +      "properties": {
      +        "backup": {
      +          "description": "Name of the full backup anchoring this interval; omitted when provenance is unavailable.",
      +          "type": "string"
      +        },
      +        "end": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "start": {
      +          "format": "date-time",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "description": "Legacy start/end describe the latest-ending continuous interval; intervals lists every restorable range.",
      +  "properties": {
      +    "available": {
      +      "type": "boolean"
      +    },
      +    "end": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "intervals": {
      +      "description": "All engine-verified restorable intervals, sorted by start, end, then backup name. Intervals anchored by different full backups are not merged. Omitted or empty when unavailable.",
      +      "items": {
      +        "$ref": "#/$defs/PITRInterval_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "start": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "available"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly=true, idempotent=true, destructive=false, so the safety profile is covered; the description adds real value beyond that with concrete error contracts (409 invalid_state with prerequisite guidance rather than an internal error, 400 invalid_request with reason=unsupported naming the engine capability). It also discloses availability behavior — results stay queryable during scaling, upgrades, resource changes, joins and reloads, while live agent or storage failures can still affect availability — which is exactly the kind of operational caveat annotations cannot convey. The only gap is that 'legacy start/end retain the latest-ending merged interval' is stated without explaining how the two representations relate or which to prefer.

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?

The purpose and the interval-return structure are front-loaded, and each subsequent sentence carries distinct information: return shape, initializing-cluster behavior, availability caveats, unsupported-engine behavior. It is dense and jargon-heavy ("anchoring full-backup names," "latest-ending merged interval") but not padded; a little trimming would help readability without losing content.

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 two-parameter read tool with a full output schema, this is close to complete: the description covers return semantics, both error paths, and availability under cluster operations, and need not explain return values since an output schema exists. What is missing is any guidance on parameter use or on relating this tool to adjacent backup/policy reads, which the schema can only partly substitute for.

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%, and both parameters (cluster, namespace) carry detailed schema-level documentation including pattern constraints and namespace defaulting/visibility rules, so the schema does the heavy lifting. The description adds nothing about either parameter — no note that namespace defaults or that collection versus object semantics differ — so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — reading engine-verified restorable PITR ranges — and elaborates that it returns every interval with optional anchoring full-backup names plus legacy start/end fields. That is far more specific than the title, though it never contrasts itself against nearby reads such as backup_get or control_plane_backup_policy_get, so an agent must infer the boundary from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the tool for asking what can be restored to which point in time. Two failure modes are given useful routing context (initializing clusters get 409 invalid_state with prerequisite guidance; engines without PITR get 400 invalid_request with reason unsupported), which tells the caller when the tool is inapplicable. But there is no explicit when-to-use versus a sibling, no prerequisite framing for successful calls, and no guidance on whether cluster or namespace scoping changes the answer.

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

Deploy Server

Other Tools