Skip to main content
Glama

Cli add

archivebox_cli_add

Add URLs or extracted feed/text links to an ArchiveBox archive and queue them for capture, with controls for tags, crawl depth, re-archiving existing snapshots, and index-only entries.

Instructions

POST /api/v1/cli/add

Add URLs to the archive (one crawl; one snapshot per URL) and queue them for capture.

Args: urls: URLs (or text/feeds the parser extracts URLs from) to archive. tag: Comma-separated tag names applied to every new snapshot. depth: Crawl depth (0 = only these URLs, 1 = also their outlinks). snapshot_ids: Re-run capture on these existing snapshots instead. max_urls: Cap on URLs the crawl may queue (0 = unlimited). crawl_max_size: Cap on total crawl bytes (0 = unlimited). crawl_timeout: Crawl time limit in seconds (0 = unlimited). snapshot_max_size: Cap on bytes per snapshot (0 = unlimited). parser: Input parser (auto, txt, rss, html, ...). plugins: Comma-separated plugins to run (empty = instance defaults), for example wget,singlefile,pdf,screenshot,readability. persona: Browser persona (cookies/profile) to capture with. only_new: Skip URLs already in the archive. update: Re-archive URLs already in the archive. overwrite: Overwrite existing outputs on re-archive. index_only: Add to the index without capturing.

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": {
      "urls": "<urls>"
    },
    "name": "archivebox_cli_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
urlsYes
depthNo
parserNoauto
updateNo
personaNoDefault
pluginsNo
max_urlsNo
only_newNo
overwriteNo
index_onlyNo
snapshot_idsNo
crawl_timeoutNo
crawl_max_sizeNo
snapshot_max_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv2.6.0
    • addedInput schema / properties / crawl_max_size
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / crawl_timeout
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • removedInput schema / properties / extra_data
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • removedInput schema / properties / extractors
      Removed value: -{
      -  "default": "",
      -  "type": "string"
      -}
    • removedInput schema / properties / init
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
    • addedInput schema / properties / max_urls
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / only_new
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / persona
      Added value: +{
      +  "default": "Default",
      +  "type": "string"
      +}
    • addedInput schema / properties / plugins
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
    • addedInput schema / properties / snapshot_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / snapshot_max_size
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • removedInput schema / properties / update_all
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
  2. Addedv2.5.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds genuinely new behavior: work is queued for capture rather than completed inline, one crawl fans out to one snapshot per URL, and existing snapshots can be re-captured via snapshot_ids/update. The 'overwrite existing outputs' phrasing sits in mild tension with destructiveHint=false but is opt-in and scoped, so it is informative rather than contradictory.

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 description is front-loaded with a single-sentence purpose followed by a scannable Args block, so an agent can skim to the parameter it needs. The leading 'POST /api/v1/cli/add' line is transport detail that adds little for tool selection, but the rest is dense and waste-free.

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 15-parameter, non-idempotent mutation tool this covers the inputs well and captures the queued/async nature, but with no output schema it says nothing about what is returned (crawl ID? snapshot IDs? status?), which an agent needs in order to chain a follow-up call.

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?

Schema description coverage is 0% across 15 parameters, so the description carries the full burden, and it mostly does: it explains sentinel values (0 = unlimited for max_urls/crawl_max_size/crawl_timeout/snapshot_max_size), depth semantics (0 = only these URLs, 1 = outlinks), parser and plugin examples, and the crawl-vs-re-snapshot mode switch. Gaps remain on the interaction between only_new/update/overwrite and on the persona default.

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 names the verb and the resource concretely: 'Add URLs to the archive ... and queue them for capture', and the parenthetical '(one crawl; one snapshot per URL)' clarifies the object model that distinguishes it from the separate create_crawl/create_snapshot siblings. It does not explicitly name those sibling tools as alternatives, which keeps it just 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 Guidelines3/5

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

Usage is only implied via parameter docs: snapshot_ids is for re-running capture on existing snapshots, only_new skips archived URLs, index_only adds without capturing. There is no explicit 'use this instead of X when...' routing against archivebox_create_crawl, archivebox_create_snapshot, or archivebox_ingest_snapshots, so an agent must infer the choice.

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