Skip to main content
Glama

Import a template from a shareable code

import_template

Create a template from a code made by export_template (or the app). Always creates a new template; an invalid or unsupported code is refused with the reason. Media from another organization is dropped (only files this organization owns are kept). Returns the new 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": {
      "code": "<code>"
    },
    "name": "import_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code export_template returned: base64, or the JSON document itself (max 50,000 characters)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag non-read-only, non-idempotent, non-destructive behavior, and the description adds real substance on top: creation is always additive, invalid or unsupported codes are rejected with a reason, and cross-organization media is silently dropped. The media-dropping disclosure is exactly the kind of partial-data-loss context that annotations cannot convey.

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?

Three dense sentences, front-loaded with the purpose before edge-case behavior, with no filler. The final 'Returns the new template' is largely redundant given an output schema exists.

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?

With an output schema present, the description does not need to enumerate return values, and it covers the mutation semantics and failure mode that matter for correct invocation. The only gap is any note on permissions or sharing scope of the resulting template.

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%, so the meaning of 'code' (base64 or raw JSON, 50,000 char limit) and the multi-org 'organizationId' rule are already fully documented in the schema. The description adds no format or constraint detail beyond that baseline.

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 opens with a specific verb+resource ('Create a template from a code') and anchors it to a named sibling producer ('made by export_template'), plus 'Always creates a new template' separates it from create/duplicate/update siblings. An agent can identify the tool's role without opening the 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?

It clearly states the input provenance (a code produced by export_template or the app), which is the main condition that selects this tool over create_template. It stops short of explicit when-not guidance or naming alternatives to avoid.

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.

Resources