Skip to main content
Glama

User Agent

user_agent
Read-only

Parses a User-Agent string: browser and version, rendering engine, operating system and version, device type, vendor and model, CPU, and whether it is a known crawler (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, AhrefsBot and a few more) with its name. Optional Client Hints values (platform, mobile, model) are reported as given. Parsed with ua-parser-js 1.x (MIT). Pure code, no outside request. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
uaYesThe User-Agent string, up to 1000 characters
chModelNoClient Hints model, up to 60 characters (optional)
chMobileNoClient Hints mobile flag, e.g. ?1 (optional)
chPlatformNoClient Hints platform, e.g. Windows (optional)

Output Schema

NameRequiredDescriptionDefault
osNo
cpuNo
isBotNo
deviceNo
engineNo
sourceNo
botNameNo
browserNo
platformNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, it discloses the parser/library version (ua-parser-js 1.x), local determinism, the pricing model ($0.002 USDC via x402 on Base/Solana/Arc), and the important fact that failed calls are not charged. One mild tension: `openWorldHint: true` sits awkwardly with "Pure code, no outside request," but the operational details are still far richer than the annotations.

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 parse result, then execution model, then price — a sensible order. It is dense but nearly every clause carries information; the price/payment sentence is slightly long but justified for a paid endpoint.

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

Completeness5/5

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

An output schema exists, all four parameters are documented, and the description still covers the things structure cannot: cost, billing semantics, failure behavior, and determinism. Nothing an agent needs before calling is missing.

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 baseline is 3, but the description earns extra by explaining that Client Hints (platform, mobile, model) are reported "as given" rather than inferred, and by naming the crawler set that `ua` detection covers. That adds meaning the schema's terse field descriptions do not.

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?

Opens with a specific verb+resource ("Parses a User-Agent string") and then enumerates exactly what comes back: browser/version, engine, OS, device type, vendor/model, CPU, crawler detection. It names concrete crawler examples (Googlebot, GPTBot, ClaudeBot), so an agent can distinguish this from neighbors like `ai_crawlers` or `headers` without reading 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?

The description makes the input condition clear (you supply a UA string; Client Hints are optional and echoed as given) and rules out external lookups with "Pure code, no outside request." However, it never states when to prefer this over `ai_crawlers` or `headers`, or when client-hint values should be included, so routing is left to inference.

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