Skip to main content
Glama
purpleax

Fastly NGWAF MCP Server

by purpleax

get_context

Retrieve the current corporate and site names for web application security management using Fastly NGWAF MCP Server. Simplify context awareness in natural language-driven workflows.

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. Returns the current default corporation name and site name from the global context object.
    case 'get_context': result = { context: { defaultCorpName: context.defaultCorpName, defaultSiteName: context.defaultSiteName, }, };
  • Tool definition including name, description, and empty input schema for 'get_context'.
    name: 'get_context', description: 'Get the current context (corp and site names)', inputSchema: { type: 'object', properties: {}, }, },
  • server.js:814-816 (registration)
    Registration of the tools list handler, which includes 'get_context' in the returned tools array.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
  • Global context object used by the 'get_context' tool to store default corpName and siteName.
    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