Skip to main content
Glama
litMcp

litMcp

by L1nze

Library Delete

library_delete

Deletes specified works by ID from the local literature library; use only on explicit user delete requests because removal is irreversible. Passing '*' clears the entire library.

Instructions

Delete works from the local library.

DESTRUCTIVE — call ONLY on an explicit user delete request; never call proactively during a literature workflow.

Removes works by ID from the local library.

⚠️ 谨慎使用:删除不可恢复。除非用户明确要求删除,否则 AI 不应 调用本工具——尤其是 work_ids="*" 会清空整个库(含论文与来源)。 没有用户明确的删库指令时,AI 不要自行调用。

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": {
      "work_ids": "<work_ids>"
    },
    "name": "library_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
work_idsYesComma-separated work IDs (e.g. ``"W123,W456,W789"``) or ``"*"`` to delete ALL works (clears the entire library including sources).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden of disclosure; it does so well by stating that deletion is irreversible, that it is destructive, and that the wildcard wipes the whole library including sources. It stops short of describing confirmation steps, partial-failure behavior, or per-call limits, but the safety-relevant profile is clearly conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The warning is correctly front-loaded with "DESTRUCTIVE", but the Chinese block largely restates the English warning verbatim, making roughly a third of the text redundant. The message is clear, yet the bilingual duplication costs conciseness without adding new information.

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?

For a single-parameter destructive tool with an output schema and no annotations, the description covers the essential risk profile and usage boundary. Only minor details, such as confirmation expectations or behavior when some IDs are invalid, are absent.

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?

The schema already documents work_ids at 100% coverage, including the comma-separated format and the "*" wildcard. The description reinforces rather than extends that meaning, adding emphasis about what "*" destroys but no new syntax or edge-case guidance 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 ("Delete works from the local library") and immediately narrows the scope to deletion by ID. Among siblings such as library_query, library_export, and library_stats, an agent can tell at a glance that this is the only destructive library operation.

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 names both the trigger and the prohibition: "call ONLY on an explicit user delete request; never call proactively during a literature workflow." It also flags the extreme case work_ids="*", which clears the entire library, giving the agent a concrete condition under which extra caution is required.

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