Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_ncs_head_object

Read-only

Retrieve an object's metadata—size, type, ETag, storage class, version ID, restore status, and Object Lock retention—without downloading the file, and confirm existence with exists=false instead of an error.

Instructions

[Ncloud Storage] Get an object's metadata without downloading it (HEAD /{key}): size, type, ETag, storage class, version ID, restore status and Object Lock retention / legal hold. Returns exists=false on 404 (object missing, or its current version is a delete marker on a versioned bucket) instead of an error.

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_head_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesObject key (path) to check
versionIdNoVersion ID of the object (versioning-enabled buckets). Omit for the current version
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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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"
      +}
  2. Changed1 schema field changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed2 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 / versionId
      Added value: +{
      +  "description": "Version ID of the object (versioning-enabled buckets). Omit for the current version",
      +  "type": "string"
      +}
  4. First observedv1.10.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered, and the description adds genuinely non-obvious behavior: a 404 yields exists=false rather than an error, including the delete-marker case on versioned buckets. That error-semantics disclosure is exactly the kind of context annotations cannot carry; what is missing is any note on permissions or headers required.

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 sentences, zero filler, and the core purpose plus the HEAD endpoint are front-loaded ahead of the 404 caveat. The returned-field list doubles as a payload preview rather than padding.

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?

With no output schema, the description does the work of listing the returned metadata fields and flagging the exists=false case, which is enough to call and interpret the result. Minor gaps remain around whether the listed Object Lock fields are always present or conditional on bucket configuration.

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 all four parameters (including the tricky expectedBucketOwner account-number format) are already fully documented. The description adds only a faint hint that versionId selects the current version via the delete-marker remark, so the baseline 3 applies.

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?

The description states a specific verb and resource ('Get an object's metadata') and enumerates what is returned (size, type, ETag, storage class, version ID, restore status, Object Lock retention/legal hold). The phrase 'without downloading it' implicitly separates it from ncloud_ncs_get_object, though the very similar ncloud_ncs_get_object_attributes sibling is never addressed.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'without downloading it' signals the metadata-only case, but there is no explicit when-to-use/when-not guidance and no named alternative. An agent must still infer whether get_object_attributes or the legal-hold/retention getters are the better choice for a given question.

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