Skip to main content
Glama
cappyeo

discord-mcp

guild_blueprint_apply

Destructive

Apply an approved Discord guild blueprint plan to the exact guild and bot after approval, with safe resumable execution and verification.

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

TableJSON 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

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": {
      -      "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

A5/5.0
Behavior5/5

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

The description provides extensive behavioral disclosure beyond the annotations. It details the safety checks performed (re-verifies bot identity, guild allowlist, plan target, approval ID, live permissions, role hierarchy, drift, and a guild-wide apply lock), states what it never does (never deletes resources, never grants its own permissions), and explains resumability via local checkpoints and Discord readback to prevent duplicates. It also discloses that the plan token is never echoed. These details give the agent a thorough understanding of side effects, safety guarantees, and retry behavior, exceeding the minimal annotation coverage.

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 well-structured with clear section headers (Purpose, When to use, Safety, Resume, Returns) and front-loads the core purpose. Every sentence contributes essential information—no filler or redundancy. The length is appropriate for the tool's complexity; it covers all critical aspects without being bloated. The formatting enhances readability and scannability for an agent.

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?

Given the tool's complexity (7 parameters, destructive action, multi-step safety checks, and a defined output), the description is complete. It covers the full lifecycle: when to call, what it does, safety constraints, resume behavior, and return value expectations. It does not need to repeat the output schema since that exists separately, and it appropriately references that schema's presence ('Returns: Bounded progress...'). No critical information is missing for an agent to invoke this tool correctly.

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

Parameters5/5

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

Although the schema provides 100% coverage of parameter descriptions, the tool description adds significant contextual meaning. It explains the distinction between plan_ref (preferred) and plan_token (legacy fallback), the requirement for exact IDs, the role of __confirm as authorization for a destructive operation, and the operation_budget as a mutation cap. It also ties parameters to the workflow ('Pass exactly one unchanged local plan_ref or legacy plan_token'). This goes well beyond the schema's individual field descriptions and clarifies how parameters interact and when each should be used.

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 explicitly states the tool's purpose: 'Apply a previously previewed guild_blueprint_plan safely to one explicit guild using the exact caller-owned bot.' It clearly identifies the verb (apply), the resource (guild_blueprint_plan), and the context (after preview and approval). It is immediately distinguishable from sibling tools like guild_blueprint_plan and guild_blueprint_compile by naming the action and its place in the workflow.

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' section is explicit: 'Call only after presenting the plan summary and receiving approval for its approval_id.' It specifies the exact inputs required (one unchanged plan_ref or plan_token, exact IDs, __confirm:true, MCP_DRY_RUN=false). It also provides guidance on resuming partial results, clarifying the circumstances under which the tool should be called again. This is comprehensive and leaves no ambiguity about prerequisites or alternatives.

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