Skip to main content
Glama

List blog posts

list_posts
Read-only

List the posts of a website's blog, newest first: slug, title, date, Draft or Live, and each post's contentHash (pass it to put_post as base_hash to update that post). Says whether the blog is set up.

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": {
      "siteId": "<siteId>"
    },
    "name": "list_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe site (id from list_sites).
collectionNoWhich collection the posts are in. Defaults to "blog", so posts are at /blog/<slug>. Lowercase words joined by hyphens.

Output Schema

NameRequiredDescriptionDefault
noteNo
countYes
postsYes
setUpYesWhether the site has this blog's layout. False: run setup_blog first.
siteIdYes
truncatedYesTrue when the blog has more posts than one list returns.
collectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / posts / items / properties / status / description
      Previous value: -"Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published from Simplepages."New value: +"Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published (publish_post does that once the site has an active domain, as does Publish in Simplepages)."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds real value on top by disclosing result ordering (newest first), the exact field set returned, and that the response indicates whether the blog is set up. It does not state pagination limits, ordering overrides, or what happens when no blog exists yet, which keeps this below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence plus a short closing clause, front-loaded with the action and ordering before the field list and the put_post cross-reference. There is no filler or restatement of the title.

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?

With an output schema present, the description needn't explain return values, yet it still summarizes the key fields and the contentHash handoff, and flags the blog setup state. For a two-parameter read tool this is nearly complete, though it omits any mention of result limits or pagination.

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 coverage is 100%: siteId is documented as an id from list_sites and collection is documented with its default of "blog" and the resulting /blog/<slug> path. The description adds no parameter-level detail beyond that, so the baseline of 3 for a fully documented schema applies.

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 plus resource and scope: "List the posts of a website's blog, newest first," then enumerates the returned fields (slug, title, date, Draft/Live status, contentHash). It also separates this tool from the write path by naming put_post as the consumer of contentHash, so an agent can tell what this tool is versus its mutating sibling.

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

Usage Guidelines4/5

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

Usage is clear through the read-then-update chain: the contentHash is explicitly meant to be passed to put_post as base_hash to update that post, which tells the agent when to call this first. What is missing is an explicit exclusion, such as using get_post when a single post's full body is needed rather than the listed summary fields.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources