Skip to main content
Glama
Ghost MCP Server

Ghost MCP Server

by proars

get_post_by_slug

Read-only

Retrieve a single Ghost CMS post by its slug to fetch exact content details, with optional fields, formats, and related data for publishing or editing workflows.

Instructions

Get one post by slug. [GET /admin/posts/slug/{slug}/]

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": {
      "slug": "<slug>"
    },
    "name": "get_post_by_slug"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesValue for {slug} in the path.
fieldsNoComma-separated list of fields to return, for example id,title,slug.
formatsNoComma-separated content formats to return: html, plaintext, lexical.
includeNoComma-separated relations to include, for example tags,authors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds only the underlying HTTP route, and says nothing about error behavior for a missing slug, draft vs published visibility, or the shape of the returned post.

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?

Two short clauses with the core purpose front-loaded and zero filler. The bracketed endpoint is marginally useful developer context but is essentially restating the path already visible in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-resource read with fully documented parameters, read-only annotations, and no output schema, the definition covers what is needed to call it correctly. The remaining gap is failure behavior for unknown slugs, which is minor for this tool class.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and each parameter (slug, fields, formats, include) already carries its own explanation with examples. The description adds no additional meaning about defaults, interaction between fields and include, or valid formats, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get one post by slug" states a specific verb and resource plus the lookup key, which implicitly separates it from get_post (identifier-based) and get_posts (list). It stops short of naming those siblings explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer this over get_post or get_posts, nor any precondition such as whether the slug must correspond to a published post. The only usage signal is the phrase "by slug" embedded in the purpose statement.

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