Skip to main content
Glama

Start a project from a template

apply_template

Replace a project's tabs and layouts with a template's, returning them unapproved for canvas review so you can approve, propose, or adjust layouts before building.

Instructions

Replace a project's tabs and layouts with a template's. Tabs come back unapproved so the user reviews them on the canvas; then approve, propose or adjust layouts, and build as usual.

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": {
      "project": "<project>",
      "template": "<template>"
    },
    "name": "apply_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
templateYesTemplate id from list_templates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: 'Replace' discloses that existing tabs and layouts are overwritten, and 'Tabs come back unapproved so the user reviews them on the canvas' reveals the resulting state and required review step. It does not state whether the replacement is reversible or what happens to content on the existing tabs, which is why it is not a 5.

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, front-loaded with the core action, and the second sentence carries the post-call workflow rather than padding. Every clause conveys usable information.

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?

For a two-parameter mutation tool with no annotations and no output schema, the description covers the essential behavior: what is replaced and what state the result is in. The remaining gap is the unspecified format of the project parameter and any failure conditions, but the agent can still call it correctly.

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?

Schema description coverage is only 50%: the template parameter is already documented in the schema as 'Template id from list_templates', while the project parameter is bare and the description adds nothing about whether it is an id, name, or path. The description therefore does not compensate for the uncovered parameter, leaving the agent to guess at the project identifier.

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 states a specific verb and resource: 'Replace a project's tabs and layouts with a template's.' This is concrete and separates it from siblings that create projects from scratch (start_project) or capture a template (save_template). It stops short of explicitly naming those alternatives, which keeps it from a 5.

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 through the described follow-up workflow ('then approve, propose or adjust layouts, and build as usual'), which tells the agent this is a mid-flow step rather than a terminal action. There is no explicit when-to-use versus when-not guidance and no named alternative such as starting a new project with a template.

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