Skip to main content
Glama

app_configuration_kv_delete

Remove key-value pairs from Azure App Configuration to manage application settings and maintain clean configuration stores.

Instructions

Delete a key-value from Azure App Configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesThe key to delete
labelNoThe label of the key-value to delete (optional)

Implementation Reference

  • Handler logic for app_configuration_kv_delete: deletes the key-value using AzureAppConfigurationClient.delete_configuration_setting and formats the response.
    elif name == "app_configuration_kv_delete":
        # Delete a key-value
        result = app_config_client.delete_configuration_setting(
            key=arguments["key"],
            label=arguments.get("label", None)
        )
        
        if result:
            response = {
                "key": result.key,
                "label": result.label,
                "deleted": True
            }
        else:
            response = {
                "key": arguments["key"],
                "label": arguments.get("label", None),
                "deleted": False,
                "message": "Key not found"
            }
  • Input schema definition for the app_configuration_kv_delete tool, specifying parameters key (required) and label (optional).
    Tool(
        name="app_configuration_kv_delete",
        description="Delete a key-value from Azure App Configuration",
        inputSchema={
            "type": "object",
            "properties": {
                "key": {
                    "type": "string",
                    "description": "The key to delete",
                },
                "label": {
                    "type": "string",
                    "description": "The label of the key-value to delete (optional)",
                },
            },
            "required": ["key"],
        },
    ),
  • Tool registration via the list_tools handler, which returns get_azure_tools() including the app_configuration_kv_delete tool.
    @server.list_tools()
    async def list_tools() -> list[Tool]:
        """List available Azure tools"""
        logger.debug("Handling list_tools request")
        return get_azure_tools()  # Use get_azure_tools
  • Dispatch registration in call_tool that routes app_configuration_kv_delete to the specific handler function.
    elif name.startswith("app_configuration_"):
        return await handle_app_configuration_operations(
            azure_rm, name, arguments
        )  # Use app configuration handler

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/mashriram/azure_mcp_server'

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