Skip to main content
Glama
UserAd

didlogic_mcp

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)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It mentions the return message ('IP removed successfully') but lacks details on permissions required, error conditions (e.g., if IP isn't whitelisted), or side effects (e.g., impact on SIP account access). This is inadequate for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose in the first sentence, followed by parameter and return details. It avoids unnecessary fluff, though the 'Args:' and 'Returns' sections could be integrated more smoothly into a single narrative flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deletion tool with no annotations and no output schema, the description is incomplete. It lacks critical context like success/failure behaviors, error handling, and security implications (e.g., whether this disables access). The return message is noted, but overall coverage is insufficient for safe agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('sipaccount_name' and 'ip') with clear descriptions. The description adds no additional meaning beyond what's in the schema, such as format examples or constraints, but meets the baseline since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Delete') and resource ('whitelisted IP from a SIP account'), making the purpose immediately understandable. It distinguishes from siblings like 'add_allowed_ip' by specifying removal rather than addition, though it doesn't explicitly contrast with other deletion tools like 'delete_destination' or 'delete_sip_account'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. While the description implies it's for removing IPs from whitelists, it doesn't specify prerequisites (e.g., IP must already be whitelisted), exclusions, or when to choose other tools like 'delete_sip_account' for broader account management.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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