Skip to main content
Glama

get_type_template

Read-only

Retrieve a content type template by name to inspect its fields, value formats, and examples before instantiating it or creating a new content type.

Instructions

Get one type template's full ContentTypeDef by name (stored or built-in), each field annotated with valueFormat + valueExample. Use it to inspect a template before instantiate_type_template, or as a starting definition for create_content_type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTemplate name as listed by list_type_templates, e.g. 'FaqPage'.
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: +"Template name as listed by list_type_templates, e.g. 'FaqPage'."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With readOnlyHint=true and openWorldHint=false already covering the safety profile, the description adds useful return-shape context: full ContentTypeDef fields annotated with valueFormat + valueExample, and that templates may be stored or built-in. It does not add permission, rate-limit, or error behavior details.

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 tight sentences with no wasted words. It front-loads what the tool returns, then immediately gives the intended usage context.

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

Completeness5/5

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

Given no output schema, the description adequately explains what an agent receives: a full ContentTypeDef with per-field valueFormat and valueExample annotations. The input schema already covers parameter details, so the definition is complete for calling this read-only lookup tool.

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 the name and site parameters are already documented in the schema. The description only restates that lookup is by name and does not add additional parameter semantics beyond the schema.

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 states a specific verb and resource: get one type template's full ContentTypeDef by name, including stored or built-in templates. It distinguishes this one-template read from siblings like list_type_templates and make_type_template by emphasizing the full definition and field annotations.

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 clearly names two use cases: inspecting a template before instantiate_type_template and using it as a starting definition for create_content_type. However, it does not explicitly state when not to use it or contrast it directly with list_type_templates.

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