Skip to main content
Glama
discord-mcp

discord-mcp

guild_blueprint_apply

Destructive

Applies an approved blueprint plan to a Discord guild, verifying bot identity, permissions, and drift before each write. Resumes safely after partial runs without duplicating resources.

Instructions

Purpose: Apply a previously previewed guild_blueprint_plan safely to one explicit guild using the exact caller-owned bot. The operation graph is checkpointed locally after every successful mutation and reconciled against Discord before every resume.

When to use: Call only after presenting the plan summary and receiving approval for its approval_id. Pass exactly one unchanged local plan_ref or legacy plan_token, exact guild/bot IDs, __confirm:true, and run with MCP_DRY_RUN=false.

Safety: The tool re-verifies bot identity, guild allowlist, plan target, approval ID, live permissions, role hierarchy, drift, and a guild-wide apply lock before writing. It never deletes resources, never grants its own permissions, and stops on ambiguity or mismatched bound resources.

Resume: A partial result is safe to call again with the same inputs. Discord readback plus a local append-only checkpoint prevents duplicate roles, channels, AutoMod rules, and Components V2 publications.

Returns: Bounded progress, safe error codes, remaining work, bindings, and final Discord readback evidence. A successful terminal result also persists and returns authenticated Activity Evidence with policy invariants clearly separated from the execution and live-readback record. The plan token is never echoed.

Input Schema

NameRequiredDescriptionDefault
guild_idYesExplicit target guild; configured defaults are never accepted
plan_refNoPreferred private local reference returned by guild_blueprint_plan; pass this field and omit plan_token
__confirmNoSet true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned.
plan_tokenNoLegacy fallback returned by guild_blueprint_plan; use only when plan_ref is null and omit plan_ref
approval_idYesApproval ID shown by guild_blueprint_plan
expected_bot_idYesExact caller-owned bot ID locked by the selected profile
operation_budgetNoMaximum Discord mutations attempted in this call; resume with the same plan if needed

Output 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": {
      -      "attempts": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "error_code": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "operation_id": {
      -              "type": "string"
      -            },
      -            "resource_id": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "status": {
      -              "enum": [
      -                "completed",
      -                "failed"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "operation_id",
      -            "status",
      -            "resource_id",
      -            "error_code"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 50,
      -        "type": "array"
      -      },
      -      "blockers": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
      -              "type": "string"
      -            },
      -            "message": {
      -              "maxLength": 500,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "recovery_hint": {
      -              "maxLength": 500,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "resource": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 160,
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message",
      -            "resource",
      -            "recovery_hint"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "blueprint_id": {
      -        "anyOf": [
      -          {
      -            "pattern": "^sha256:[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "code": {
      -                "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
      -                "type": "string"
      -              },
      -              "operation_id": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "retriable": {
      -                "type": "boolean"
      -              },
      -              "retry_after_ms": {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "status": {
      -                "anyOf": [
      -                  {
      -                    "maximum": 599,
      -                    "minimum": 100,
      -                    "type": "integer"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "operation_id",
      -              "code",
      -              "retriable",
      -              "status"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "evidence": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "activity": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "evidence_id": {
      -                    "pattern": "^sha256:[a-f0-9]{64}$",
      -                    "type": "string"
      -                  },
      -                  "observed": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "bindings": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "automod_rules": {
      -                            "additionalProperties": {
      -                              "pattern": "^\\d{17,20}$",
      -                              "type": "string"
      -                            },
      -                            "propertyNames": {
      -                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                              "type": "string"
      -                            },
      -                            "type": "object"
      -                          },
      -                          "categories": {
      -                            "additionalProperties": {
      -                              "pattern": "^\\d{17,20}$",
      -                              "type": "string"
      -                            },
      -                            "propertyNames": {
      -                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                              "type": "string"
      -                            },
      -                            "type": "object"
      -                          },
      -                          "channels": {
      -                            "additionalProperties": {
      -                              "pattern": "^\\d{17,20}$",
      -                              "type": "string"
      -                            },
      -                            "propertyNames": {
      -                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                              "type": "string"
      -                            },
      -                            "type": "object"
      -                          },
      -                          "publications": {
      -                            "additionalProperties": {
      -                              "pattern": "^\\d{17,20}$",
      -                              "type": "string"
      -                            },
      -                            "propertyNames": {
      -                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                              "type": "string"
      -                            },
      -                            "type": "object"
      -                          },
      -                          "roles": {
      -                            "additionalProperties": {
      -                              "pattern": "^\\d{17,20}$",
      -                              "type": "string"
      -                            },
      -                            "propertyNames": {
      -                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                              "type": "string"
      -                            },
      -                            "type": "object"
      -                          }
      -                        },
      -                        "required": [
      -                          "roles",
      -                          "categories",
      -                          "channels",
      -                          "automod_rules",
      -                          "publications"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "blueprint_readback_match": {
      -                        "const": true,
      -                        "type": "boolean"
      -                      },
      -                      "checkpoint_version": {
      -                        "maximum": 9007199254740991,
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      "completed_operation_ids": {
      -                        "items": {
      -                          "maxLength": 160,
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "maxItems": 128,
      -                        "type": "array"
      -                      },
      -                      "final_snapshot_id": {
      -                        "pattern": "^sha256:[a-f0-9]{64}$",
      -                        "type": "string"
      -                      },
      -                      "initial_snapshot_id": {
      -                        "pattern": "^sha256:[a-f0-9]{64}$",
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "initial_snapshot_id",
      -                      "final_snapshot_id",
      -                      "checkpoint_version",
      -                      "completed_operation_ids",
      -                      "bindings",
      -                      "blueprint_readback_match"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "plan_invariants": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "expected_counts": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "automod": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "categories": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "channels": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "components_v2": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "guild": {
      -                            "const": 1,
      -                            "type": "number"
      -                          },
      -                          "identity": {
      -                            "const": 2,
      -                            "type": "number"
      -                          },
      -                          "onboarding": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "ordering": {
      -                            "const": 2,
      -                            "type": "number"
      -                          },
      -                          "roles": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "welcome_screen": {
      -                            "const": 1,
      -                            "type": "number"
      -                          }
      -                        },
      -                        "required": [
      -                          "identity",
      -                          "roles",
      -                          "categories",
      -                          "channels",
      -                          "ordering",
      -                          "guild",
      -                          "welcome_screen",
      -                          "onboarding",
      -                          "automod",
      -                          "components_v2"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "safety_policy": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "bot_permission_grants": {
      -                            "const": 0,
      -                            "type": "number"
      -                          },
      -                          "dangerous_generated_permissions": {
      -                            "const": 0,
      -                            "type": "number"
      -                          },
      -                          "discord_managed_role_mutations": {
      -                            "const": 0,
      -                            "type": "number"
      -                          },
      -                          "source_permissions_applied": {
      -                            "const": false,
      -                            "type": "boolean"
      -                          }
      -                        },
      -                        "required": [
      -                          "source_permissions_applied",
      -                          "dangerous_generated_permissions",
      -                          "bot_permission_grants",
      -                          "discord_managed_role_mutations"
      -                        ],
      -                        "type": "object"
      -                      }
      -                    },
      -                    "required": [
      -                      "expected_counts",
      -                      "safety_policy"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "recorded_at": {
      -                    "format": "date-time",
      -                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                    "type": "string"
      -                  },
      -                  "schema_version": {
      -                    "const": "guild_blueprint_activity_evidence.v1",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "schema_version",
      -                  "evidence_id",
      -                  "recorded_at",
      -                  "plan_invariants",
      -                  "observed"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "bindings": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "automod_rules": {
      -                "additionalProperties": {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                "propertyNames": {
      -                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              },
      -              "categories": {
      -                "additionalProperties": {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                "propertyNames": {
      -                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              },
      -              "channels": {
      -                "additionalProperties": {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                "propertyNames": {
      -                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              },
      -              "publications": {
      -                "additionalProperties": {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                "propertyNames": {
      -                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              },
      -              "roles": {
      -                "additionalProperties": {
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                "propertyNames": {
      -                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "roles",
      -              "categories",
      -              "channels",
      -              "automod_rules",
      -              "publications"
      -            ],
      -            "type": "object"
      -          },
      -          "checkpoint_persisted": {
      -            "type": "boolean"
      -          },
      -          "completed_operation_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "maxItems": 256,
      -            "type": "array"
      -          },
      -          "guild_verified": {
      -            "type": "boolean"
      -          },
      -          "identity_verified": {
      -            "type": "boolean"
      -          },
      -          "readback": {
      -            "enum": [
      -              "match",
      -              "drift",
      -              "not_run"
      -            ],
      -            "type": "string"
      -          },
      -          "snapshot_id_after": {
      -            "anyOf": [
      -              {
      -                "pattern": "^sha256:[a-f0-9]{64}$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "snapshot_id_before": {
      -            "anyOf": [
      -              {
      -                "pattern": "^sha256:[a-f0-9]{64}$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "identity_verified",
      -          "guild_verified",
      -          "readback",
      -          "snapshot_id_before",
      -          "snapshot_id_after",
      -          "checkpoint_persisted",
      -          "bindings",
      -          "completed_operation_ids",
      -          "activity"
      -        ],
      -        "type": "object"
      -      },
      -      "next_action": {
      -        "enum": [
      -          "done",
      -          "resume",
      -          "replan",
      -          "fix_configuration"
      -        ],
      -        "type": "string"
      -      },
      -      "plan_id": {
      -        "anyOf": [
      -          {
      -            "pattern": "^sha256:[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "progress": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "attempted_this_call": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "checkpoint_version": {
      -            "anyOf": [
      -              {
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "completed_total": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "initial_planned": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "planned_this_call": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "remaining": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "initial_planned",
      -          "planned_this_call",
      -          "attempted_this_call",
      -          "completed_total",
      -          "remaining",
      -          "checkpoint_version"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "enum": [
      -          "complete",
      -          "already_current",
      -          "partial",
      -          "blocked",
      -          "busy",
      -          "stale"
      -        ],
      -        "type": "string"
      -      },
      -      "target": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "bot_id": {
      -            "description": "Discord user ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          "guild_id": {
      -            "description": "Discord guild (server) ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "guild_id",
      -          "bot_id"
      -        ],
      -        "type": "object"
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "plan_id",
      -      "blueprint_id",
      -      "target",
      -      "progress",
      -      "attempts",
      -      "blockers",
      -      "error",
      -      "evidence",
      -      "next_action",
      -      "warnings"
      -    ],
      -    "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": {
      +      "attempts": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "error_code": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "operation_id": {
      +              "type": "string"
      +            },
      +            "resource_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "status": {
      +              "enum": [
      +                "completed",
      +                "failed"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "operation_id",
      +            "status",
      +            "resource_id",
      +            "error_code"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 50,
      +        "type": "array"
      +      },
      +      "blockers": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
      +              "type": "string"
      +            },
      +            "message": {
      +              "maxLength": 500,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "recovery_hint": {
      +              "maxLength": 500,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "resource": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 160,
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message",
      +            "resource",
      +            "recovery_hint"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "blueprint_id": {
      +        "anyOf": [
      +          {
      +            "pattern": "^sha256:[a-f0-9]{64}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "code": {
      +                "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
      +                "type": "string"
      +              },
      +              "operation_id": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "retriable": {
      +                "type": "boolean"
      +              },
      +              "retry_after_ms": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "status": {
      +                "anyOf": [
      +                  {
      +                    "maximum": 599,
      +                    "minimum": 100,
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "operation_id",
      +              "code",
      +              "retriable",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "evidence": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "activity": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "evidence_id": {
      +                    "pattern": "^sha256:[a-f0-9]{64}$",
      +                    "type": "string"
      +                  },
      +                  "observed": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "bindings": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "automod_rules": {
      +                            "additionalProperties": {
      +                              "pattern": "^\\d{17,20}$",
      +                              "type": "string"
      +                            },
      +                            "propertyNames": {
      +                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                              "type": "string"
      +                            },
      +                            "type": "object"
      +                          },
      +                          "categories": {
      +                            "additionalProperties": {
      +                              "pattern": "^\\d{17,20}$",
      +                              "type": "string"
      +                            },
      +                            "propertyNames": {
      +                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                              "type": "string"
      +                            },
      +                            "type": "object"
      +                          },
      +                          "channels": {
      +                            "additionalProperties": {
      +                              "pattern": "^\\d{17,20}$",
      +                              "type": "string"
      +                            },
      +                            "propertyNames": {
      +                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                              "type": "string"
      +                            },
      +                            "type": "object"
      +                          },
      +                          "publications": {
      +                            "additionalProperties": {
      +                              "pattern": "^\\d{17,20}$",
      +                              "type": "string"
      +                            },
      +                            "propertyNames": {
      +                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                              "type": "string"
      +                            },
      +                            "type": "object"
      +                          },
      +                          "roles": {
      +                            "additionalProperties": {
      +                              "pattern": "^\\d{17,20}$",
      +                              "type": "string"
      +                            },
      +                            "propertyNames": {
      +                              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                              "type": "string"
      +                            },
      +                            "type": "object"
      +                          }
      +                        },
      +                        "required": [
      +                          "roles",
      +                          "categories",
      +                          "channels",
      +                          "automod_rules",
      +                          "publications"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "blueprint_readback_match": {
      +                        "const": true,
      +                        "type": "boolean"
      +                      },
      +                      "checkpoint_version": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "completed_operation_ids": {
      +                        "items": {
      +                          "maxLength": 160,
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "maxItems": 128,
      +                        "type": "array"
      +                      },
      +                      "final_snapshot_id": {
      +                        "pattern": "^sha256:[a-f0-9]{64}$",
      +                        "type": "string"
      +                      },
      +                      "initial_snapshot_id": {
      +                        "pattern": "^sha256:[a-f0-9]{64}$",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "initial_snapshot_id",
      +                      "final_snapshot_id",
      +                      "checkpoint_version",
      +                      "completed_operation_ids",
      +                      "bindings",
      +                      "blueprint_readback_match"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "plan_invariants": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "expected_counts": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "automod": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "categories": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "channels": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "components_v2": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "guild": {
      +                            "const": 1,
      +                            "type": "number"
      +                          },
      +                          "identity": {
      +                            "const": 2,
      +                            "type": "number"
      +                          },
      +                          "onboarding": {
      +                            "exclusiveMinimum": 0,
      +                            "maximum": 9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "ordering": {
      +                            "const": 2,
      +                            "type": "number"
      +                          },
      +                          "roles": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "welcome_screen": {
      +                            "const": 1,
      +                            "type": "number"
      +                          }
      +                        },
      +                        "required": [
      +                          "identity",
      +                          "roles",
      +                          "categories",
      +                          "channels",
      +                          "ordering",
      +                          "guild",
      +                          "welcome_screen",
      +                          "onboarding",
      +                          "automod",
      +                          "components_v2"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "safety_policy": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "bot_permission_grants": {
      +                            "const": 0,
      +                            "type": "number"
      +                          },
      +                          "dangerous_generated_permissions": {
      +                            "const": 0,
      +                            "type": "number"
      +                          },
      +                          "discord_managed_role_mutations": {
      +                            "const": 0,
      +                            "type": "number"
      +                          },
      +                          "source_permissions_applied": {
      +                            "const": false,
      +                            "type": "boolean"
      +                          }
      +                        },
      +                        "required": [
      +                          "source_permissions_applied",
      +                          "dangerous_generated_permissions",
      +                          "bot_permission_grants",
      +                          "discord_managed_role_mutations"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    },
      +                    "required": [
      +                      "expected_counts",
      +                      "safety_policy"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "recorded_at": {
      +                    "format": "date-time",
      +                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                    "type": "string"
      +                  },
      +                  "schema_version": {
      +                    "const": "guild_blueprint_activity_evidence.v1",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "schema_version",
      +                  "evidence_id",
      +                  "recorded_at",
      +                  "plan_invariants",
      +                  "observed"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "bindings": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "automod_rules": {
      +                "additionalProperties": {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                "propertyNames": {
      +                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "categories": {
      +                "additionalProperties": {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                "propertyNames": {
      +                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "channels": {
      +                "additionalProperties": {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                "propertyNames": {
      +                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "publications": {
      +                "additionalProperties": {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                "propertyNames": {
      +                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "roles": {
      +                "additionalProperties": {
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                "propertyNames": {
      +                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "roles",
      +              "categories",
      +              "channels",
      +              "automod_rules",
      +              "publications"
      +            ],
      +            "type": "object"
      +          },
      +          "checkpoint_persisted": {
      +            "type": "boolean"
      +          },
      +          "completed_operation_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "maxItems": 256,
      +            "type": "array"
      +          },
      +          "guild_verified": {
      +            "type": "boolean"
      +          },
      +          "identity_verified": {
      +            "type": "boolean"
      +          },
      +          "readback": {
      +            "enum": [
      +              "match",
      +              "drift",
      +              "not_run"
      +            ],
      +            "type": "string"
      +          },
      +          "snapshot_id_after": {
      +            "anyOf": [
      +              {
      +                "pattern": "^sha256:[a-f0-9]{64}$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "snapshot_id_before": {
      +            "anyOf": [
      +              {
      +                "pattern": "^sha256:[a-f0-9]{64}$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "identity_verified",
      +          "guild_verified",
      +          "readback",
      +          "snapshot_id_before",
      +          "snapshot_id_after",
      +          "checkpoint_persisted",
      +          "bindings",
      +          "completed_operation_ids",
      +          "activity"
      +        ],
      +        "type": "object"
      +      },
      +      "next_action": {
      +        "enum": [
      +          "done",
      +          "resume",
      +          "replan",
      +          "fix_configuration"
      +        ],
      +        "type": "string"
      +      },
      +      "plan_id": {
      +        "anyOf": [
      +          {
      +            "pattern": "^sha256:[a-f0-9]{64}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "progress": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "attempted_this_call": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "checkpoint_version": {
      +            "anyOf": [
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "completed_total": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "initial_planned": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "planned_this_call": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "remaining": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "initial_planned",
      +          "planned_this_call",
      +          "attempted_this_call",
      +          "completed_total",
      +          "remaining",
      +          "checkpoint_version"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "enum": [
      +          "complete",
      +          "already_current",
      +          "partial",
      +          "blocked",
      +          "busy",
      +          "stale"
      +        ],
      +        "type": "string"
      +      },
      +      "target": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "bot_id": {
      +            "description": "Discord user ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "guild_id": {
      +            "description": "Discord guild (server) ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "guild_id",
      +          "bot_id"
      +        ],
      +        "type": "object"
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "plan_id",
      +      "blueprint_id",
      +      "target",
      +      "progress",
      +      "attempts",
      +      "blockers",
      +      "error",
      +      "evidence",
      +      "next_action",
      +      "warnings"
      +    ],
      +    "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.8/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-readOnly, but the description goes further: it lists the pre-write re-verifications (bot identity, guild allowlist, permissions, role hierarchy, drift, apply lock), the checkpoint-after-every-mutation behavior, and that it never deletes or self-grants. The resume paragraph is a nuanced take on idempotentHint=false: repeated calls continue rather than duplicate, which is the key side-effect nuance an agent needs.

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?

Labeled sections (Purpose / When to use / Safety / Resume / Returns) make it scannable and front-loaded, and nearly every sentence carries operational information. The 'Returns' paragraph is somewhat redundant for an agent that already has the output schema, which keeps it just short of a 5.

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 destructive, multi-step, resumable mutation this covers the gaps that matter: authorization prerequisites, dry-run gating, failure/ambiguity handling, and resume safety. Return handling is a bonus since an output schema already exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines all seven parameters; the baseline would be 3. The description adds real meaning on top: the plan_ref must be 'unchanged', the mutual exclusivity of plan_ref/plan_token is stated behaviorally, and it surfaces the MCP_DRY_RUN=false requirement that the schema only alludes to under __confirm.

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 object: applying a 'previously previewed `guild_blueprint_plan`' to 'one explicit guild' with 'the exact caller-owned bot'. This cleanly separates it from guild_blueprint_plan (which produces the plan) and from generic guild_change_apply, without the agent needing to open a 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?

The 'When to use' block gives explicit preconditions (present the plan summary, receive approval for its approval_id, pass exactly one unchanged plan_ref or plan_token, __confirm:true, MCP_DRY_RUN=false). It also gives a resume rule — call again with the same inputs after a partial result — which is the main misuse risk for this tool.

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