Skip to main content
Glama

Get layout

get_layout

Return one layout as a ready-to-use, self-contained document: HTML, theme CSS, and its slot definitions. Call this once the user knows which layout they want, or with ids returned by suggest_deck.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
langNoLanguage for slot hints and usage notes. Pass the language the user is writing in.ko
theme_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries full responsibility. It describes the return payload but does not state side effects (or lack thereof) such as read-only behavior or error handling. It is not misleading, but leaves safety assumptions to the tool name.

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?

Two sentences: the first states the output, the second the usage condition. Information is front-loaded and every sentence adds value.

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

Completeness3/5

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

For a simple get-by-id tool, the description covers the output structure and the main usage trigger. However, it omits how lang and theme_id affect the result, and error behavior. Given the low schema coverage, this is a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description only hints that id comes from suggest_deck, but does not explain lang or theme_id. Schema coverage is only 33% (lang only), so the description should compensate but doesn't, leaving theme_id completely unexplained.

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 the action (return), the resource (one layout), and the contents (HTML, theme CSS, slot definitions). It also differentiates from siblings by naming suggest_deck as a source for ids, implying this is for a specific chosen layout.

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 explicitly says to call when the user knows which layout they want, and mentions using ids from suggest_deck. This gives clear context for invocation, though it doesn't explicitly mention when not to use it or alternatives like list_layouts.

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