Skip to main content
Glama

ucloud_resource_url

Read-only

Retrieve an HTTPS preview URL for a specified resource by resource ID. Use it to open or share resource files, noting that the generated link may expire.

Instructions

取得指定资源的 HTTPS 预览地址,链接可能过期。 状态:implemented。

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": {
      "resource_id": "<resource_id>"
    },
    "name": "ucloud_resource_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
resource_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description does add one genuinely useful behavioral fact — that the link may expire — which warns the agent against caching or reusing URLs. It omits any note on permissions, resource-type coverage, or whether URL issuance is logged or rate-limited.

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 functional sentence is short and front-loaded with the useful expiry caveat. The trailing '状态:implemented' is implementation metadata that does not help an agent decide or invoke, so it is minor waste.

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?

An output schema exists, so return-value explanation is not required, and the tool is low-complexity with one required argument. However, an agent still lacks the resource-id format and the conditions under which the URL fails or expires, which matters for a link-issuing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter has 0% schema description coverage, so the description must carry the meaning of resource_id. It only says '指定资源' (the specified resource), adding no format, source, or discovery hint (e.g., where resource ids come from or whether they come from ucloud_resources).

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 result: retrieve the HTTPS preview URL for a designated resource. 'Preview URL' implicitly distinguishes it from a download or listing tool, but no sibling is named and the resource domain (courses? files?) is left unspecified.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all. An agent cannot tell from this text whether to call ucloud_resource_url versus ucloud_download or ucloud_resources, nor what preconditions (valid resource_id, ownership, enrollment) apply.

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