Skip to main content
Glama

get_content_type

Read-only

Fetch a content type's schema—fields, types, required values—before creating or updating content. Ensures the exact JSON shape for write operations.

Instructions

Get one content type's definition: name, kind, displayName, schemaType and its fields (name, type, required, options, allowed blocks of a content area…). Each field includes valueFormat + valueExample — the exact JSON shape create_content/update_content expect. Call this before writing content of a type. Returns null for an unknown name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesContent type name, PascalCase, e.g. 'BlogPost' (as in a content item's `type`).
siteNoSite slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / name / description
      Added value: +"Content type name, PascalCase, e.g. 'BlogPost' (as in a content item's `type`)."
  2. First observedv0.1.0

TDQS

A4.1/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 real behavioral context beyond that: it returns null for an unknown name and that each field carries valueFormat/valueExample showing the exact JSON create_content/update_content expect.

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?

Front-loads the resource and its contents, then adds the workflow directive and the null behavior. Dense but each clause earns its place; the parenthetical field list and trailing ellipsis make it slightly unpacked.

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?

No output schema exists, so the description must describe the return value itself — and it does, including the field shape, value format, and null case. Coverage is strong, though the ellipsis leaves the full field enumeration open.

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%, so both 'name' and 'site' are fully documented in the schema (including the multisite gotcha). The description adds nothing about parameter meaning, so the baseline 3 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?

States a specific verb ('Get one') and resource ('content type's definition') and then enumerates the exact return surface (name, kind, displayName, schemaType, fields). The singular framing cleanly distinguishes it from the sibling list_content_types.

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?

Gives a concrete trigger — 'Call this before writing content of a type' — tying it to create_content/update_content. It does not explicitly contrast with list_content_types or get_content, so the alternative-selection guidance is implicit rather than spelled out.

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