Low Risk

queryStorage

查询 CloudBase 云存储信息,支持列出目录文件、获取文件信息、获取临时下载链接等只读操作。返回的文件信息包括文件名、大小、修改时间、下载链接等。注意:action=url 返回的 temporaryUrl 是临时签名链接,有效期由 maxAge 参数决定(默认1小时),不要当作永久公网地址使用。工具还会基于 DescribeEnvs 返回的 Storages[0].CdnDomain 推导出 publicUrl,⚠️ 警告:publicUrl 仅在存储桶 ACL 为公有读(所有用户可读)时才能被匿名访问;默认私有读写存储桶返回的 publicUrl 会 403,此时请继续使用 t...

How to control queryStorage ↓

AI agents call queryStorage to retrieve information from CloudBase MCP without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Low Risk

queryStorage performs only read operations on cloud storage metadata and files. It retrieves information (file names, sizes, timestamps, links) without creating, modifying, or deleting any data. The tool cannot make destructive changes or cause financial impact. Generating temporary URLs for downloads is a read operation. Low severity because misuse would only expose data visibility, not storage integrity.

From the tool's definition Tool description explicitly states '只读操作' (read-only operations) and lists only query functions: 'listing directory files, getting file information, getting temporary download links'.

Documented attack patterns abuse exactly the kind of access queryStorage gives an agent:

PolicyLayer is an MCP gateway — it sits between your AI agents and CloudBase MCP, and nothing reaches the server without passing your rules. This is the rule we recommend for queryStorage:

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "queryStorage": {}
  }
}

queryStorage is read-only, so it stays allowed — but everything else on the server is denied unless you say otherwise.

  1. Create a free account and register CloudBase MCP — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
CAP THIS TOOL →

Free to start. No card required.

More CloudBase MCP tools

All 8 CloudBase MCP tools →

Go deeper

What does the queryStorage tool do? +

查询 CloudBase 云存储信息,支持列出目录文件、获取文件信息、获取临时下载链接等只读操作。返回的文件信息包括文件名、大小、修改时间、下载链接等。注意:action=url 返回的 temporaryUrl 是临时签名链接,有效期由 maxAge 参数决定(默认1小时),不要当作永久公网地址使用。工具还会基于 DescribeEnvs 返回的 Storages[0].CdnDomain 推导出 publicUrl,⚠️ 警告:publicUrl 仅在存储桶 ACL 为公有读(所有用户可读)时才能被匿名访问;默认私有读写存储桶返回的 publicUrl 会 403,此时请继续使用 temporaryUrl 或先通过控制台/SDK 将目标路径设置为公有读。\n\n💡 存储桶 ACL 权限管理请使用 permissions 工具:queryPermissions(action=\. It is categorised as a Read tool in the CloudBase MCP MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on queryStorage? +

Register the CloudBase MCP server in PolicyLayer and add a rule for queryStorage: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches CloudBase MCP. Nothing to install.

What risk level is queryStorage? +

queryStorage is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit queryStorage? +

Yes. Add a rate_limit block to the queryStorage rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block queryStorage completely? +

Set action: deny in the PolicyLayer policy for queryStorage. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides queryStorage? +

queryStorage is provided by the CloudBase MCP server (tencentcloudbase/cloudbase-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every CloudBase MCP tool call.

Deterministic rules across all 8 CloudBase MCP tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Free to start. No card required.

8 CloudBase MCP tools catalogued and risk-classified — across an index of 42,500+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.