Skip to main content
Glama

update_connection

Modify an existing data connection in Polytomic by updating its name or configuration settings to maintain accurate data pipeline configurations.

Instructions

Update an existing connection in Polytomic.

Args: id: The connection ID to update name: Optional new name for the connection configuration: Optional JSON string with connection config

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
configurationNo

Implementation Reference

  • The handler for the 'update_connection' tool, which updates an existing connection in Polytomic using a PUT request.
    async def update_connection(
        id: str,
        name: str | None = None,
        configuration: str | None = None,
    ) -> str:
        """Update an existing connection in Polytomic.
    
        Args:
            id: The connection ID to update
            name: Optional new name for the connection
            configuration: Optional JSON string with connection config
        """
        current = await polytomic_request(f"/connections/{id}")
        current_data = current.get("data", current)
    
        body = {
            "name": name or current_data.get("name"),
            "type": current_data.get("type"),
            "configuration": json.loads(configuration) if configuration else current_data.get("configuration"),
        }
        result = await polytomic_request(f"/connections/{id}", method="PUT", body=body)
        return json.dumps(result, indent=2)

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