Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_nks_set_audit_log

Idempotent

Configures NKS control plane audit and authentication log collection via Cloud Log Analytics (CLA), enabling or disabling each log type; enabling audit requires an active CLA subscription.

Instructions

Configure Control Plane log collection via Cloud Log Analytics (CLA) for an NKS cluster: audit (Kubernetes audit log) and/or authn (authentication log). Give at least one; an omitted field keeps its current setting. authn=true requires authType=API and Kubernetes 1.26+. Since 2026-09-17 enabling audit is rejected with 400 unless the account has an active CLA subscription — subscribe to Cloud Log Analytics first.

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": {
      "clusterUuid": "<clusterUuid>"
    },
    "name": "ncloud_nks_set_audit_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
auditNoKubernetes audit log (true/false). Omit to keep the current setting
authnNoControl Plane authentication log (true/false). true is only allowed when authType=API and Kubernetes version is 1.26 or later. Omit to keep the current setting
clusterUuidYesUUID of the cluster

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.1.0
    • changedInput schema / properties / audit / description
      Previous value: -"Whether to enable audit log collection (true/false)"New value: +"Kubernetes audit log (true/false). Omit to keep the current setting"
    • addedInput schema / properties / authn
      Added value: +{
      +  "description": "Control Plane authentication log (true/false). true is only allowed when authType=API and Kubernetes version is 1.26 or later. Omit to keep the current setting",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "clusterUuid",
      -  "audit"
      -]New value: +[
      +  "clusterUuid"
      +]
  2. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv1.10.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the supplied idempotentHint/destructiveHint annotations: it discloses partial-update semantics ('an omitted field keeps its current setting'), version and auth-type gates on authn, and a specific failure mode (400 rejection since 2026-09-17 without a CLA subscription). These are exactly the behavioral facts an agent needs before invoking a mutation.

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 dense sentences, front-loaded with the operation and its two targets, then the selection rule, then the preconditions and error condition. No filler; each sentence carries distinct information.

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?

For a three-parameter mutation tool with annotations and no output schema, the description covers purpose, partial-update semantics, cross-field prerequisites, and the subscription failure condition. Nothing an agent needs to call it 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%, so the schema already documents audit, authn, and clusterUuid including the omit-to-keep behavior. The description adds one constraint not encoded in the schema — that at least one of the two flags must be supplied — but otherwise largely restates the parameter docs, so the baseline 3 applies.

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 ('Configure') plus the exact resource (Control Plane log collection via Cloud Log Analytics for an NKS cluster) and enumerates the two log types it governs (audit, authn). This is clearly distinguishable from sibling log tools such as server log collection or log export.

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

Usage Guidelines4/5

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

Gives a concrete selection rule ('Give at least one') plus the preconditions that gate usage: authn=true requires authType=API and Kubernetes 1.26+, and audit=true now requires an active CLA subscription. It does not name a sibling tool or state when to prefer an alternative, so it stops short of a 5.

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