Skip to main content
Glama

Clear stopped share links

clear_media_links
DestructiveIdempotent

Deletes revoked and expired share links while keeping active links and links for projects in the trash; returns the number cleared and a status message.

Instructions

Delete your revoked and expired share links from the list (they are deleted anyway some days after they stopped). Active links and links of a project in the trash are kept. Returns { cleared, message }.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_media_links"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.43.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds the crucial safety context those flags lack: exactly which records are destroyed versus preserved, plus the note that they would be removed automatically after some days. It does not cover authentication requirements or whether the deletion can be undone.

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?

Three short sentences, front-loaded with the action and eligibility rule, followed by the preservation exception and the return shape. Every sentence carries distinct information with no filler.

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 zero-parameter destructive cleanup tool with no output schema, the description supplies the eligibility rule, the preservation rule, the urgency context, and the return shape { cleared, message }. Nothing needed to invoke it correctly is missing.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing to document and the schema-coverage baseline of 4 applies. The description correctly implies the operation is scoped to the caller's own links rather than requiring an ID argument.

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?

States a specific verb and resource with precise scope: delete revoked and expired share links from the list. The scope qualifiers distinguish it from a blanket revocation or listing tool, so an agent can tell it apart from siblings like revoke_media_link or list_media_links.

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?

Clearly bounds when the tool applies (only revoked and expired links are eligible) and what is excluded (active links, links of projects in the trash). The parenthetical that such links auto-delete within days implicitly tells the agent the call is an optional cleanup, but it never spells out the use case or an explicit alternative.

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

Deploy Server

Other Tools