Skip to main content
Glama

Detect API abuse signals

detect_api_abuse
Read-only

Looks for a single user flooding the event stream, one event name dominating, and webhooks receiving many bad signatures. Request-level API logs are not kept, so this only sees ingested data.

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

Input Schema

NameRequiredDescriptionDefault
hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, so the description's main added value is the data-coverage caveat: request-level API logs are not kept, so it only sees ingested data. That is a genuinely important limitation an agent would otherwise not know. It still doesn't say what the result shape or severity output looks like, keeping it from 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?

Two sentences, both load-bearing: the first enumerates the signals, the second states the data limitation. Front-loaded and free of filler.

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?

The data-source caveat is a valuable completeness win, but with no output schema the description should indicate what a finding looks like (counts, flagged users, severity) and it doesn't. The analysis window, the only input, is also unexplained.

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

Parameters2/5

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

Schema description coverage is 0% for the single 'hours' parameter, and the description never mentions a time window at all, leaving the default of 24 and the 1-168 max undocumented in prose. With low coverage the description should compensate, and it does not.

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 names three concrete detection patterns (single user flooding the event stream, one event name dominating, webhooks with many bad signatures), which is far more specific than a restatement of the name. It does not explicitly distinguish itself from sibling detectors like detect_abnormal_signups or find_users_without_event, so it stops short of a 5.

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?

Naming the abuse patterns implicitly tells an agent when this tool is relevant, but there is no explicit when-to-use/when-not-to-use guidance and no routing to or away from sibling detectors. The agent must infer that this is the API-traffic-abuse check rather than the signup-abuse check.

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.