Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

devutils_useragent_parse

Parse a user-agent string into browser/OS/device/bot. $0.005 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/devutils/useragent/parse.

Input Schema

NameRequiredDescriptionDefault
user_agentNostring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint=false and idempotentHint=false already declaring side effects, the description explains the cause: every call costs $0.005 in USDC on Solana, so invocations are billable and non-repeatable for free. That is real added context beyond the annotations, though it omits failure behavior (e.g. whether a rejected parse is still charged).

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 is front-loaded in the first clause, followed by cost, payment mechanics, and an HTTP equivalent. Three sentences, each doing distinct work, with no repetition.

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

Completeness3/5

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

With no output schema, the description partially compensates by naming the output dimensions (browser/OS/device/bot), but it does not describe the return structure, invalid-input handling, or whether malformed strings still incur the charge — gaps that matter for a paid call.

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 nominally 100%, but the single parameter is described only as 'string', so the description carries the actual meaning: it must be a user-agent string. That is a marginal but real addition; nothing is said about format, default, or behavior when the optional parameter is omitted.

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 opening clause states a precise verb (parse) plus the resource (user-agent string) and the shape of the result (browser/OS/device/bot). It is unambiguous against the many devutils_* siblings, each of which names a distinct resource, though it never explicitly contrasts itself with them.

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 gives essential invocation procedure — call first without payment to receive the PaymentRequired challenge, then retry with payment at _meta["x402/payment"] — but it never states when to choose this parse tool over related devutils utilities, nor any conditions or exclusions.

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