Skip to main content
Glama

VIA - Web/PDF extraction and API comparison

via_one_call

Execute a VIA toll operation through the existing One-Call payment and delivery handler. First call without payment returns the live x402 offer; only after buyer approval, retry IDENTICAL task, maxUsdc and private orderId with the buyer-signed payload in params._meta['x402/payment']. Buyer pays VIA before an eligible external supplier is paid; VIA relays delivery and retains its margin. Only supported tasks/suppliers. No automatic signing or financial retry. Prepaid comparison credits do not fund this tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>",
      "maxUsdc": "<maxUsdc>",
      "orderId": "<orderId>"
    },
    "name": "via_one_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
maxUsdcYesMaximum approved total in USDC, including supplier and VIA margin.
orderIdYesPrivate client-generated UUIDv4. Required for execution; preserve it and the exact body for payment retry and recovery.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (which only declare non-read-only, open-world, non-idempotent, non-destructive), the description discloses the x402 payment flow, the exact retry contract in params._meta['x402/payment'], the payment ordering (buyer pays before supplier), that VIA relays delivery and retains margin, and that there is no automatic signing or financial retry. These are material behaviors no annotation conveys.

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?

The description is dense but front-loaded: the action and the two-step call pattern come first, followed by payment mechanics and constraints. Some sentences are compact to the point of being hard to parse on first read, though every sentence carries operational information.

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?

No output schema exists, yet the description explains what the first call returns (the live x402 offer) and what the retry requires. For a three-required-parameter paid-execution tool, the missing pieces are minor: no detail on failure or recovery outcomes beyond 'preserve it ... for payment retry and recovery', and no explicit direction to the quote or status siblings.

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 67% and the schema already documents maxUsdc and orderId, including total-inclusive-of-margin and UUID preservation. The description reinforces that the identical task, maxUsdc and private orderId must be reused on the payment retry, adding workflow meaning, but it says nothing about the task parameter's content beyond 'only supported tasks'.

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 states a specific action ('Execute a VIA toll operation through the existing One-Call payment and delivery handler') on a named resource, and the annotations add the title 'Execute a VIA service'. It is distinguishable from quoted siblings by the payment-retry workflow it describes, though the phrase 'VIA toll operation' is jargon an agent must infer.

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?

It gives explicit sequencing: call first without payment to obtain the live x402 offer, then retry after buyer approval with the signed payload. It also names exclusions ('Only supported tasks/suppliers', 'Prepaid comparison credits do not fund this tool'), but it does not explicitly point to via_one_call_quote or via_one_call_status as the alternative entry points.

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