Skip to main content
Glama

Content inventory

content_inventory
Read-only

Export WordPress content as JSON or CSV with detailed per-item fields such as status, author, word count, and SEO metadata. Supports field selection and cursor pagination for audits, migrations, and spreadsheets.

Instructions

Export a content inventory — one row per item with id, type, status, URL, title, word count, published and modified dates, author name, term names, whether it has a featured image, and the SEO title/description when Yoast exposes them. JSON or CSV, with field selection and cursor pagination, for content audits, migrations and spreadsheets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typesNoContent types to include, in order.
cursorNonext_cursor from the previous call, to fetch the next rows.
fieldsNoColumns to include, in order. Omit for all. Leaving out words, terms and author makes each page cheaper to build.
formatNojson rows, or a CSV document with a header row.json
statusNoStatus filter: publish, draft, pending, private, future, or "any".publish
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
per_pageNoRows per call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive behavior, so the description correctly adds value by disclosing output shape ('one row per item' with a detailed field list), format options (JSON/CSV), field selection, and cursor pagination. It also notes the conditional Yoast SEO field exposure. This goes beyond the annotations without contradicting them.

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?

The description is two sentences, front-loaded with the primary action ('Export a content inventory'), and every clause earns its place. It packs the output contract, formats, pagination, and use cases without redundancy or fluff.

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 read-only export tool with 7 fully documented optional parameters and no output schema, the description covers the essential behavioral context: row contents, formats, pagination, and purpose. It does not detail edge cases like empty results or cursor chaining, but those are already addressed by the schema, and the description is sufficient for an agent to call the tool correctly.

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 the schema already documents each parameter (types, cursor, fields, format, status, site_id, per_page) with meaningful detail. The description adds a high-level summary (e.g., 'field selection and cursor pagination') but no additional parameter-level semantics beyond what the schema provides. Baseline 3 is appropriate.

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 clearly states a specific verb ('Export') and resource ('content inventory'), enumerates the exact fields included in each row, and names the output formats (JSON/CSV). It also distinguishes this tool from sibling content tools by conveying a bulk-export/audit purpose, unlike list_content or get_content which have different scopes.

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?

The description gives clear context: 'for content audits, migrations and spreadsheets' implies when an agent would reach for this tool — when a comprehensive, exportable snapshot is needed. It does not explicitly name alternatives or state when not to use it, but the use-case framing provides strong implied guidance without exclusions.

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

Deploy Server

Other Tools