# write_file_metadata

Write metadata directly into the ebook file (EPUB, MOBI, etc.).

Agent View of the PolicyLayer registry record for `write_file_metadata`. HTML page: https://policylayer.com/tools/2b3pro-calibre-mcp/write-file-metadata

## Facts

- Tool: `write_file_metadata`
- Server: Calibre (`2b3pro/calibre-mcp`) — https://policylayer.com/tools/2b3pro-calibre-mcp.md
- Homepage: https://github.com/2b3pro/calibre-mcp
- Risk category: Write (Medium risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

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

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

## Why write_file_metadata is rated Medium

This tool creates or modifies ebook metadata within file structures. While not destructive (changes are reversible by overwriting metadata again) and not financial, it clearly performs a Write operation that alters persisted data.

From the tool's own definition: "Tool description explicitly states 'Write metadata directly into the ebook file (EPUB, MOBI, etc.)' — the 'Write' verb combined with 'directly into the ebook file' indicates data modification."

## Use case

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

## Recommended policy (PolicyLayer)

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

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

## Other tools on Calibre (9)

- `deep_search_book` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/deep-search-book.md
- `fetch_online_metadata` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/fetch-online-metadata.md
- `get_toc` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/get-toc.md
- `read_content` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/read-content.md
- `read_file_metadata` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/read-file-metadata.md
- `search_library` — Read — https://policylayer.com/tools/2b3pro-calibre-mcp/search-library.md
- `convert_ebook` — Write — https://policylayer.com/tools/2b3pro-calibre-mcp/convert-ebook.md
- `polish_book` — Write — https://policylayer.com/tools/2b3pro-calibre-mcp/polish-book.md
- `update_metadata` — Write — https://policylayer.com/tools/2b3pro-calibre-mcp/update-metadata.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=2b3pro-calibre-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/2b3pro-calibre-mcp
