Skip to main content
Glama
cappyeo

discord-mcp

templates_sync

Idempotent

Replace a Discord Guild Template with the current state of its source guild, so future template users receive an updated snapshot. Requires MANAGE_GUILD permission; existing guilds are unaffected.

Instructions

Purpose: Replace one Guild Template snapshot with the current state of its source guild.

Requires: Discord MANAGE_GUILD permission. This updates what future users receive from the template but does not change any existing guild.

Snapshot fidelity: After sync, use templates_diff to verify comparable drift. Discord may omit some source channel types from its official template serialization; the diff reports those separately rather than treating sync as a complete source-guild clone.

Returns: {template, untrusted_text}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYesSource guild whose current state to snapshot
audit_reasonNoReason recorded in Discord audit log
template_codeYesGuild Template code to sync

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "template": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "maxLength": 100,
      -            "minLength": 1,
      -            "pattern": "^[a-zA-Z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "created_at": {
      -            "type": "string"
      -          },
      -          "creator_id": {
      -            "description": "Discord user ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          "description": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "is_dirty": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "source_guild_id": {
      -            "description": "Discord guild (server) ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          "updated_at": {
      -            "type": "string"
      -          },
      -          "usage_count": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "use_url": {
      -            "format": "uri",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "name",
      -          "description",
      -          "usage_count",
      -          "creator_id",
      -          "created_at",
      -          "updated_at",
      -          "source_guild_id",
      -          "is_dirty",
      -          "use_url"
      -        ],
      -        "type": "object"
      -      },
      -      "untrusted_text": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "template",
      -      "untrusted_text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "template": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "maxLength": 100,
      +            "minLength": 1,
      +            "pattern": "^[a-zA-Z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "created_at": {
      +            "type": "string"
      +          },
      +          "creator_id": {
      +            "description": "Discord user ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "description": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "is_dirty": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "source_guild_id": {
      +            "description": "Discord guild (server) ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "updated_at": {
      +            "type": "string"
      +          },
      +          "usage_count": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "use_url": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "name",
      +          "description",
      +          "usage_count",
      +          "creator_id",
      +          "created_at",
      +          "updated_at",
      +          "source_guild_id",
      +          "is_dirty",
      +          "use_url"
      +        ],
      +        "type": "object"
      +      },
      +      "untrusted_text": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "template",
      +      "untrusted_text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.22.0

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond annotations: it discloses the required MANAGE_GUILD permission, clarifies that existing guilds are unaffected, explains potential fidelity limitations with Discord serialization, and specifies the return format. This complements the idempotentHint and non-destructive hints without contradiction.

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 description is compact and well-organized, using clear headings and short paragraphs. Each sentence serves a purpose, and the most critical information (purpose) is front-loaded. No redundant or extraneous content.

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 moderately complex sync operation, the description covers purpose, requirements, side effects, fidelity caveats, and return format. It even references the companion tool templates_diff for verification. With an output schema present and annotations covering idempotency and non-destructiveness, nothing critical is missing for an agent to invoke the tool correctly.

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 clear descriptions for all three parameters (guild_id, template_code, audit_reason). The tool description does not add significant extra meaning about the parameters themselves, so it aligns with the baseline of 3.

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 ('replace'), resource ('Guild Template snapshot'), and source ('current state of its source guild'), clearly distinguishing it from sibling operations like templates_modify or templates_create. The purpose is unambiguous and easily understood by an agent.

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?

The description provides clear context on when to use this tool (to update a template to reflect current guild state) and even recommends a follow-up verification step with templates_diff. However, it does not explicitly state when NOT to use it or name alternatives like templates_modify, leaving some ambiguity in tool selection.

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