Skip to main content
Glama

delete_allowed_ip

Remove a whitelisted IP address from a specified SIP account to manage access and security. Input the SIP account name and IP address to execute the removal.

Instructions

Delete an whitelisted IP from a SIP account

Args: sipaccount_name: Name of SIP account ip: IP address to remove from whitelist

Returns "IP removed successfully" when IP removed from whitelisted

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIP address to remove from whitelist
sipaccount_nameYesName of sip account

Implementation Reference

  • The core handler function for the 'delete_allowed_ip' tool. It uses Pydantic Field for input schema validation and makes a DELETE API call via base.call_didlogic_api to remove the IP from the SIP account's allowed IPs.
    @mcp.tool() async def delete_allowed_ip( ctx: Context, sipaccount_name: str | int = Field( description="Name of sip account" ), ip: str = Field(description="IP address to remove from whitelist") ) -> str: """ Delete an whitelisted IP from a SIP account Args: sipaccount_name: Name of SIP account ip: IP address to remove from whitelist Returns "IP removed successfully" when IP removed from whitelisted """ params = {"ip": ip} await base.call_didlogic_api( ctx, "DELETE", f"/v1/sipaccounts/{sipaccount_name}/allowed_ips", params=params ) return "IP removed successfully"
  • The registration point where the allowed_ips module (containing delete_allowed_ip handler) is registered to the FastMCP server instance.
    tools.allowed_ips.register_tools(mcp)

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/UserAd/didlogic_mcp'

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