Skip to main content
Glama

Export a template as a shareable code

export_template
Read-only

Turn a template into a shareable code (base64 of a JSON document) that import_template, or the app's Import, turns back into a template in any organization. Account-bound options (Pinterest board, Discord channel, …) are left out. The media travels as references to this organization's library, so it only means something when imported back into the same organization. Returns { code, json }.

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": "export_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateIdYesThe template ID (from list_templates)
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
codeNoBase64 of the JSON document; pass it to import_template
jsonNoThe same document, readable

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered; the description still adds real context by disclosing that account-bound options (Pinterest board, Discord channel) are dropped and that media travels as organization-local references. It also states the return shape, though it does not describe size limits or error behavior for large templates.

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 purpose is front-loaded in the first clause, and the remaining clauses each carry distinct information: what the code is, the inverse tool, what is stripped, the org-binding caveat, and the return shape. No sentence is redundant despite the density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only export with an output schema, the description covers everything an agent needs: the operation, its inverse, omitted fields, and the key portability limitation. Return-value explanation is correctly kept brief since an output schema exists.

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 description coverage is 100%, with templateId pointing at list_templates and organizationId explaining the multi-org requirement, so the schema does the heavy lifting. The description reinforces the organization scoping ('this organization's library') but adds no new syntax, format, or edge-case detail for either parameter beyond the 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?

States a specific verb and resource ('Turn a template into a shareable code') and immediately defines what that code is (base64 of a JSON document). It distinguishes itself from the sibling import_template by naming it as the inverse operation, so an agent can pick between the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the counterpart tool (import_template) and the app's Import, making the round-trip pairing unambiguous. It also gives a when-not style constraint: the media references only mean something when imported back into the same organization, which warns the agent against treating the code as portable across orgs.

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