Skip to main content
Glama

Import a whole site

import_site
DestructiveIdempotent

Put a whole existing website into a Clay site's draft in one go, with its paths and file types as they are. Give exactly one source: zip_url (a public address of a .zip of the site's files, which Clay downloads), zip_base64 (the zip's bytes) or from_address (the address of a live site: Clay copies its pages and every file they use, same address only, up to max_pages). By default the draft becomes the import (files the import does not have are taken out of the draft; set replace false to keep them). The plan's file limits apply. The live site does not change. Returns what was imported, what was left out and why, and an address where the draft can be seen. A site behind a password cannot be copied by its address; its files as a zip can.

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": {
      "site": "<site>"
    },
    "name": "import_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesthe site's clay.site name (subdomain) or its id
replaceNodefault true: the draft becomes the import
zip_urlNoa public http(s) address of a .zip of the site's files
max_pagesNofrom_address only: the most pages to copy, default 60
zip_base64Nothe .zip's bytes, base64 (only when there is no address)
from_addressNothe address of a live website to copy, e.g. https://example.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the risk profile is partly covered. The description earns credit for spelling out what actually gets destroyed (files not in the import are removed from the draft unless `replace` false), that plan file limits apply, and that the live site is untouched. It does not discuss auth requirements or failure modes beyond the password case.

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?

One dense but front-loaded paragraph that moves from action to source selection to side effects to return value. Nearly every clause carries information, though the parenthetical about zip/base64 could be tightened without loss.

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 destructive, open-world import tool with no output schema, the description covers inputs, side effects, limits, and the shape of the return value (what was imported, what was left out and why, and where the draft can be viewed). An agent has enough to call it correctly and predict the outcome.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it clarifies that `replace` removes draft files the import lacks, that `from_address` copies pages and every asset they use (same address only) and honors `max_pages`, and that `zip_base64` is only for when no address exists. Only `site` itself is left to the schema.

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?

A specific verb and resource ("Put a whole existing website into a Clay site's draft") plus the three accepted source forms make the operation unmistakable. It also implicitly distinguishes itself from read-only siblings by stating that it writes into a draft and that "the live site does not change."

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?

It gives explicit selection rules among the three source parameters ("Give exactly one source") and a concrete exclusion: a password-protected site cannot be copied by address, but its zip can. It stops short of naming when to prefer this over related siblings such as create_site or import_listing_photos, but the in-tool guidance is clear.

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