Skip to main content
Glama

Cli remove

archivebox_cli_remove
Destructive

Delete ArchiveBox snapshots and their files by exact URL, tag, status, crawl, or filter criteria. Use the narrowest selection because removal is destructive.

Instructions

POST /api/v1/cli/remove

Delete the snapshots the selection matches, and their files. Destructive: always pass the narrowest selection (an exact URL, or one tag).

Args: after: Only snapshots bookmarked after this Unix time. before: Only snapshots bookmarked before this Unix time. filter_type: How filter_patterns match (default exact). filter_patterns: Patterns to match. status: Only snapshots with this status. url__icontains: URL contains. url__istartswith: URL starts with. tag: Only snapshots with this tag. crawl_id: Only snapshots of this crawl. limit: Maximum snapshots. sort: Sort field. search: Full-text search. timeout: Seconds to wait for the removal.

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": "archivebox_cli_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
sortNo
afterNo
limitNo
beforeNo
searchNo
statusNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
timeoutNo
crawl_idNo
filter_typeNoexact
url__icontainsNo
filter_patternsNo
url__istartswithNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv2.6.0
    • changedInput schema / properties / before / default
      Previous value: -999999999999999New value: +null
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "description": "Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / crawl_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • removedInput schema / properties / delete
      Removed value: -{
      -  "default": true,
      -  "type": "boolean"
      -}
    • removedInput schema / properties / extra_data
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / tag
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "default": 60,
      +  "type": "number"
      +}
    • addedInput schema / properties / url__icontains
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / url__istartswith
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Addedv2.5.1

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description adds value beyond the annotations by stating that snapshot files are deleted too, not just index records, and by adding a scoping discipline for a bulk destructive call. It does not say whether a backup exists or what happens to related crawl data.

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 destructive warning is front-loaded before the parameter list, which is the right ordering. The Args block is somewhat mechanical but each line carries meaning, and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter destructive mutation with no output schema, the description covers the essential behavior and most parameters. Missing: any mention of 'confirm' (the client-side confirmation gate), the allowed values for filter_type/status/sort, and any statement about reversibility or what the response reports.

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 only 7%, so the description has to carry the parameter meaning, and it does list 13 of the 14 parameters with one-line explanations. But those explanations are thin: 'Sort field' and 'status' do not give allowed values, filter_type shows only the default 'exact' and not other modes, and the 'confirm' parameter — the explicit safety gate documented in the schema — is omitted entirely from the args list.

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 description opens with a specific verb+resource and scope: 'Delete the snapshots the selection matches, and their files.' That is clearly distinct from archivebox_get_snapshots or archivebox_cli_search, though it does not explicitly distinguish itself from archivebox_delete_snapshot, which also removes snapshots.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Destructive: always pass the narrowest selection (an exact URL, or one tag)' is real, actionable safety guidance about how to invoke it. However, it gives no guidance on when to use this bulk-filter tool instead of the sibling archivebox_delete_snapshot, and gives no prerequisite or confirmation workflow context, so the usage guidance is implied rather than explicit.

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