Skip to main content
Glama
purpleax

Fastly NGWAF MCP Server

by purpleax

get_context

Retrieve current Fastly NGWAF context including corporation and site names to manage web application security configurations.

Instructions

Get the current context (corp and site names)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'get_context' tool within the CallToolRequestSchema switch statement. Returns the current default corporation and site names from the global context object.
    case 'get_context': result = { context: { defaultCorpName: context.defaultCorpName, defaultSiteName: context.defaultSiteName, }, }; break;
  • Schema definition for the 'get_context' tool, specifying no input parameters required.
    name: 'get_context', description: 'Get the current context (corp and site names)', inputSchema: { type: 'object', properties: {}, }, },
  • server.js:814-816 (registration)
    Registration of the ListToolsRequestSchema handler, which returns the tools array containing the 'get_context' tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
  • Global context object that persists the defaultCorpName and defaultSiteName values retrieved by the 'get_context' tool.
    let context = {};

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