Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_export_postgresql_log

Read-only

Export a PostgreSQL server log file from Naver Cloud to Object Storage by specifying the server instance, file name, and bucket; list available logs first to choose a valid file.

Instructions

Export a Cloud DB for PostgreSQL server log file to Object Storage. Use ncloud_list_postgresql_logs to get available log files.

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": {
      "cloudPostgresqlServerInstanceNo": "<cloudPostgresqlServerInstanceNo>",
      "fileName": "<fileName>",
      "bucketName": "<bucketName>"
    },
    "name": "ncloud_export_postgresql_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logTypeNoLog type (only POSTGRESQL_LOG is supported)POSTGRESQL_LOG
fileNameYesLog file name to export (from ncloud_list_postgresql_logs)
bucketNameYesObject Storage bucket name to export to
folderPathNoFolder path within the bucket (e.g. 'postgresql-logs/error'). If omitted, exports to bucket root.
regionCodeNoRegion code (default: current region)
cloudPostgresqlServerInstanceNoYesCloud PostgreSQL server instance number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed4 schema fields changedv2.2.0
    • addedInput schema / properties / logType / default
      Added value: +"POSTGRESQL_LOG"
    • changedInput schema / properties / logType / description
      Previous value: -"Log type to export (e.g. ERROR, SLOW, etc.)"New value: +"Log type (only POSTGRESQL_LOG is supported)"
    • addedInput schema / properties / logType / enum
      Added value: +[
      +  "POSTGRESQL_LOG"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "cloudPostgresqlServerInstanceNo",
      -  "logType",
      -  "fileName",
      -  "bucketName"
      -]New value: +[
      +  "cloudPostgresqlServerInstanceNo",
      +  "fileName",
      +  "bucketName"
      +]
  3. First observedv1.10.1

TDQS

A4/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a non-destructive operation, and the description adds the essential behavior that the output lands in an Object Storage bucket at a given folder path. It does not say whether an existing object with the same name is overwritten, whether the export is synchronous or asynchronous, what permissions are required, or how large logs are handled.

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?

Two short sentences, front-loaded with the action and destination, and the prerequisite follows immediately. Nothing is padded or repeated from the schema.

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 6-parameter export tool with full schema coverage and no output schema, the description covers purpose, destination, and the prerequisite step. The main residual gap is outcome description (what is returned or where the result confirms success), which is minor given the schema's folderPath documentation.

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 every parameter is already documented, including the logType enum and the folderPath fallback to bucket root. The description only adds the provenance hint for fileName (it comes from the list tool), which is marginal value over the schema — 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?

"Export a Cloud DB for PostgreSQL server log file to Object Storage" gives a concrete verb (export), resource (PostgreSQL server log file), and destination (Object Storage), which separates it from read-only listing tools like ncloud_list_postgresql_logs and from the backup-export sibling. An agent can identify the operation without opening the schema.

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?

The second sentence gives actionable routing guidance: obtain the file name first via ncloud_list_postgresql_logs, which is reinforced by the fileName parameter note. It lacks explicit when-not guidance (e.g., when to choose a backup export or a log query instead), but the intended workflow is unambiguous.

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