Skip to main content
Glama

删除资源

cloudclass_delete_resource
Destructive

Permanently deletes a courseware resource and its files after explicit confirmation; require confirm=true to prevent irreversible removal.

Instructions

Permanently delete a resource and its files. Only call after the user explicitly confirms; confirm must be true.

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>",
      "confirm": "<confirm>"
    },
    "name": "cloudclass_delete_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYes必须显式设为 true 才会删除,无法恢复
resource_idYes资源 ID,例如 r_xxx

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and openWorldHint=true. The description adds useful context beyond those annotations: deletion is permanent, associated files are removed, and explicit user confirmation is required. It does not cover permissions, failure behavior, or any cascading effects beyond files.

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?

The description is two sentences, front-loads the destructive action, and immediately follows with the confirmation requirement. Every phrase carries useful meaning with no redundant wording.

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?

For a simple two-parameter destructive tool, the annotations and schema already cover safety characteristics and parameter details. The description completes the picture by stating that deletion is permanent, removes files, and requires explicit user confirmation; no output schema exists, so return-value details are not required.

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 schema already documents both parameters, including confirm being a const true and resource_id having a minimum length and example format. The description only restates the confirm=true requirement, adding no new parameter meaning beyond the schema.

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 and resource: "Permanently delete a resource and its files." This clearly distinguishes the tool from the create, get, update, list, and upload siblings by its destructive, permanent scope.

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?

The description gives a clear precondition: "Only call after the user explicitly confirms; confirm must be true." It lacks explicit when-not guidance or named alternatives such as using update_resource instead, 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.