Skip to main content
Glama
dbsectrainer

mcp-agent-trace-inspector

by dbsectrainer

configure_alerts

Create alert rules for latency, error rate, or cost thresholds and notify Slack or a webhook when limits are exceeded.

Instructions

Configure alert rules for latency, error rate, or cost thresholds. Example: { "rules": [{"type":"latency","threshold":1000}], "slack_webhook": "https://hooks.slack.com/..." }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesYesArray of alert rules to configure.
webhook_urlNoOptional generic webhook URL for JSON POST notifications.
slack_webhookNoOptional Slack webhook URL for Slack block notifications.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), so the bar is lower, but the description adds nothing about behavior: it does not say whether supplied rules replace or append to existing alert rules, whether configuration is idempotent, or what permissions/webhook validity are required. For a mutation tool this is a notable gap.

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?

Two short sentences, front-loaded with the purpose, followed by a compact example. No filler, though the example consumes more space than the explanatory text.

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

Completeness3/5

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

With full schema coverage and no output schema, the description is adequate but incomplete for a mutation tool: it omits replace-vs-merge semantics and any indication of success/error behavior, which an agent would need to call it safely.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all three parameters including the type enum and threshold. The example adds a concrete composite shape for 'rules', which is mildly useful, but it shows only slack_webhook and never mentions webhook_url, so it does not extend much beyond the schema.

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?

States a specific verb and resource ('Configure alert rules') plus the three supported threshold categories (latency, error rate, cost). This clearly separates it from siblings like set_retention_policy or trace_start, though it does not explicitly name a contrasting sibling.

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

Usage Guidelines2/5

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

The description never says when to use this tool, what prerequisite setup is needed, or how it relates to the other configuration/monitoring siblings. The provided example implies a call shape but offers no when/when-not guidance or alternatives.

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