Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_ncs_delete_object

DestructiveIdempotent

Permanently delete an object or specific version from a Ncloud Storage bucket, including governance-locked objects. On versioned buckets, omitting versionId only adds a delete marker, so versions remain and keep billing.

Instructions

[Ncloud Storage] ⚠️ Destructive: Delete an object from a Ncloud Storage bucket (DELETE /{key}). In a versioning-enabled bucket, omitting versionId only adds a delete marker (the versions stay and keep billing); pass versionId to permanently remove one version. bypassGovernanceRetention=true is needed for objects under GOVERNANCE retention. Set confirm=true to execute.

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": {
      "bucketName": "<bucketName>",
      "key": "<key>"
    },
    "name": "ncloud_ncs_delete_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesObject key (path) to delete
confirmNoMust be true to actually execute the destructive operation
ifMatchNoIf-Match — delete only if the current ETag equals this value, or '*' to delete only if the object exists. Cannot be used with versionId. Fails with 412 PreconditionFailed otherwise
versionIdNoVersion ID to delete permanently. Omit to delete the current version (adds a delete marker on versioned buckets)
bucketNameYesName of the Ncloud Storage bucket
expectedBucketOwnerNox-amz-expected-bucket-owner — expected owner account number of the bucket: the account number inside any resource NRN (nrn:PUB:<service>:<region>:<accountNo>:…, e.g. from ncloud_resource_list_resources). The 36-char owner ID from ncloud_ncs_list_buckets is rejected as InvalidBucketOwnerAWSAccountID. A different owner is rejected with AccessDenied (403)
bypassGovernanceRetentionNoSend x-amz-bypass-governance-retention: true to delete an object locked in GOVERNANCE mode (requires the bypass permission)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.1.0
    • addedInput schema / properties / expectedBucketOwner
      Added value: +{
      +  "description": "x-amz-expected-bucket-owner — expected owner account number of the bucket: the account number inside any resource NRN (nrn:PUB:<service>:<region>:<accountNo>:…, e.g. from ncloud_resource_list_resources). The 36-char owner ID from ncloud_ncs_list_buckets is rejected as InvalidBucketOwnerAWSAccountID. A different owner is rejected with AccessDenied (403)",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / ifMatch
      Added value: +{
      +  "description": "If-Match — delete only if the current ETag equals this value, or '*' to delete only if the object exists. Cannot be used with versionId. Fails with 412 PreconditionFailed otherwise",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed3 schema fields changedv1.15.0
    • changedInput schema / properties / bucketName / description
      Previous value: -"Name of the bucket"New value: +"Name of the Ncloud Storage bucket"
    • addedInput schema / properties / bypassGovernanceRetention
      Added value: +{
      +  "default": false,
      +  "description": "Send x-amz-bypass-governance-retention: true to delete an object locked in GOVERNANCE mode (requires the bypass permission)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / versionId
      Added value: +{
      +  "description": "Version ID to delete permanently. Omit to delete the current version (adds a delete marker on versioned buckets)",
      +  "type": "string"
      +}
  4. First observedv1.10.1

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations by explaining the non-obvious consequence that omitting versionId on a versioning-enabled bucket keeps the versions and keeps billing, and by naming the permission needed for GOVERNANCE bypass. These are exactly the traps an agent would otherwise fall into.

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?

Leads with the destructive warning and the operation signature, then packs versioning semantics, retention bypass, and the confirm gate into three sentences with no filler. Every sentence changes how the call would be made.

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 destructive 7-parameter mutation tool it covers the critical hazards: the confirm gate, versioning/billing side effects, and governance retention. It leaves the ifMatch precondition and expectedBucketOwner ownership check to the schema, which is acceptable given 100% schema coverage and no output schema.

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 versionId, confirm, and bypassGovernanceRetention are already fully documented in the schema. The description restates that same semantics rather than adding new meaning, and says nothing about ifMatch or expectedBucketOwner. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Delete an object from a Ncloud Storage bucket') plus the underlying DELETE /{key} operation, which is unambiguous. It does not distinguish itself from the sibling batch tool ncloud_ncs_delete_objects, so an agent must infer single-vs-multiple 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 Guidelines4/5

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

Gives clear conditional guidance: omit versionId on a versioned bucket to add a delete marker, pass versionId to remove a version permanently, use bypassGovernanceRetention=true for GOVERNANCE-locked objects, and set confirm=true to execute. Missing is routing guidance toward ncloud_ncs_delete_objects for bulk deletion or restore_object for undoing a marker.

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