Skip to main content
Glama

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
NameRequiredDescriptionDefault
subaccount_sidYes

Implementation Reference

  • 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)
  • 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", )
  • 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

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/errajibadr/twilio_manager_mcp'

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