Skip to main content
Glama

ScorpTech x402 Tools

User Agent Parse

user_agent_parse
Read-onlyIdempotent

Parse User-Agent strings: browser and version, rendering engine, OS and version, device type (mobile, tablet, desktop, TV, console, bot) with vendor/model, and bot detection that names 100+ crawlers and HTTP clients by operator and category, including AI crawlers and AI assistants (GPTBot, ClaudeBot, PerplexityBot, Bytespider, CCBot, meta-externalagent...), search, social, SEO and monitoring bots and scripted clients (curl, python-requests, headless Chrome). Up to 50 UAs per call. Returns JSON with: ua, browser, engine, os, device, isBot, bot, isAiAgent. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/user-agent-parse

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "user_agent_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
uaNoOne User-Agent string
uasNoSeveral User-Agent strings (JSON array; commas inside UAs break the comma-list form)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds material behavior they cannot express: a metered price of $0.002 USDC per successful call via x402 on Base or Solana, plus a 50-UA batch ceiling and an alternate HTTPS transport. The declared return keys (ua, browser, engine, os, device, isBot, bot, isAiAgent) further let an agent anticipate the output shape without an output schema.

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?

Purpose and extracted fields lead, followed by batching, return keys, and pricing — a sensible front-loaded order with no filler sentences. The lengthy bot-vendor enumeration and parenthetical examples (GPTBot, ClaudeBot, curl, headless Chrome) are verbose but arguably aid an agent deciding whether coverage fits its need.

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 two-parameter, zero-required read tool with full schema coverage, the description supplies everything needed to call it correctly: input modes, batch cap, output keys, and cost. The only shortfall is that the listed return keys are not described structurally (e.g. whether device and bot are objects or strings), which matters slightly given there is no output schema.

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 coverage is 100%, so both `ua` and `uas` are already documented with maxLength and maxItems. The description corroborates the batch limit but adds no new meaning about when to prefer the array form or how the two paths differ in response shape, so the baseline of 3 applies.

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 ('User-Agent strings'), then enumerates exactly what is extracted: browser/version, engine, OS, device type with vendor/model, and bot identity. The sibling list contains other *_parse tools for unrelated resources (dmarc, email, ics, url), so a UA-specific parser is unambiguous 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the operating context clear: it accepts either a single UA or a batch of up to 50 per call, and it discloses that the same capability is reachable over plain HTTPS at a given endpoint. It does not state when-not to use it or how to choose between the `ua` and `uas` forms, so no explicit exclusions or alternative-routing guidance is present.

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