list_corps
Retrieve all corporations accessible to your authenticated account for managing web application security configurations in Fastly's Next-Gen WAF.
Instructions
List all corporations accessible to the authenticated user
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_corps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:50-53 (handler)Core implementation of listing corporations via Fastly NGWAF API GET /corps endpoint.
async listCorps() { const response = await this.api.get('/corps'); return response.data; } - server.js:897-899 (handler)MCP CallToolRequestSchema handler dispatch for the 'list_corps' tool, invoking the client method.
case 'list_corps': result = await client.listCorps(); break; - server.js:448-454 (schema)Tool schema definition including name, description, and empty input schema for list_corps.
name: 'list_corps', description: 'List all corporations accessible to the authenticated user', inputSchema: { type: 'object', properties: {}, }, }, - server.js:814-816 (registration)Registration handler for ListToolsRequestSchema that returns the tools list including list_corps.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });