Skip to main content
Glama

Get KubeOrbit Portal Audit Logs

get_audit_logs
Read-onlyIdempotent

Fetch KubeOrbit portal-level audit logs to identify who made privileged administrative changes, filtered by cluster if needed.

Instructions

Fetch KubeOrbit's portal-level audit log of privileged administrative or operator actions.

Returns count and items (timestamp, user, action such as ONBOARD_CLUSTER/UPDATE_CLUSTER/DELETE_CLUSTER/ROLLBACK_WORKLOAD, cluster_id, namespace, resource, and details), capped by limit (1-500, default 50). Pass cluster_id to filter to one cluster, or omit cluster_id (null) for portal-wide audit entries.

Use to review who performed privileged changes through the KubeOrbit portal. Prefer get_events or get_extended_events for Kubernetes cluster runtime events, and get_pod_logs for container application logs.

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_audit_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of portal audit log entries to return, ordered newest-first (1-500, default 50).
cluster_idNoOptional cluster identifier (from `list_teams_and_clusters`) to filter audit entries to one cluster. Omit or pass null to return portal-wide audit logs across all clusters.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of audit log entries returned.
itemsNoPortal audit trail entries ordered newest-first with timestamp, user, action, cluster_id, namespace, resource, and details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • changedInput schema / properties / cluster_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 63,
      +    "minLength": 1,
      +    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / cluster_id / description
      Added value: +"Optional cluster identifier (from `list_teams_and_clusters`) to filter audit entries to one cluster. Omit or pass null to return portal-wide audit logs across all clusters."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of portal audit log entries to return, ordered newest-first (1-500, default 50)."
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "count": {
      +      "default": 0,
      +      "description": "Number of audit log entries returned.",
      +      "title": "Count",
      +      "type": "integer"
      +    },
      +    "items": {
      +      "description": "Portal audit trail entries ordered newest-first with timestamp, user, action, cluster_id, namespace, resource, and details.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Items",
      +      "type": "array"
      +    }
      +  },
      +  "title": "AuditLogsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the newest-first ordering, the 1-500 cap with default 50, and the fact that omitting cluster_id widens scope to portal-wide. It stops short of noting pagination/truncation consequences when results exceed the cap, which is the only meaningful remaining gap.

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?

Front-loaded with purpose, then return shape, then routing guidance in a clean three-part structure. Every sentence is functional, though the limit/range details are duplicated verbatim from the schema and could be trimmed without loss.

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?

With an output schema present, the description need not detail returns, yet it still sketches count/items and key fields for orientation. Annotations cover safety, schema coverage is complete, and the sibling routing is explicit — nothing an agent needs in order to call this correctly is missing.

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 are already fully documented in the schema, including the 1-500 range, default 50, and the null/omit semantics for cluster_id. The description restates these without adding new syntax or constraints, so the baseline of 3 applies; the action-type examples add modest value but do not map to a parameter.

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 first sentence names a specific verb (Fetch) and a precisely scoped resource: KubeOrbit's portal-level audit log of privileged administrative/operator actions. The 'portal-level' qualifier immediately distinguishes it from cluster runtime telemetry tools, and the enumerated action types (ONBOARD_CLUSTER, ROLLBACK_WORKLOAD) make the resource concrete rather than abstract.

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 final paragraph states the positive use case ('review who performed privileged changes through the KubeOrbit portal') and explicitly routes the agent away to get_events/get_extended_events for Kubernetes runtime events and get_pod_logs for container logs. Both the when and the when-not are present with named alternatives.

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