Skip to main content
Glama

List post types

get_post_types
Read-only

Lists the site's post types, including custom types and their taxonomies, and shows whether mcp-rs may use each. Check this before working with custom post types, then query taxonomies and terms.

Instructions

List the site's post types (post, page, and custom ones such as products or events) with their taxonomies, and whether mcp-rs may use each. Custom post types are used only when listed in post_types in the mcp-rs config. Use it before working with custom post types, then get_taxonomies and get_terms for their categories.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_post_types"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely non-obvious behavior beyond them: custom post types are only usable when listed under post_types in the mcp-rs config, and each entry reports a use-permission flag — a gating rule an agent cannot infer from the schema or annotations.

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?

Three sentences, front-loaded with what is returned, followed by the config constraint and the usage sequence — no filler. The final sentence compresses both a trigger and a multi-step follow-on into one clause, which is slightly dense but earns its space.

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 no parameters, no output schema, and an explicit read-only annotation, the description covers what the agent needs: the returned content (types, taxonomies, permission flag) and the config dependency. Only a light sketch of the config-gating consequence (what a non-listed type looks like in the response) is missing.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the 4 baseline applies. The description adds no misleading parameter-like claims and correctly implies a no-argument list call.

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 names a specific verb and resource ('List the site's post types') and immediately scopes the resource with concrete examples (post, page, custom types like products or events). It also states the distinctive payload beyond a bare list: associated taxonomies and whether mcp-rs is permitted to use each type.

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?

It gives an explicit trigger ('Use it before working with custom post types') and an explicit follow-on chain ('then get_taxonomies and get_terms for their categories'), which routes the agent correctly. It stops short of saying when *not* to call it (e.g., when the type is already known), so it is clear context without full exclusions.

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