@vercel[bot]1w ago
@Adit-Jain-srm is attempting to deploy a commit to the Composio Team on Vercel.
A member of the Team first needs to authorize it.
substitute_reserved_python_keywords to sanitize JSON Schema property keys that contain characters illegal per Anthropic's key pattern ^[a-zA-Z0-9_.-]{1,64}$$ with dollar_ and @ with at_ (readable alternatives)_ for any remaining illegal charactersreinstate_reserved_python_keywords restores the correct OData parameter name at tool execution timeThe OneDrive toolkit MCP exposes Microsoft Graph OData parameters (, , , , @microsoft.graph.conflictBehavior) as JSON Schema property keys. Anthropic's API rejects these because $ and @ are not in the allowed character set.
Affected tools: copy_item and list_drive_item_activities.
Extend the existing property-key sanitization in python/composio/utils/shared.py (which already handles Python reserved keywords) to also handle characters that violate LLM provider constraints. The fix is minimal and only touches the shared sanitization layer, not individual tool definitions.
dollar_top and matches the Anthropic pattern@microsoft.graph.conflictBehavior becomes at_microsoft.graph.conflictBehaviorclass, for) still use the existing _rs suffixFixes #3500
@Adit-Jain-srm is attempting to deploy a commit to the Composio Team on Vercel.
A member of the Team first needs to authorize it.