Skip to main content
Glama

security_ua_check

Read-only

User-agent threat check — Classify a User-Agent string for bot defense and WAF rules: attack and scan tools (sqlmap, nuclei, nikto, masscan, zgrab, ffuf, wpscan...), internet-wide research scanners (Censys, Shodan, Expanse...), AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Bytespider...), search engines, SEO crawlers, link-preview bots, uptime monitors and scripted HTTP clients, plus exploit payloads hidden in the header (Log4Shell ${jndi:, Shellshock, SQLi, XSS, traversal) and anomalies (empty, malformed, stale or forged browser versions, impossible platforms). Returns verdict BLOCK/CHALLENGE/POLICY/ALLOW/REVIEW, risk score 0-100, matches and browser/OS. Pass ua= (or self=1 to check the caller's own header). Offline. Price: $0.002 USDC (Base, via x402).

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": {
      "ua": "<ua>"
    },
    "name": "security_ua_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
uaYessqlmap/1.7.2 (https://sqlmap.org)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so safety is covered. The description does add real behavioral value beyond them: it is fully offline, and it costs $0.002 USDC via x402 on Base, a payment prerequisite an agent must know before calling. It also spells out the return payload (verdict scale, risk score 0-100, matches, browser/OS) despite there being no output schema, but omits rate limits, failure modes, and what happens with unparseable input.

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?

Front-loaded with the purpose, then the signal taxonomy, then the return shape and call mechanics. The long parenthetical catalog of tool and crawler names is bulky but earns its place by telling the agent what the classifier actually covers; a couple of items (the duplicated example UA, the price appended to a mechanics sentence) could be trimmed.

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 one-parameter, output-schema-less tool, it covers purpose, invocation, offline behavior, cost, and the exact shape of the response, which is unusually complete. The remaining defect is the 'self=1' parameter that the schema does not define, which leaves the agent unsure how the self-check path is actually invoked.

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 description coverage is 100% with a single documented parameter, so the 3 baseline applies. The description's example input is redundant with the schema's own example, and it introduces 'self=1', which does not exist in the input schema and could lead an agent to pass an invalid argument.

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 ('Classify a User-Agent string') plus the domain of use (bot defense and WAF rules), and enumerates the threat classes it recognizes so an agent knows exactly what signal it returns. It is clearly distinguishable from siblings such as security_payload_check despite the overlap in exploit-payload detection.

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?

Gives concrete invocation context: 'Pass ua=' for an arbitrary header, 'self=1' to check the caller's own header, and notes the check is offline. It does not, however, state when to prefer a sibling tool even though it detects SQLi/XSS payloads that security_payload_check presumably also covers, so routing between the two is left implicit.

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