Skip to main content
Glama

User-Agent Parser

useragent_parse
Read-only

Parse a User-Agent string into browser, engine, OS, device type/vendor/model and CPU, and flag bots and AI crawlers (GPTBot, ClaudeBot, PerplexityBot ...). Params: user_agent (required). Price: $0.002 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"user_agent":"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_agentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered. The description goes well beyond that with the billing model ($0.002 USDC per call, paid inline via x402 on Base/Solana/Polygon/Arbitrum), auto-payment behavior for x402 clients, and a free example — all decision-critical facts an agent cannot get from structured fields.

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?

Opens with the capability, then params, then pricing, then sample — a sensible front-loaded order. Dense but every element (especially the payment terms) earns its place; the parenthetical chain list and bot examples are the only slightly talky bits.

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?

No output schema exists, and the description pre-enumerates the returned fields (browser, engine, OS, device type/vendor/model, CPU, bot/AI flags), so the agent knows what comes back. Combined with the billing disclosure, nothing needed to call this paid tool correctly 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 0%, so the description must carry the load; it names user_agent as required and supplies a full example value, which is enough for a single obvious string parameter. No format/preprocessing guidance beyond the example, so not a 5.

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 ("Parse") and resource ("a User-Agent string") and enumerates the extracted fields plus bot/AI-crawler flagging. No sibling tool overlaps this function, so the agent can select it unambiguously.

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 clear invocation context — required param, price, the chains accepted, and that x402 MCP clients like @x402/mcp pay automatically — plus a concrete sample call. It stops short of stating when-not to use it or naming an alternative, so it is clear context rather than full routing guidance.

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