get_regulatory_bundle_sid
Retrieve the regulatory bundle SID for a Twilio subaccount to manage compliance requirements and documentation.
Instructions
Get the regulatory bundle SID for a Twilio subaccount
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subaccount_sid | Yes |
Implementation Reference
- twilio_manager_mcp.py:97-108 (handler)The MCP tool handler function that retrieves the regulatory bundle SID for a given subaccount SID by calling the AsyncTwilioManager helper.async def get_regulatory_bundle_sid(subaccount_sid: str) -> str | None: """ Get the regulatory bundle SID for a Twilio subaccount Args: subaccount_sid: The SID of the Twilio subaccount Returns: The regulatory bundle SID for the Twilio subaccount """ print(f"Getting regulatory bundle SID for subaccount {subaccount_sid}") async with async_twilio_manager: return await async_twilio_manager.get_bundle_sid(subaccount_sid)
- twilio_manager_mcp.py:93-96 (registration)The @mcp.tool decorator registering the tool with its name and description.@mcp.tool( name="get_regulatory_bundle_sid", description="Get the regulatory bundle SID for a Twilio subaccount", )
- api/async_twilio_api.py:207-216 (helper)The AsyncTwilioManager method that implements the core logic: lists all regulatory bundles and returns the SID of the one associated with the given subaccount SID.async def get_bundle_sid(self, subaccount_sid: Optional[str] = None) -> Optional[str]: """ Get the bundle SID for a subaccount. """ bundles = await self.client.numbers.v2.regulatory_compliance.bundles.list_async() for bundle in bundles: if bundle.account_sid == subaccount_sid: return bundle.sid return None