get_regulatory_bundle_sid
Retrieve the regulatory bundle SID for a Twilio subaccount to manage compliance requirements and regulatory 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)Handler function implementing the get_regulatory_bundle_sid MCP tool, which delegates to AsyncTwilioManager.get_bundle_sid.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)Registration of the get_regulatory_bundle_sid tool using the FastMCP @mcp.tool decorator.@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)Supporting method in AsyncTwilioManager that retrieves the regulatory bundle SID by listing bundles and matching the 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