Skip to main content
Glama

Set a project's alerts

SetProjectAlerts
DestructiveIdempotent

Changes what Pethost watches on a project and when it tells the person: site checks (an address the machine opens every minute) and traffic rules (5xx or p95 over a window), off, mute. A list given replaces the project's (send Project.alerts' with your change); remove_* empties it; a scalar left out stays. Service crashes and failed backups are always watched. Answers with Project.alerts. Where alerts go is the person's choice in the panel's Settings → Alerts (Machine.alert_channels): no tool sets it.

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": "SetProjectAlerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
offNoTrue = incidents are recorded, nothing is sent. Absent = stays.
checksNo≤10. Given = the whole list.
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
project_idNo
mute_minutesNo≤10080; 0 = unmute. Incidents opened meanwhile are not sent. Absent = stays.
remove_checksNoTrue = none, not even the default check.
traffic_rulesNo≤10. Given = the whole list.
remove_traffic_rulesNoTrue = none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "The workspace: its id or name (ListWorkspaces). Omit when the account has one.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag the write and destructive profile, and the description goes well beyond them: it spells out full-replace vs additive semantics, what removal flags do, that omitted scalars stay unchanged, and that service crashes and failed backups are always monitored regardless of what is sent. It also states the return is Project.alerts and that channel configuration is out of scope, which is exactly the kind of context an agent cannot get from the annotations.

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?

Purpose comes first, followed by mutation semantics and then the scope exclusion, which is the right ordering. The sentences are dense but mostly earn their place for an 8-parameter mutation with nested check and rule structures. Minor editing flaws (a stray apostrophe in "Project.alerts' with your change", heavy parenthetical nesting) cost it a point.

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

Completeness4/5

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

With no output schema, it correctly states the return value (Project.alerts), and it covers the destructive replace behavior, alert-type scope, and always-on alert classes. Remaining gaps are small: defaults for checks when the field is omitted, and whether repeated identical calls are no-ops despite idempotentHint being set.

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

Parameters4/5

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

Schema coverage is 88%, so the baseline is 3, but the description adds operative meaning the schema does not: lists are whole replacements, remove_checks/remove_traffic_rules clear even the default check, and absent scalars persist. The read-before-write workflow implied by the replacement model is the main semantic contribution and is not derivable from the field descriptions alone.

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

Purpose4/5

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

The opening clause names a specific verb and resource: it changes what Pethost watches on a project and when it notifies. It also carves out a clear boundary by stating that alert routing (Machine.alert_channels) is panel-only and not touched by any tool. The telegraphic phrasing ("site checks ... and traffic rules ..., off, mute") takes a second read, so it falls just short of a crisp 5.

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

Usage Guidelines4/5

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

It gives real procedural guidance: a supplied list replaces the project's list, so the caller is told to read Project.alerts first, apply the change, and send it back; remove_* flags empty the list; omitted scalars are preserved. It also rules out using this tool for routing destinations. It does not name a concrete read tool for the read-modify-write step beyond the field name, and there is no explicit when-not-to-use.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources