Skip to main content
Glama
logic-arts-official

scaleway-ops-mcp-server

Create a Scaleway Audit Trail custom alert rule

scaleway_audit_create_custom_alert_rule

Create a custom Audit Trail alert rule using a CEL expression to define match conditions, firing when a specified number of matching events occur within a defined evaluation window.

Instructions

Create a custom Audit Trail alert rule: a CEL expression evaluated against incoming audit events, firing when at least occurrences matching events land within evaluation_window. Metadata-only edits later via scaleway_audit_update_custom_alert_rule; the query itself cannot be changed in place - to change the logic, create a new rule and delete the old one. Needs more than AuditTrailReadOnly on THIS server's own credential (read-only covers just the query tools) - if the call fails with permissions_denied, grant the Audit Trail write permission set via scaleway_iam_set_policy_rules. CAVEAT (live-verified 2026-08-18): Scaleway documents the custom-alert-rules endpoints, but the deployed API (fr-par) returns HTTP 501 'unknown method' for every custom-alert-rules method - this tool is kept for when Scaleway implements them and currently surfaces that error verbatim. Don't retry on 501; the preconfigured rules via scaleway_audit_list_alert_rules are the working alternative today.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the custom alert rule.
queryYesCEL (Common Expression Language) expression defining the match, evaluated against incoming audit events. Scaleway does not document the full field surface here - an invalid expression is rejected by the API with the reason in the error message.
regionNoDefaults to the server's configured region (fr-par).
severityNoSeverity assigned to the alert. Default info.
descriptionNoWhat this rule alerts on and why it exists.
occurrencesYesMinimum number of matching events within the evaluation window required to trigger the alert.
evaluation_windowNoHow far back to look for matching events, as a duration string, e.g. "300s". Omit for the API default.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate non-idempotent (`idempotentHint: false`) and non-destructive (`destructiveHint: false`) behavior. The description adds critical behavioral context beyond annotations: the tool requires write permissions beyond AuditTrailReadOnly with an explicit resolution path via `scaleway_iam_set_policy_rules`, it cannot modify the query in place, and it includes a frank caveat about a known API 501 error with instructions to not retry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and mechanism in the first sentence, then progressively covers behavioral constraints, permissions, and the important caveat. It is efficient but slightly verbose in the caveat section; a more concise version could separate the core from the live-verified note. Still, every sentence earns its place by providing actionable guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, no output schema, multiple siblings in the audit family), the description is remarkably complete. It explains the rule logic, mutation constraints, required permissions (with resolution), and a known deployment limitation with clear alternative. No gaps remain that an agent would need to guess about.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 7 parameters thoroughly. However, the description adds valuable semantic context: it explains the relationship between `occurrences` and `evaluation_window` (defining the triggering condition), it clarifies that the CEL query field surface is undocumented by Scaleway, and it notes the region default. This enriches the schema's bare definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a custom Audit Trail alert rule, specifying the exact mechanism (CEL expression evaluated against incoming audit events, firing when matching events exceed occurrences within evaluation_window). It also distinguishes this from the preconfigured alert rules tool (`scaleway_audit_list_alert_rules`), which is a sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool (to create a custom rule with a new query), provides an alternative (`scaleway_audit_update_custom_alert_rule` for metadata-only edits), clarifies when NOT to use it (changing the query requires creating a new rule and deleting the old one), mentions prerequisites (write permissions via `scaleway_iam_set_policy_rules`), and even includes a live-verified caveat about the 501 error with guidance to not retry and use the alternative `scaleway_audit_list_alert_rules` instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/logic-arts-official/scaleway-ops-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server