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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:878-884 (handler)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, }, };
- server.js:430-436 (schema)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 }; });
- server.js:358-358 (helper)Global context object used by the 'get_context' tool to store default corpName and siteName.let context = {};