Skip to main content
Glama

load_template

Loads a template by unique identifier, parses its HTML to extract placeholder tags and icon references, enabling automated content preparation for page assembly.

Instructions

加载指定模板的完整 HTML 内容,解析并返回所有占位符(XML 标签)和图标引用清单。编排层根据返回的占位符列表准备内容数据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes模板的唯一标识(slug),如 "green-infographic-bid-a4-landscape"
templatesDirNo模板目录的绝对路径,默认为项目 templates/
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that it loads full HTML, returns placeholders and icon references, and is used by the orchestration layer. However, it does not mention error handling, prerequisites, or potential side effects. Still, it provides adequate transparency for a read-only loading tool.

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 short sentences, front-loaded with the core action, and every sentence adds value. No unnecessary words or redundancy.

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?

Given the lack of output schema, the description explains the return values (placeholders and icon references) and provides context about the orchestration layer's use. It is mostly complete, though could mention the return structure (e.g., list format).

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 coverage is 100% with detailed descriptions for both parameters. The tool description does not add new meaning beyond what the schema already provides for parameters, meeting the baseline of 3.

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 that the tool loads the complete HTML content of a specified template, parses placeholders and icon references, and returns them. It distinguishes from siblings like list_templates and fill_placeholders by specifying its specific role in the orchestration pipeline.

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

Usage Guidelines3/5

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

The description explains what the tool does and its place in the orchestration, but does not provide explicit guidance on when to use it versus alternatives like list_templates or parse_source_content. Usage context is implied but not explicit.

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/SUSTechWLA/ppt-generator-mcp'

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