Skip to main content
Glama

Delete files from the library

delete_from_library
DestructiveIdempotent

Delete files from the user's own Clay library, up to 100 ids a call, for when the user wants pictures or files out of it. Permanent. Only the signed-in user's own library is reached. A site that already shows one of the files keeps showing it (a site has its own copy, and a link to the file keeps working); onSites in the result says which sites have each file, and notFound lists ids that are not in their library.

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": {
      "ids": "<ids>"
    },
    "name": "delete_from_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesids of files in the user's library

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real context beyond them: the deletion is 'Permanent', only the signed-in user's own library is reachable, and sites already using a file retain their own copy so links keep working. That side-effect disclosure is exactly what an agent needs before calling a destructive tool.

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 text is dense but front-loaded, leading with the verb, resource and the hard limit before the caveats. The long parenthetical about site copies is slightly convoluted, but every clause covers a distinct risk or result field.

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?

There is no output schema, so the description supplies the important result fields (`onSites` and `notFound`) and explains what each means. For a destructive, non-open-world one-parameter tool, nothing essential is missing.

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 single `ids` parameter is already fully documented in the schema (coverage 100%), including the maxItems of 100. The description mainly repeats that limit and adds no format or id-syntax detail beyond what the schema provides, so this scores at the baseline.

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?

The definition states a specific verb and resource ('Delete files from the user's own Clay library'), adds a batch size of 100 and a scope limit of the signed-in user's library. It does not explicitly distinguish this tool from the sibling `delete_files`, so it stops short of a 5.

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?

'for when the user wants pictures or files out of it' gives a clear trigger condition, and the note that a site keeps its own copy signals when this tool will not achieve full removal. There is no explicit when-not guidance or naming of an alternative tool, which keeps this at a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources