Skip to main content
Glama

update_bulk_sync

Modify an existing bulk data synchronization configuration by updating its name, schedule, source, or destination settings in Polytomic.

Instructions

Update an existing bulk sync in Polytomic.

Args: id: The bulk sync ID to update name: Optional new name schedule: Optional JSON for schedule destination_configuration: Optional JSON string with destination config source_configuration: Optional JSON string with source config

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
scheduleNo
destination_configurationNo
source_configurationNo

Implementation Reference

  • The handler function 'update_bulk_sync' responsible for updating a bulk sync.
    async def update_bulk_sync(
        id: str,
        name: str | None = None,
        schedule: str | None = None,
        destination_configuration: str | None = None,
        source_configuration: str | None = None,
    ) -> str:
        """Update an existing bulk sync in Polytomic.
    
        Args:
            id: The bulk sync ID to update
            name: Optional new name
            schedule: Optional JSON for schedule
            destination_configuration: Optional JSON string with destination config
            source_configuration: Optional JSON string with source config
        """
        current = await polytomic_request(f"/bulk/syncs/{id}")
        current_data = current.get("data", current)
    
        body = {
            "name": name or current_data.get("name"),
            "source_connection_id": current_data.get("source_connection_id"),
            "dest_connection_id": current_data.get("dest_connection_id"),
            "destination_configuration": json.loads(destination_configuration) if destination_configuration else current_data.get("destination_configuration"),
        }
        
        if schedule:
            body["schedule"] = json.loads(schedule)
        elif current_data.get("schedule"):
            body["schedule"] = current_data.get("schedule")
    
        if source_configuration:
            body["source_configuration"] = json.loads(source_configuration)
        elif current_data.get("source_configuration"):
            body["source_configuration"] = current_data.get("source_configuration")
    
        result = await polytomic_request(f"/bulk/syncs/{id}", method="PUT", body=body)
        return json.dumps(result, indent=2)
  • Registration of the update_bulk_sync tool using @mcp.tool() decorator.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/therevenueengineer/polytomic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server