discord_login accepts 'token' as a required parameter with empty description. Credentials should NEVER be tool parameters, they enable secret leakage into logs and traces. Move token to server-side environment configuration and remove this parameter.
Parameter descriptions are missing or trivial across all 25 tools. The rubric baseline shows 100% of A+ tools have descriptions for every parameter. Example: discord_create_category's 'reason' parameter lacks a description explaining what it controls. Parameters named 'position', 'reason', 'emoji' are ambiguous without context.
CRITICAL: Remove 'token' parameter from discord_login. Configure Discord bot token via environment variable (process.env.DISCORD_TOKEN or similar) server-side. Never expose credentials as tool parameters.
Add parameter descriptions to ALL 25 tools. Every parameter (guildId, channelId, emoji, reason, position, limit, offset, etc.) must have a 1-2 sentence description explaining what it controls, its expected format, and valid range. Current state: most parameters lack any description.
Document output schemas for all 25 tools. For each tool, specify the structure and types of fields returned. Example for discord_send: '{message_id: string, channel_id: string, timestamp: string, author_id: string}'. This enables LLM planning of downstream calls.
Expand tool descriptions from single sentences to 2-3 sentences. Current descriptions are too short (under 100 chars on average). Follow the baseline: 194 chars typical for A+ tools. Example expansion for discord_create_category: 'Creates a new category in a Discord server to organize channels. Category IDs are required for discord_create_text_channel if you want channels in this category. Requires manage_channels permission.'
Add error recovery guidance to tool descriptions. For write/read tools that depend on IDs, include: 'If the [resource] is not found, call discord_list_servers() or discord_get_server_info() to discover available resources.' Example: discord_send description should say 'If channel not found, call discord_get_server_info(guildId) to list available channels.'
No output schemas documented for any of the 25 tools. The rubric requires that LLMs know what fields to expect so they can plan downstream calls. Tools like discord_send, discord_create_forum_post, and discord_search_messages return values, but there is no visible schema describing what fields the response contains. This forces LLMs to guess.
Destructive operations (discord_delete_category, discord_delete_channel, discord_delete_forum_post, discord_delete_message, discord_delete_webhook) have no confirmation step, dry-run mode, or undo tool. Agents can irreversibly delete content without safeguards. Add a confirm parameter or split into a 'prepare_delete' + 'confirm_delete' pattern.
Error handling and recovery guidance are not visible in tool descriptions. If discord_send fails because the channel_id is invalid, there is no guidance for the LLM: should it retry? Call discord_list_servers? Ask the user? Add error recovery patterns to each description (e.g. 'If the channel is not found, call discord_get_server_info() to list available channels').
discord_login tool is problematic. It accepts an optional 'token' parameter with an empty required list. This suggests the tool is meant to be called without parameters (token configured elsewhere) or with a token (credentials exposed). Clarify: is the token environment-configured (correct) or parameter-passed (dangerous)? Remove the parameter entirely and configure auth server-side.
Parameters like 'emoji' in discord_add_reaction, discord_remove_reaction, and discord_add_multiple_reactions lack format guidance. Should LLMs pass ':thumbsup:', '👍', the emoji name, or the Discord emoji ID? Without format constraints, LLMs will hallucinate invalid formats. Add enum or pattern constraints.
discord_search_messages has rich parameter definitions (enums for 'has', 'authorType', 'sortBy', 'sortOrder'; limits and offsets), but the description itself is only one sentence. Expand the tool description to explain what it does, when to use it vs. discord_read_messages, and any prerequisites (e.g. 'Requires guild_id; this tool searches across all channels in the server').
Inconsistent parameter naming: some tools use 'guildId', others use 'channelId', 'threadId', 'webhookId'. While the naming is consistent within Discord terminology, there are no descriptions explaining the relationship between these ID types. An LLM cannot infer that a guild contains channels, or that a channel contains threads. Add dependency hints to guide multi-step tool usage.
discord_read_messages and discord_search_messages both retrieve messages but use different interfaces. discord_read_messages takes channelId + limit; discord_search_messages takes guildId + multiple filters. No tool description clarifies when to use each (read is simpler, search is more powerful). Avoid LLM confusion by explaining the distinction in both descriptions.
discord_read_messagesdiscord_search_messages
Add format constraints for ambiguous parameters. discord_add_reaction's 'emoji' parameter should specify format (Unicode emoji vs. Discord emoji ID). discord_create_forum_post's 'tags' array should specify tag ID format. Add pattern or enum constraints.
Implement confirmation/dry-run pattern for destructive operations. For discord_delete_category, discord_delete_channel, discord_delete_forum_post, discord_delete_message, and discord_delete_webhook, add an optional 'confirm=true' parameter with description: 'Set to true to confirm deletion. Omit or set to false for a dry-run that validates the operation without deleting.'
Clarify tool usage relationships in descriptions. discord_create_category, discord_create_text_channel, discord_create_forum_post, and discord_list_servers all work with guild/server resources. Add a note like: 'You must have a valid guildId. Call discord_list_servers() first if you don't have one.'
Distinguish discord_read_messages vs. discord_search_messages in their descriptions. discord_read_messages retrieves the most recent N messages from a channel (simpler, faster); discord_search_messages searches across all channels in a guild with filters (more powerful but slower). Help LLMs pick the right one.
Add idempotency guarantees. If discord_send can safely be retried with the same parameters without creating duplicate messages, state this explicitly. If not, document the risk and recommend deduplication strategies.
For array parameters (tags in discord_create_forum_post, emojis in discord_add_multiple_reactions), specify max array length to prevent large payloads. Example: 'tags (array, max 5 items): Discord forum tags to apply to the post.'
Add rate-limiting guidance in tool descriptions or an overall server note: 'Discord API applies rate limits of X calls per minute per endpoint. Large batch operations may be rate-limited; consider adding delays between calls if needed.'