Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_ncs_copy_object

Copy an object within Ncloud Storage and optionally change its storage class. Copy an object onto itself with a new class to change an existing object's class.

Instructions

[Ncloud Storage] Copy an object within Ncloud Storage (PUT /{key} with x-amz-copy-source). Optionally change the storage class (STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class) — copying an object onto itself with a new class is how an existing object's class is changed. Source objects up to 5 GB; larger ones need ncloud_ncs_upload_part_copy. A DEEP_ARCHIVE source must be restored 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": {
      "bucketName": "<bucketName>",
      "key": "<key>",
      "copySource": "<copySource>"
    },
    "name": "ncloud_ncs_copy_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesDestination object key (path)
ifMatchNoIf-Match — write only if the current object's ETag equals this value (quotes optional). '*' is not supported. Cannot be combined with ifNoneMatch. Fails with 412 PreconditionFailed otherwise
bucketNameYesDestination bucket name
copySourceYesSource object as {sourceBucket}/{sourceKey} (a leading slash is tolerated)
contentTypeNoContent-Type for the copy (applied with metadataDirective=REPLACE)
ifNoneMatchNoIf-None-Match — only '*': write only if no object with this key exists (create-only). Cannot be combined with ifMatch. Fails with 412 PreconditionFailed if the key exists
storageClassNox-amz-storage-class for the copy — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Omit to use STANDARD
objectLockModeNox-amz-object-lock-mode for the copy
copySourceIfMatchNox-amz-copy-source-if-match — copy only if the source ETag equals this value
metadataDirectiveNoCOPY (default) keeps the source metadata; REPLACE uses the headers given in this request (contentType)
copySourceVersionIdNoVersion ID of the source object to copy (versioning-enabled buckets)
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)
objectLockLegalHoldNox-amz-object-lock-legal-hold for the copy — ON | OFF
serverSideEncryptionNox-amz-server-side-encryption for the copy — AES256 | aws:kms
copySourceIfNoneMatchNox-amz-copy-source-if-none-match — copy only if the source ETag differs from this value
copySourceIfModifiedSinceNox-amz-copy-source-if-modified-since — date of the source object (ISO 8601 or HTTP-date; sent as HTTP-date)
objectLockRetainUntilDateNox-amz-object-lock-retain-until-date for the copy, ISO 8601
sourceExpectedBucketOwnerNox-amz-source-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)
copySourceIfUnmodifiedSinceNox-amz-copy-source-if-unmodified-since — date of the source object (ISO 8601 or HTTP-date; sent as HTTP-date)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.1.0
    • addedInput schema / properties / copySourceIfMatch
      Added value: +{
      +  "description": "x-amz-copy-source-if-match — copy only if the source ETag equals this value",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / copySourceIfModifiedSince
      Added value: +{
      +  "description": "x-amz-copy-source-if-modified-since — date of the source object (ISO 8601 or HTTP-date; sent as HTTP-date)",
      +  "type": "string"
      +}
    • addedInput schema / properties / copySourceIfNoneMatch
      Added value: +{
      +  "description": "x-amz-copy-source-if-none-match — copy only if the source ETag differs from this value",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / copySourceIfUnmodifiedSince
      Added value: +{
      +  "description": "x-amz-copy-source-if-unmodified-since — date of the source object (ISO 8601 or HTTP-date; sent as HTTP-date)",
      +  "type": "string"
      +}
    • 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 — write only if the current object's ETag equals this value (quotes optional). '*' is not supported. Cannot be combined with ifNoneMatch. Fails with 412 PreconditionFailed otherwise",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / ifNoneMatch
      Added value: +{
      +  "const": "*",
      +  "description": "If-None-Match — only '*': write only if no object with this key exists (create-only). Cannot be combined with ifMatch. Fails with 412 PreconditionFailed if the key exists",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceExpectedBucketOwner
      Added value: +{
      +  "description": "x-amz-source-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"
      +}
  2. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed9 schema fields changedv1.15.0
    • addedInput schema / properties / contentType
      Added value: +{
      +  "description": "Content-Type for the copy (applied with metadataDirective=REPLACE)",
      +  "type": "string"
      +}
    • changedInput schema / properties / copySource / description
      Previous value: -"Source object path in format: /{sourceBucket}/{sourceKey}"New value: +"Source object as {sourceBucket}/{sourceKey} (a leading slash is tolerated)"
    • addedInput schema / properties / copySourceVersionId
      Added value: +{
      +  "description": "Version ID of the source object to copy (versioning-enabled buckets)",
      +  "type": "string"
      +}
    • addedInput schema / properties / metadataDirective
      Added value: +{
      +  "description": "COPY (default) keeps the source metadata; REPLACE uses the headers given in this request (contentType)",
      +  "enum": [
      +    "COPY",
      +    "REPLACE"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / objectLockLegalHold
      Added value: +{
      +  "description": "x-amz-object-lock-legal-hold for the copy — ON | OFF",
      +  "enum": [
      +    "ON",
      +    "OFF"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / objectLockMode
      Added value: +{
      +  "description": "x-amz-object-lock-mode for the copy",
      +  "enum": [
      +    "GOVERNANCE",
      +    "COMPLIANCE"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / objectLockRetainUntilDate
      Added value: +{
      +  "description": "x-amz-object-lock-retain-until-date for the copy, ISO 8601",
      +  "type": "string"
      +}
    • addedInput schema / properties / serverSideEncryption
      Added value: +{
      +  "description": "x-amz-server-side-encryption for the copy — AES256 | aws:kms",
      +  "enum": [
      +    "AES256",
      +    "aws:kms"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / storageClass / description
      Previous value: -"Storage class for the copy — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Sent as the x-amz-storage-class header; omit to use STANDARD. Copying an object onto itself with a different class is the way to change an existing object's storage class"New value: +"x-amz-storage-class for the copy — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Omit to use STANDARD"
  4. Changed1 schema field changedv1.11.0
    • addedInput schema / properties / storageClass
      Added value: +{
      +  "description": "Storage class for the copy — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Sent as the x-amz-storage-class header; omit to use STANDARD. Copying an object onto itself with a different class is the way to change an existing object's storage class",
      +  "enum": [
      +    "STANDARD",
      +    "ONEZONE_IA",
      +    "DEEP_ARCHIVE"
      +  ],
      +  "type": "string"
      +}
  5. First observedv1.10.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does add real behavioral context: the 5 GB source limit, the DEEP_ARCHIVE restore prerequisite, and the copy-onto-itself class-change mechanic. It omits important write semantics — whether an existing destination is overwritten, permission requirements, and what a successful copy returns — which matters for an unannotated mutation tool.

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 and information-dense: the core operation, the class-change trick, the size limit, and the restore prerequisite each appear in one tight sentence. The inline storage-class enumeration largely duplicates the schema's enum descriptions, which is the main redundancy.

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

Completeness3/5

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

For a 19-parameter, unannotated mutation tool with no output schema, the description covers the headline constraints but leaves gaps around overwrite behavior, auth/permission requirements, and result format. It is adequate to attempt a call, but not complete enough to predict side effects confidently.

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 all 19 parameters including the enum meanings. The description restates the storage class options but adds no syntax or interaction detail beyond what the schema fields already say, 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?

Opens with a specific verb+resource ('Copy an object within Ncloud Storage') and pins it to the underlying API (PUT /{key} with x-amz-copy-source). It also carves out a non-obvious use case — self-copy to change an object's storage class — so an agent can recognize the tool's dual role 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?

Gives clear routing conditions: objects over 5 GB must go to ncloud_ncs_upload_part_copy, and a DEEP_ARCHIVE source must be restored first. It stops short of stating when NOT to copy (e.g. overwrite of an existing destination, or alternatives like put_object/managed copy tools), so it is strong but not exhaustive.

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