Skip to main content
Glama

user_agent

Read-onlyIdempotent

Parses a User-Agent string into browser and version, operating system and version, device type, and whether it looks like a bot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uaYesUser-Agent string to parse. Required over MCP: the server cannot see the end user's own User-Agent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ua / description
      Previous value: -"User-Agent string to parse. If omitted, the request's own User-Agent header is parsed instead."New value: +"User-Agent string to parse. Required over MCP: the server cannot see the end user's own User-Agent."
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "ua"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / ua / description
      Previous value: -""New value: +"User-Agent string to parse. If omitted, the request's own User-Agent header is parsed instead."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish that the tool is read-only, idempotent, and non-destructive. The description adds a useful nuance by saying the bot result is based on appearance ('looks like a bot'), but it doesn't disclose other operational details such as fallback behavior for unparseable inputs or output shape.

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?

The entire description is one front-loaded sentence with no filler. It packs the action, input, and output categories without repeating the parameter schema.

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, read-only parser, the description covers the invocation purpose and the main output categories despite the lack of an output schema. It could be slightly more complete by addressing unknown/unparseable values, but nothing essential is missing for calling the tool.

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%, so the input parameter is already fully documented; the description adds no separate parameter semantics. The schema's note about the server not seeing the end user's User-Agent is strong, but it comes from the schema, not the tool description.

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 uses a precise verb ('Parses') and names both the resource (User-Agent string) and the concrete outputs (browser/version, OS/version, device type, bot-like flag). It does not explicitly distinguish itself from sibling tools such as ai_crawler_check, but the parse-focused resource makes the purpose unambiguous.

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 purpose implies the main use case: pass a User-Agent string to get parsed details, and the schema adds the necessary 'server cannot see UA' note. However, there is no explicit statement of when to prefer this over sibling tools or when not to use it for bot classification.

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.