Skip to main content
Glama

register_template

Register custom HTML templates at runtime for immediate use with render_page and preview_html.

Instructions

Register a custom template at runtime for immediate use with render_page/preview_html

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssNoBuilt-in CSS for the template
nameYesTemplate name (alphanumeric, hyphens, underscores allowed)
categoryNoTemplate categorycustom
descriptionYesTemplate description
html_templateYesdoT.js HTML template string with {{=it.content}} placeholder
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. 'Register' implies a mutating operation, but the description does not mention whether the registration is persistent, what happens if the template name already exists, any permission requirements, or what the return value looks like. This is a significant gap for a write operation.

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 a single, concise, front-loaded sentence that conveys the essential purpose without any wasted words. It earns a top score for efficiency and clarity.

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?

The tool has 5 parameters but the schema covers them all. The description explains the immediate-use purpose but does not mention return values or error conditions. Given the absence of an output schema and annotations, the description is adequate but incomplete for a mutating operation.

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?

The input schema has 100% description coverage, so all parameters are documented. The description adds minimal value beyond the schema, but it does contextualize the html_template parameter by mentioning render_page/preview_html. Per the baseline, a score of 3 is appropriate.

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 a specific action (register) on a specific resource (a custom template) at a specific time (runtime) for a specific purpose (use with render_page/preview_html). It effectively distinguishes this tool from siblings like list_templates or get_template_schema.

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?

The description provides clear context on when to use this tool: when you need a custom template available immediately for render_page/preview_html. It does not explicitly mention when not to use it or name alternatives, but the context is sufficiently clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aimino-Tech/OpenTalk2HTML-NotMD'

If you have feedback or need assistance with the MCP directory API, please join our Discord server