Skip to main content
Glama

util_user_agent

Read-only

User-Agent parser — Parse a User-Agent string: browser and version, OS and version, device type, and whether it is a bot, with named detection of AI crawlers (GPTBot, ClaudeBot, PerplexityBot and more), search bots and HTTP libraries. For traffic triage and bot screening. 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": "util_user_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
uaYesUser-Agent string

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), and the description adds genuinely new behavior: a per-call price of $0.002 USDC on Base via x402 and the named detection set for AI crawlers, search bots and libraries. It omits what happens on unparseable or empty input and gives no output format details, 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.

Conciseness4/5

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

Two tight, front-loaded sentences: the action and outputs come first, the use case second, and the price last. The enumerated bot names are informative rather than padding, though the dense em-dash list slightly slows scanning.

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 single-parameter, no-output-schema utility, the description compensates well by listing the returned fields and disclosing cost and payment mechanism. The remaining gap is edge-case behavior on malformed or missing UA input, which an agent cannot infer.

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?

Only one parameter, and the schema already documents it at 100% coverage ('User-Agent string'). The description adds the expected input domain by describing which UA components it decomposes, but contributes no syntax, format or truncation details beyond the schema.

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 ('Parse a User-Agent string') and enumerates the exact outputs produced: browser and version, OS and version, device type, bot flag. It further narrows the bot classification into AI crawlers, search bots and HTTP libraries, so an agent knows precisely what the tool returns without opening the schema.

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?

'For traffic triage and bot screening' gives the intended context but stops short of explicit when-to-use/when-not guidance or naming any alternative. With no sibling performing UA parsing there is little ambiguity, but the guidance is implied rather than stated.

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