Home / Servers / Discord API / update_guild_role
PATCH /guilds/{guild_id}/roles/{role_id}
An MCP tool from the Discord API server, hosted on mcp.hjlabs.in.
PATCH /guilds/{guild_id}/roles/{role_id} [PATCH /guilds/{guild_id}/roles/{role_id}]
Name on the gateway: discord_api__update_guild_role · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
guild_id required | string | guild_id parameter |
role_id required | string | role_id parameter |
name | string | |
permissions | integer | |
color | integer | |
colors | object | |
hoist | boolean | |
mentionable | boolean | |
icon | string | |
unicode_emoji | string |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "discord_api__update_guild_role",
"arguments": {
"guild_id": "…",
"role_id": "…"
}
}Or connect the Discord API server directly, which lists 250 tools including this one:
claude mcp add --transport http hj-discord-api https://mcp.hjlabs.in/mcp/discord-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the patch /guilds/{guild_id}/roles/{role_id} tool with guild_id set to ….
More from Discord API
- GET /applications/@me
- PATCH /applications/@me
- GET /applications/{application_id}
- PATCH /applications/{application_id}
- GET /applications/{application_id}/activity-instances/{instance_id}
- POST /applications/{application_id}/attachment
- GET /applications/{application_id}/commands
- PUT /applications/{application_id}/commands
- All 250