# set_project

Replace the entire project with the given source JSON, returning its project_id. This is the PRIMARY way to build: use it to create a composition or to add/change many elements at once. (To tweak a single element in an existing project, use edit_element / add_element / delete_element instead.) Pass an existing project_id to replace that project; omit it to create a new one (note the returned id). The input is validated against the @clipkit/protocol before being accepted; invalid inputs return an error. Shape: { width, height, duration, frame_rate, output_format, background_color?, fonts?, camera?, lights?, elements:[…] }; every element has a type plus base fields (id, x, y, width, height, time, duration, track, opacity, rotation, animations, keyframe_animations) and type-specific fields. For exact field names + types call get_schema (optionally with an element_type) — the runtime ignores unrecognized keys, and this tool flags any it does not recognize.

Agent View of the PolicyLayer registry record for `set_project`. HTML page: https://policylayer.com/tools/dev-clipkit-clipkit/set-project

## Facts

- Tool: `set_project`
- Server: Clipkit (`https://www.clipkit.dev/mcp`) — https://policylayer.com/tools/dev-clipkit-clipkit.md
- Homepage: https://github.com/clipkit-video/clipkit
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 2 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | object | yes | A full Clipkit source object. |
| `project_id` | string | no | Which project to act on — the id returned by create_project / set_project / create_promo / load_project. Omit when working on a single local project. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_project",
    "arguments": {
      "source": {}
    }
  }
}
```

## Why set_project is rated Medium

This tool creates or modifies data reversibly: it can replace an entire project (Write) or create a new one. While the description is cut off, the confirmed capability to 'Replace the entire project' and 'add/change many elements at once' clearly indicates data modification.

From the tool's own definition: "Tool description states 'Replace the entire project with the given source JSON' and 'use it to create a composition or to add/change many elements at once.' Key verbs: 'Replace' and 'add/change'."

## Use case

AI agents use set_project to create or update resources in Clipkit, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Clipkit environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Clipkit:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "set_project": {
      "limits": [
        {
          "counter": "set_project_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Clipkit (14)

- `delete_element` — Destructive — https://policylayer.com/tools/dev-clipkit-clipkit/delete-element.md
- `describe_project` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/describe-project.md
- `get_project` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/get-project.md
- `get_schema` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/get-schema.md
- `open_in_editor` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/open-in-editor.md
- `preview_still` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/preview-still.md
- `read_docs` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/read-docs.md
- `validate_project` — Read — https://policylayer.com/tools/dev-clipkit-clipkit/validate-project.md
- `add_element` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/add-element.md
- `create_project` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/create-project.md
- `create_promo` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/create-promo.md
- `edit_element` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/edit-element.md
- `ingest_asset` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/ingest-asset.md
- `load_project` — Write — https://policylayer.com/tools/dev-clipkit-clipkit/load-project.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-clipkit-clipkit · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-clipkit-clipkit
