Home / Servers / Discord API / guild_search
GET /guilds/{guild_id}/messages/search
An MCP tool from the Discord API server, hosted on mcp.hjlabs.in.
GET /guilds/{guild_id}/messages/search [GET /guilds/{guild_id}/messages/search]
Name on the gateway: discord_api__guild_search · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
guild_id required | string | guild_id parameter |
sort_by | string | sort_by parameter |
sort_order | string | sort_order parameter |
content | string | content parameter |
slop | integer | slop parameter |
author_id | array | author_id parameter |
author_type | array | author_type parameter |
mentions | array | mentions parameter |
mentions_role_id | array | mentions_role_id parameter |
replied_to_user_id | array | replied_to_user_id parameter |
replied_to_message_id | array | replied_to_message_id parameter |
mention_everyone | boolean | mention_everyone parameter |
min_id | string | min_id parameter |
max_id | string | max_id parameter |
limit | integer | limit parameter |
offset | integer | offset parameter |
has | array | has parameter |
link_hostname | array | link_hostname parameter |
embed_provider | array | embed_provider parameter |
embed_type | array | embed_type parameter |
attachment_extension | array | attachment_extension parameter |
attachment_filename | array | attachment_filename parameter |
pinned | boolean | pinned parameter |
include_nsfw | boolean | include_nsfw parameter |
channel_id | array | channel_id parameter |
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__guild_search",
"arguments": {
"guild_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 get /guilds/{guild_id}/messages/search 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