Skip to main content
Glama
purpleax

Fastly NGWAF MCP Server

by purpleax

delete_site

Remove a site from Fastly NGWAF MCP Server by specifying corporation and site names to manage web application security efficiently.

Instructions

Delete a site

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
corpNameNoCorporation name (uses context default if not provided)
siteNameNoSite name (uses context default if not provided)

Implementation Reference

  • MCP tool handler for 'delete_site' in the CallToolRequestHandler's switch statement. It resolves the corporation and site names using resolveContext, checks if siteName is provided, and delegates to the client's deleteSite method.
    case 'delete_site': const { corpName: corpForDelete, siteName: siteForDelete } = resolveContext(typedArgs); if (!siteForDelete) { throw new Error('Site name is required. Please set context or provide siteName parameter.'); } result = await client.deleteSite(corpForDelete, siteForDelete); break;
  • server.js:524-534 (registration)
    Registration of the 'delete_site' tool in the tools array, returned by list_tools handler. Includes name, description, and input schema definition.
    { name: 'delete_site', description: 'Delete a site', inputSchema: { type: 'object', properties: { corpName: { type: 'string', description: 'Corporation name (uses context default if not provided)' }, siteName: { type: 'string', description: 'Site name (uses context default if not provided)' }, }, }, },
  • Implementation of the deleteSite method in FastlyNGWAFClient class, which sends the DELETE API request to remove the specified site and returns success confirmation.
    async deleteSite(corpName, siteName) { await this.api.delete(`/corps/${corpName}/sites/${siteName}`); return { success: true }; }

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/purpleax/FastlyMCP'

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