Skip to content

generated_tools.py passes accountId (camelCase) to InboxResource methods that expect account_id (snake_case) #1

@Systemsaholic

Description

@Systemsaholic

Bug

Six MCP tool handlers in late/mcp/generated_tools.py pass accountId=account_id instead of account_id=account_id when calling InboxResource methods. Since InboxResource._build_payload() already handles the snake_case to camelCase conversion internally, this results in the following error:

InboxResource.like_inbox_comment() received an unexpected keyword argument 'accountId'.

Affected Methods

  • inbox_update_inbox_conversation (~line 1056): accountId=account_id
  • inbox_send_inbox_message (~line 1093): accountId=account_id
  • inbox_hide_inbox_comment (~line 1240): accountId=account_id
  • inbox_like_inbox_comment (~line 1279): accountId=account_id
  • inbox_reply_to_inbox_review (~line 1365): accountId=account_id
  • inbox_delete_inbox_review_reply (~line 1381): accountId=account_id

Methods that are correct (for reference)

The following methods already use account_id=account_id and function correctly: inbox_reply_to_inbox_post, inbox_unhide_inbox_comment, inbox_unlike_inbox_comment, inbox_delete_inbox_comment.

Fix

Change accountId=account_id to account_id=account_id in all six methods listed above. This fix should also be applied in scripts/generate_mcp_tools.py to prevent the bug from reappearing during regeneration.

Version

late-sdk 1.2.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions