Skip to main content
Glama

gaussdb__ShowAuditLog

Checks whether full SQL audit logging is enabled for a specified GaussDB instance using its project ID and instance ID.

Instructions

[GAUSSDB] 查询全量SQL开关状态。

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "gaussdb__ShowAuditLog"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes租户在某一region下的project ID。
instance_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description has the full burden of disclosure. It implies a read but says nothing about required permissions, region scoping, what the returned switch status looks like, or whether this reads instance-level or tenant-level configuration. For a zero-annotation tool this is a notable 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?

It is one short, front-loaded sentence with no filler or redundancy. Brevity is achieved, but the tight size leaves no room for routing or behavioral detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (two fully documented path parameters, no output schema), but with no annotations at all the description must carry the safety and behavior story, and it does not. It also leaves unresolved the mismatch between the ShowAuditLog name and the 'full-SQL switch status' it claims to return.

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 project_id and instance_id are documented in the schema with examples, so the baseline is 3. The description adds no further meaning: it does not say whether instance_id is mandatory for the switch query, or how project_id scopes the request.

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

Purpose3/5

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

The description states a specific action and object (query the full-SQL switch status), which is better than a tautology. However, it does not match the tool name ShowAuditLog well: an agent looking for audit-log content may not realize this only returns an on/off switch state. There is also no differentiation from sibling tools such as gaussdb__UpdateAuditLog or gaussdb__ListAuditLogDownloadLink.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: no prerequisites, no mention of the toggle counterpart, and no exclusion of similar log-related siblings such as ListAuditLogDownloadLink or ShowSlowLogStatistics. The agent must infer usage from the name alone.

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