ghost_api_request
Call any Ghost Admin API endpoint directly, including routes without a dedicated tool, with JSON bodies, multipart uploads, query parameters, and file downloads saved to disk.
Instructions
Call any Ghost Admin API endpoint directly, including every route without a dedicated tool (find routes with ghost_list_endpoints). The path is relative to /ghost/api/admin, for example /labels/slug/vip/. Supports JSON bodies, multipart file uploads (files) and saving file downloads (save_to). If a POST, PUT or DELETE returns a file, set save_to on that first call: its answer cannot be fetched again by repeating the call. Routes marked U, SESSION or FLOW in the catalog need a staff user or browser session and fail with an integration key. DELETE removes data permanently.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "ghost_api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST and PUT requests. | |
| path | Yes | Path starting with /, relative to /ghost/api/admin, without query string. | |
| files | No | Multipart upload: map of form field name to absolute local file path, for example { file: '/tmp/a.png' }. Field names per route are listed by ghost_list_endpoints (upload). | |
| query | No | Query parameters as a flat object, for example { limit: 20, include: 'tags' }. | |
| fields | No | Extra multipart text fields, for example { purpose: 'image' }. Used with files. | |
| method | Yes | HTTP method. | |
| save_to | No | Absolute path of a new file to store the response in. Use it for downloads (CSV, YAML, ZIP). Existing files are never overwritten. |