Skip to main content
Glama

as__CreateScalingNotification

Configures SMN notification topics for an Auto Scaling group so subscribed endpoints receive alerts when specified scaling events occur.

Instructions

[AS] 给弹性伸缩组配置通知功能。每调用一次该接口,伸缩组即配置一个通知主题及其通知场景,每个伸缩组最多可以增加5个主题。通知主题由用户事先在SMN创建并进行订阅,当通知主题对应的通知场景出现时,伸缩组会向用户的订阅终端发送通知。

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": {
      "project_id": "<project_id>",
      "scaling_group_id": "<scaling_group_id>",
      "topic_scene": "<topic_scene>",
      "topic_urn": "<topic_urn>"
    },
    "name": "as__CreateScalingNotification"
  }
}

Input Schema

NameRequiredDescriptionDefault
topic_urnYesSMN服务中Topic的唯一的资源标识。
project_idYes项目ID。
topic_sceneYes通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
scaling_group_idYes伸缩组标识。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the five-topic-per-group cap, the requirement that the SMN topic already exist, and that notifications fire to subscriber endpoints on matching scenes. It omits what happens on the sixth call, error/idempotency behavior if a topic is re-added, permission prerequisites, and what the call returns.

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?

Three compact sentences with the core purpose front-loaded, followed by the per-call granularity and the quota constraint. No filler, though the sentence about SMN subscription and notification delivery is somewhat dense.

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 a four-parameter create tool with a fully described schema and no output schema, the description supplies the essential context: prerequisite SMN setup, per-call semantics, and the quota. Remaining gaps (error behavior at the limit, return value) are minor given the schema's completeness.

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 100%, so the schema itself documents all four parameters, including the enum of notification scenes. The description reinforces the meaning of topic_urn (the pre-created SMN topic) and topic_scene (the event that triggers notification), adding modest conceptual context beyond the field-level docs.

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 description gives a specific verb and resource: '给弹性伸缩组配置通知功能' (configure notification for a scaling group). It clearly conveys a create-style operation but does not explicitly differentiate itself from the sibling list/delete notification tools, leaving that inference to the agent.

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

Usage Guidelines3/5

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

Usage context is implied by the prerequisites: the SMN topic must be pre-created and subscribed, and each call adds one topic up to a maximum of five. However, there is no explicit when-to-use or when-not-to-use guidance, nor any mention of the List/Delete notification counterparts for managing existing configurations.

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

Deploy Server

Other Tools