Skip to main content
Glama

get_archiveresults

Retrieve archived web content results from ArchiveBox by applying filters like ID, URL, tags, or search terms to find specific snapshots.

Instructions

List all ArchiveResult entries matching these filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoFilter by ID
searchNoSearch across snapshot url, title, tags, extractor, output, id
snapshot_idNoFilter by snapshot ID
snapshot_urlNoFilter by snapshot URL
snapshot_tagNoFilter by snapshot tag
statusNoFilter by status
outputNoFilter by output
extractorNoFilter by extractor
cmdNoFilter by command
pwdNoFilter by working directory
cmd_versionNoFilter by command version
created_atNoFilter by exact creation date (ISO 8601)
created_at__gteNoFilter by creation date >= (ISO 8601)
created_at__ltNoFilter by creation date < (ISO 8601)
limitNoNumber of results to return
offsetNoOffset for pagination
pageNoPage number for pagination
api_key_paramNoAPI key for QueryParamTokenAuth

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary MCP tool handler for 'get_archiveresults'. Decorated with @mcp.tool, defines input schema via Pydantic Fields, creates an ArchiveBox Api client, calls the client's get_archiveresults method with parameters, and returns the JSON response.
    @mcp.tool(
        exclude_args=[
            "archivebox_url",
            "username",
            "password",
            "token",
            "api_key",
            "verify",
        ],
        tags={"core"},
    )
    def get_archiveresults(
        id: Optional[str] = Field(None, description="Filter by ID"),
        search: Optional[str] = Field(
            None,
            description="Search across snapshot url, title, tags, extractor, output, id",
        ),
        snapshot_id: Optional[str] = Field(None, description="Filter by snapshot ID"),
        snapshot_url: Optional[str] = Field(None, description="Filter by snapshot URL"),
        snapshot_tag: Optional[str] = Field(None, description="Filter by snapshot tag"),
        status: Optional[str] = Field(None, description="Filter by status"),
        output: Optional[str] = Field(None, description="Filter by output"),
        extractor: Optional[str] = Field(None, description="Filter by extractor"),
        cmd: Optional[str] = Field(None, description="Filter by command"),
        pwd: Optional[str] = Field(None, description="Filter by working directory"),
        cmd_version: Optional[str] = Field(None, description="Filter by command version"),
        created_at: Optional[str] = Field(
            None, description="Filter by exact creation date (ISO 8601)"
        ),
        created_at__gte: Optional[str] = Field(
            None, description="Filter by creation date >= (ISO 8601)"
        ),
        created_at__lt: Optional[str] = Field(
            None, description="Filter by creation date < (ISO 8601)"
        ),
        limit: int = Field(10, description="Number of results to return"),
        offset: int = Field(0, description="Offset for pagination"),
        page: int = Field(0, description="Page number for pagination"),
        api_key_param: Optional[str] = Field(
            None, description="API key for QueryParamTokenAuth"
        ),
        archivebox_url: str = Field(
            default=os.environ.get("ARCHIVEBOX_URL", None),
            description="The URL of the ArchiveBox instance",
        ),
        username: Optional[str] = Field(
            default=os.environ.get("ARCHIVEBOX_USERNAME", None),
            description="Username for authentication",
        ),
        password: Optional[str] = Field(
            default=os.environ.get("ARCHIVEBOX_PASSWORD", None),
            description="Password for authentication",
        ),
        token: Optional[str] = Field(
            default=os.environ.get("ARCHIVEBOX_TOKEN", None),
            description="Bearer token for authentication",
        ),
        api_key: Optional[str] = Field(
            default=os.environ.get("ARCHIVEBOX_API_KEY", None),
            description="API key for authentication",
        ),
        verify: Optional[bool] = Field(
            default=to_boolean(os.environ.get("ARCHIVEBOX_VERIFY", "True")),
            description="Whether to verify SSL certificates",
        ),
    ) -> dict:
        """
        List all ArchiveResult entries matching these filters.
        """
        client = Api(
            url=archivebox_url,
            username=username,
            password=password,
            token=token,
            api_key=api_key,
            verify=verify,
        )
        response = client.get_archiveresults(
            id=id,
            search=search,
            snapshot_id=snapshot_id,
            snapshot_url=snapshot_url,
            snapshot_tag=snapshot_tag,
            status=status,
            output=output,
            extractor=extractor,
            cmd=cmd,
            pwd=pwd,
            cmd_version=cmd_version,
            created_at=created_at,
            created_at__gte=created_at__gte,
            created_at__lt=created_at__lt,
            limit=limit,
            offset=offset,
            page=page,
            api_key=api_key_param,
        )
        return response.json()
  • Helper method in the ArchiveBox API client class that performs the actual HTTP GET request to the /api/v1/core/archiveresults endpoint, used by the MCP tool handler.
    @require_auth
    def get_archiveresults(
        self,
        id: Optional[str] = None,
        search: Optional[str] = None,
        snapshot_id: Optional[str] = None,
        snapshot_url: Optional[str] = None,
        snapshot_tag: Optional[str] = None,
        status: Optional[str] = None,
        output: Optional[str] = None,
        extractor: Optional[str] = None,
        cmd: Optional[str] = None,
        pwd: Optional[str] = None,
        cmd_version: Optional[str] = None,
        created_at: Optional[str] = None,
        created_at__gte: Optional[str] = None,
        created_at__lt: Optional[str] = None,
        limit: int = 200,
        offset: int = 0,
        page: int = 0,
        api_key: Optional[str] = None,
    ) -> requests.Response:
        """
        List all ArchiveResult entries matching these filters
    
        Args:
            id: Filter by ID (startswith, icontains, snapshot-related fields).
            search: Search across snapshot url, title, tags, extractor, output, id.
            snapshot_id: Filter by snapshot ID (startswith, icontains).
            snapshot_url: Filter by snapshot URL (icontains).
            snapshot_tag: Filter by snapshot tag (icontains).
            status: Filter by status (exact).
            output: Filter by output (icontains).
            extractor: Filter by extractor (icontains).
            cmd: Filter by command (icontains).
            pwd: Filter by working directory (icontains).
            cmd_version: Filter by command version (exact).
            created_at: Filter by exact creation date (ISO 8601 format).
            created_at__gte: Filter by creation date >= (ISO 8601 format).
            created_at__lt: Filter by creation date < (ISO 8601 format).
            limit: Number of results to return (default: 200).
            offset: Offset for pagination (default: 0).
            page: Page number for pagination (default: 0).
            api_key: API key for QueryParamTokenAuth (optional).
    
        Returns:
            Response: The response object from the GET request.
    
        Raises:
            ParameterError: If the provided parameters are invalid.
        """
        params = {
            k: v
            for k, v in locals().items()
            if k != "self" and v is not None and k != "api_key"
        }
        if api_key:
            params["api_key"] = api_key
        try:
            response = self._session.get(
                url=f"{self.url}/api/v1/core/archiveresults",
                params=params,
                headers=self.headers,
                verify=self.verify,
            )
        except ValidationError as e:
            raise ParameterError(f"Invalid parameters: {e.errors()}")
        return response
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure but provides minimal information. It mentions 'matching these filters' which hints at query behavior, but doesn't describe pagination behavior (though parameters exist), return format, error conditions, authentication requirements, or rate limits. For a tool with 18 parameters and no annotation coverage, this is inadequate.

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?

The description is a single, efficient sentence that communicates the core purpose without any wasted words. It's appropriately sized for a listing/filtering tool and is front-loaded with the essential information.

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?

Given the high parameter count (18), no annotations, but 100% schema coverage and existence of an output schema, the description is minimally adequate. The output schema will handle return values, and the schema documents parameters well, but the description doesn't provide needed behavioral context for a complex filtering tool with many options.

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 100%, so the schema already documents all 18 parameters thoroughly. The description adds no additional parameter semantics beyond stating 'matching these filters' which is already implied by the schema. This meets the baseline of 3 when schema does the heavy lifting, but adds no compensating value.

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 clearly states the action ('List') and resource ('ArchiveResult entries'), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling tools like 'get_snapshots' or 'get_snapshot', which appear to be related archive/snapshot tools, so it doesn't achieve full sibling differentiation.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'get_snapshots' and 'get_snapshot' available, there's no indication of when this filtering-focused ArchiveResult listing is preferred over those other archive-related tools. No prerequisites or exclusions are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Knuckles-Team/archivebox-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server