naftiko: 1.0.0-alpha2 info: label: Fastly DDoS Protection — Rules description: Get and update individual Fastly DDoS Protection rules. tags: [Fastly, DDoS Protection, Security, Rules] created: '2026-05-22' modified: '2026-05-22' binds: - namespace: env keys: { FASTLY_API_KEY: FASTLY_API_KEY } capability: consumes: - type: http namespace: ddos-protection-rules baseUri: https://api.fastly.com description: Fastly DDoS Protection rule management. resources: - name: rule path: /ddos-protection/v1/rules/{rule_id} operations: - { name: getrule, method: GET, description: Get a rule by ID, outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ] } - { name: updaterule, method: PATCH, description: Update rule, outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ] } authentication: { type: apikey, key: Fastly-Key, value: '{{env.FASTLY_API_KEY}}', placement: header } exposes: - type: rest namespace: ddos-protection-rules-rest port: 8080 description: REST adapter. resources: - path: /v1/ddos-protection/rules/{rule-id} name: rule description: Single DDoS rule. operations: - { method: GET, name: getrule, description: Get DDoS rule, call: ddos-protection-rules.getrule, outputParameters: [ { type: object, mapping: $. } ] } - { method: PATCH, name: updaterule, description: Update DDoS rule, call: ddos-protection-rules.updaterule, outputParameters: [ { type: object, mapping: $. } ] } - type: mcp namespace: ddos-protection-rules-mcp port: 9090 transport: http description: MCP adapter. tools: - { name: get-ddos-rule, description: Get a Fastly DDoS Protection rule, hints: { readOnly: true, destructive: false, idempotent: true }, call: ddos-protection-rules.getrule, outputParameters: [ { type: object, mapping: $. } ] } - { name: update-ddos-rule, description: Update a Fastly DDoS Protection rule, hints: { readOnly: false, destructive: false, idempotent: true }, call: ddos-protection-rules.updaterule, outputParameters: [ { type: object, mapping: $. } ] }