Skip to main content
Glama

upsert_alerts

Bulk create/update alerts keyed by external_id – sync a whole watchlist (e.g. recalculated buy/sell levels + filing watches) in one call. Changing a target re-arms a triggered alert. replace_all=true deletes your alerts not in the list.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "alerts": "<alerts>"
    },
    "name": "upsert_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
alertsYes
replace_allNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two non-obvious behaviors: changing a target re-arms an already-triggered alert, and replace_all=true deletes alerts absent from the list. It omits auth/permission requirements, batch-size limits, and partial-failure behavior, which keeps it below a 5.

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

Conciseness5/5

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

Three tight sentences: what it does, the re-arm behavior, and the destructive flag. The most consequential detail (deletions under replace_all) is front-loaded at the end of a very short block with zero filler.

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?

For an unannotated bulk mutation with a rich nested item schema and no output schema, the description covers the critical semantic risks (re-arming, deletion scope) and the keying strategy. It leaves open what the call returns (created vs updated vs deleted counts) and any batch limits, which would matter for a sync operation.

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?

The two top-level parameters have no schema descriptions, and the description compensates for both: 'keyed by external_id' explains the idempotency semantics of the alerts array, and 'replace_all=true deletes your alerts not in the list' explains the destructiveness of the flag. Nested item properties are already documented in the schema, so no duplication is needed there.

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?

States a specific verb and resource plus scope: "Bulk create/update alerts keyed by external_id" and "sync a whole watchlist ... in one call." The 'bulk upsert keyed by external_id' framing distinguishes it from the singular create_alert/update_alert siblings without needing their schemas.

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?

Makes the selection condition clear: use this to sync an entire watchlist (recalculated levels, filing watches) in one call, implying the singular tools are for one-off changes. It also states the replace_all branch condition, though it never explicitly names when *not* to use it or what happens on partial failure.

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