Skip to main content
Glama
purpleax

Fastly NGWAF MCP Server

by purpleax

delete_site

Remove a web application from Fastly's Next-Gen WAF protection by deleting its site configuration using corporation and site name parameters.

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

  • Handler for the 'delete_site' tool: resolves corporation and site names from context or arguments, validates siteName, calls the client.deleteSite method, and assigns the result.
    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;
  • Helper method in FastlyNGWAFClient class that performs the actual API deletion of a site by sending a DELETE request to the Fastly NGWAF API.
    async deleteSite(corpName, siteName) { await this.api.delete(`/corps/${corpName}/sites/${siteName}`); return { success: true };
  • server.js:524-534 (registration)
    Tool registration in the tools array, including name, description, and input schema. This is returned by the ListTools handler.
    { 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)' }, }, }, },
  • Input schema definition for the delete_site tool, specifying corpName and siteName as optional string parameters.
    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)' }, }, },

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