Skip to main content
Glama
Ghost MCP Server

Ghost MCP Server

by proars

ghost_api_request

Destructive

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

NameRequiredDescriptionDefault
bodyNoJSON body for POST and PUT requests.
pathYesPath starting with /, relative to /ghost/api/admin, without query string.
filesNoMultipart 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).
queryNoQuery parameters as a flat object, for example { limit: 20, include: 'tags' }.
fieldsNoExtra multipart text fields, for example { purpose: 'image' }. Used with files.
methodYesHTTP method.
save_toNoAbsolute path of a new file to store the response in. Use it for downloads (CSV, YAML, ZIP). Existing files are never overwritten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description reinforces this with 'DELETE removes data permanently', while adding non-obvious behavior: routes needing a staff/browser session fail, and a file returned by POST/PUT/DELETE cannot be re-fetched by repeating the call. What is missing is any statement about error/response shape or rate limiting, but the critical traps are disclosed.

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?

Six tight sentences, purpose and discovery pointer front-loaded, with the irreversible-download caveat and the DELETE warning placed after the mechanics. A couple of clauses (files/save_to support) restate what the schema already documents, which is minor waste but the paragraph stays dense with actionable content.

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 7-parameter, nested-object passthrough tool with no output schema, the description supplies everything an agent needs to call it correctly: path convention, query/body/files/fields roles, the one-shot download constraint, auth preconditions, and destructiveness. Return values need not be explained since the tool returns raw API responses whose shape is defined by the target route.

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; the description earns above that by explaining that path is relative to /ghost/api/admin (with an example) and that save_to must be set on the first call because the response is not reproducible, plus that existing files are never overwritten. The files/multipart behavior is partly duplicative of the schema, keeping it out of 5 territory.

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?

The description opens with a specific verb and resource ('Call any Ghost Admin API endpoint directly') and immediately scopes it as the fallback for 'every route without a dedicated tool', which distinguishes it from the CRUD siblings. It also pins the path root to /ghost/api/admin, so an agent knows exactly what resource space this covers.

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

Usage Guidelines5/5

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

It tells the agent when to reach for this tool (routes not covered by a dedicated tool), points to ghost_list_endpoints as the discovery mechanism, and warns which catalog routes (U, SESSION, FLOW) will fail with an integration key. The save_to-first-call rule is an explicit procedural instruction rather than something the agent must infer.

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