Skip to main content
Glama

Get Template Blocks

meisa_get_template_blocks
Read-onlyIdempotent

Parse a template's HTML into the visual editor's block model and return the ordered list of blocks (heading, text, image, button, divider, spacer, list, quote, callout, social-links, footer, conditional, product-card, video, or html). Use this to inspect a template's structure before editing a single block, instead of rewriting the whole HTML. Block ids are position-based (blk-0, blk-1, ...) and stable as long as the block order is unchanged, so an id from this call resolves correctly on a follow-up update/delete/move. After an insert, delete, or move, positions shift, so re-read blocks before the next edit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYesThe UUID of the email template whose blocks to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: it explains that block ids are position-based (blk-0, blk-1, ...), that ids stay stable only while order is unchanged, and that positions shift after insert/delete/move. This id-lifecycle detail is exactly the behavioral context an agent needs and annotations cannot convey.

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?

Front-loaded with the core action and return, then the when-to-use, then the id-stability caveat. Every sentence carries new information (block types, alternative, id semantics, re-read rule) with no repetition or filler.

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?

With no output schema, the description compensates by enumerating the returned block types and describing the id format and how it behaves across reads/mutations. For a single-param read tool, nothing an agent needs to call and consume it correctly is missing.

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?

Only one parameter (template_id) and schema description coverage is 100%, so the schema already fully documents it as the UUID of the template. The description adds no syntax or format detail beyond that, 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 (parse) and resource (a template's HTML → block model) and the exact return (ordered list of blocks), enumerating all 15 block types. An agent can distinguish this from siblings like meisa_get_template and meisa_update_template_block without opening a schema.

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

Usage Guidelines5/5

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

Explicitly says when to use it ('to inspect a template's structure before editing a single block') and names the alternative it replaces ('instead of rewriting the whole HTML'). It further prescribes re-reading after insert/delete/move, giving a concrete workflow condition.

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