Skip to content

fix: Rename duplicate 'schedule_post' tool to 'schedule_post_advanced'#3

Open
tuxxon wants to merge 1 commit into
baguskto:mainfrom
tuxxon:fix/duplicate-schedule-post-tool-name
Open

fix: Rename duplicate 'schedule_post' tool to 'schedule_post_advanced'#3
tuxxon wants to merge 1 commit into
baguskto:mainfrom
tuxxon:fix/duplicate-schedule-post-tool-name

Conversation

@tuxxon

@tuxxon tuxxon commented Feb 23, 2026

Copy link
Copy Markdown

Summary

  • Fixes duplicate schedule_post tool name that violates MCP protocol's unique tool name requirement
  • Renames the advanced version (with automation_settings, auto_optimize_time, auto_hashtags) to schedule_post_advanced
  • The basic schedule_post tool remains unchanged

Problem

The server registers two tools with the same name schedule_post:

  1. schedule_post (basic) — simple scheduling with scheduled_publish_time
  2. schedule_post (advanced) — automation features like auto_optimize_time, recurring, auto_hashtags

This causes MCP clients (e.g., Claude Code) to fail with:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools: Tool names must be unique."}}

Changes

  • src/index.ts: Renamed the second schedule_post tool definition to schedule_post_advanced
  • src/index.ts: Updated the corresponding case 'schedule_post' handler to case 'schedule_post_advanced'

Test plan

  • Build succeeds (npm run build)
  • Verified only one schedule_post and one schedule_post_advanced in built output
  • Register server in Claude Code and confirm no duplicate tool name error

Fixes #2

🤖 Generated with Claude Code

The server registered two tools with the same name 'schedule_post',
which violates MCP protocol's unique tool name requirement and causes
Claude API error: "tools: Tool names must be unique."

Renamed the advanced version (with automation_settings, auto_optimize_time,
auto_hashtags, etc.) to 'schedule_post_advanced' to resolve the conflict.

Fixes baguskto#2

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Duplicate tool name 'schedule_post' causes Claude API error

2 participants