Skip to main content
Glama
WebCenter Content MCP Server

WebCenter Content MCP Server

by JohnRSim

wcc_doc_download

Read-onlyIdempotent

Downloads a WebCenter Content document binary to a local file using a document name or revision ID, streams it directly to disk, and returns SHA-256 and byte count for verification.

Instructions

Download a document binary from WebCenter Content to a local file.

Streams the response directly to disk — large documents do not buffer in memory.

Filesystem access is governed by the server's path policy. In stdio / Electron modes the path must resolve inside one of the filesystem roots the MCP client advertised (or the Electron app's user-data directory). In hosted mode this tool is disabled — call wcc_doc_get instead and consume the metadata directly.

Existing files at the target path are overwritten silently. Returns sha256 + bytesWritten so the caller can verify the download.

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": {
      "ref": "<ref>",
      "outputPath": "<outputPath>"
    },
    "name": "wcc_doc_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesHow to identify the target document. Supply EITHER {dDocName: "..."} OR {dID: "..."}. Use dDocName when you have the public document name; use dID when you have an internal revision ID.
renditionNoOptional WCC rendition selector (e.g. "primary", "web-viewable", "thumbnail"). When omitted, WCC returns the document's default primary rendition.
outputPathYesLocal filesystem path to write the document binary to. Must resolve under a filesystem root the server is permitted to access. The parent directory must exist. Existing files are overwritten.

Output Schema

NameRequiredDescriptionDefault
dIDYes
sha256Yes
dDocNameYes
outputPathYes
contentTypeYes
bytesWrittenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.8/5.0
Behavior1/5

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

The description discloses useful behavior such as streaming to disk, hosted-mode disablement, and silent overwrite of existing files. However, it contradicts the annotations: readOnlyHint=true and destructiveHint=false, while the tool writes to the local filesystem and overwrites existing files silently. Per the rubric, a description that contradicts annotations scores 1 here.

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?

The description is front-loaded with purpose, then follows with streaming behavior, filesystem policy, hosted-mode fallback, overwrite warning, and verification outputs. Some details repeat the schema or output schema, such as existing-file overwrite and return fields, but the structure remains efficient.

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

Completeness5/5

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

Given the tool's complexity, the description covers the important operational context: streaming to disk, filesystem-root restrictions, hosted-mode disablement, silent overwrite behavior, and verification fields. With an output schema present, it is complete enough for an agent to invoke the tool correctly.

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 the input schema already explains ref, rendition, and outputPath in detail. The description adds path-policy context for outputPath but does not add much meaning beyond the schema for ref or rendition, so the baseline 3 is appropriate.

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?

The description states a specific verb, resource, and destination: download a document binary from WebCenter Content to a local file. It also distinguishes this tool from the sibling wcc_doc_get by naming the hosted-mode fallback.

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

Usage Guidelines5/5

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

It explicitly says hosted mode disables this tool and directs the caller to wcc_doc_get instead. It also gives concrete path-policy conditions for stdio/Electron modes and states that outputPath must resolve under permitted filesystem roots.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.