Skip to main content
Glama

Make template

make_template
Destructive

Turn copy-pasted sibling elements (rows, menu items, cards with the same structure) into one : the first element becomes the item markup, what differs becomes {{fields}} and the values become the template's items. Returns the template's HTML.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileId": "<fileId>",
      "ids": "<ids>"
    },
    "name": "make_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesSibling elements with the same structure.
keyNodata-each name, e.g. "rows" (derived by default).
fileIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is communicated. The description adds useful semantics — original markup is folded into item markup plus {{fields}}, and the call yields template HTML — but it does not say whether the source siblings are replaced or removed from the document, nor whether the operation is reversible. For a destructive mutation that is a meaningful remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence carries the transformation semantics with illustrative examples (rows, menu items, cards), followed by a short sentence on the return value. It is front-loaded and has no filler, though the main sentence is long enough to be slightly hard to parse at a glance.

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?

There is no output schema, and the description partially compensates by stating it returns the template's HTML. However, for a destructive 3-parameter mutation it leaves out what happens to the original siblings, whether the minimum of two elements is a hard requirement, and any failure conditions — details an agent would want before calling it.

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

Parameters4/5

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

Schema coverage is moderate (67%) and the description compensates by explaining that the first listed element becomes the item markup, that the differing parts become {{fields}}, and that the differing values become the template's items — meaning that is not derivable from the bare 'ids' array description. It also corroborates that the data-each key is derived by default. The fileId parameter is never mentioned and receives no elaboration beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific transformation: consolidating copy-pasted sibling elements into a single '<template data-each>' and deriving {{fields}} from the differing values. That is a concrete verb+resource with real mechanism detail, not a restatement of the name. It stops short of explicitly contrasting with make_component, so an agent must infer the boundary from the mechanism alone.

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?

Usage is implied by the input condition 'copy-pasted sibling elements (rows, menu items, cards with the same structure)' — the agent can infer it applies when duplicates exist. There is no explicit when-not, no note about what happens if the siblings are not structurally equivalent, and no reference to alternatives such as make_component.

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.