Skip to content

Conversation

@byrro
Copy link
Member

@byrro byrro commented Nov 26, 2025

Six tools had to be removed because our current strategies to handle complex object arguments aren't sufficient. It is technically possible to support those (uncommon) cases, but it will require non-trivial refactoring in Moar complex-objects handling logic. Decided to leave this for a future Moar enhancement.

@byrro byrro requested review from a team, Copilot and jottakka November 26, 2025 19:47
@byrro byrro self-assigned this Nov 26, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes six HubSpot Events API tools that relied on complex object arguments due to limitations in the current Moar framework's handling of such structures. The version has been bumped to 1.0.0 to reflect this breaking change.

  • Removed six tool definitions and their implementations that couldn't be properly supported
  • Updated tool descriptions and parameter names in the Moar configuration for the remaining retrieve_event_completions tool
  • Cleaned up unused imports and validation logic

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Version bumped from 0.1.0 to 1.0.0
UpdateEventProperty.json Removed tool definition for updating event properties
SendEventData.json Removed tool definition for sending single event data
SendBatchEvents.json Removed tool definition for sending batch events
RetrieveEventCompletions.json Removed tool definition (now defined in Python code)
CreateEventProperty.json Removed tool definition for creating event properties
CreateCustomEventDefinition.json Removed tool definition for creating custom events
tools/init.py Removed six tool implementations, schema validation logic, and unused imports
Hubspot_Events.json Updated parameter names and descriptions for retrieve_event_completions tool

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Re-raise for 4xx errors or if max retries reached
raise
except httpx.RequestError:
except httpx.RequestError as e:
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception variable e is caught but never used. Either remove the variable binding or utilize it in error handling/logging.

Suggested change
except httpx.RequestError as e:
except httpx.RequestError:

Copilot uses AI. Check for mistakes.
@byrro byrro merged commit 169dff9 into main Dec 3, 2025
12 checks passed
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.

3 participants