Skip to main content
Glama

Restore layer template

restore_layer_template
Idempotent

Restore a deleted layer template by its ID so you can reuse it in your projects. It returns the recovered template but does not set it as the default again.

Instructions

Bring back a deleted layer template (the id from list_layer_templates deleted or list_deleted). It does not become a default again. Returns the template.

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": {
      "templateId": "<templateId>"
    },
    "name": "restore_layer_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateIdYesLayer template id (list_layer_templates)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.23.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare idempotentHint, so the description carries most of the behavioral burden. It usefully discloses that the restored template does not become the default again and that the template is returned, which are non-obvious side effects; it omits permission requirements or error conditions.

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?

Two short sentences plus a return note, front-loaded with the action. No filler, though the parenthetical id-sourcing hint is slightly awkwardly phrased.

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 one-parameter restore tool with no output schema, the description covers the action, the id source, the key side effect, and the return value. Only auth or failure behavior is missing, which is minor at this complexity.

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% and the single parameter is already documented as a layer template id. The description adds only the alternative source list_deleted for obtaining that id, which is marginal value over 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?

States a specific verb and resource: bringing back a deleted layer template. It is clearly distinct from delete_layer_template and purge_layer_template by the word 'deleted' and 'bring back', though it never names those siblings explicitly to contrast behavior.

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?

Gives concrete context for when to use it — the id must come from a deleted entry in list_layer_templates or from list_deleted — which tells the agent the precondition for calling. It stops short of explicit when-not guidance, such as contrasting with purge or with re-creating the template.

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

Deploy Server

Other Tools