Skip to main content
Glama

minia2a_call_service

Destructive

Calls an x402 service on minia2a.uk, signing wallet trials or paying USDC on Base when a 402 response appears; set autoPay with a private key to pay and retry automatically.

Instructions

Call an x402 service on minia2a.uk. Three access paths: (1) omit everything for the paid 402 path (sign a wallet for 5 free trial calls — no registration); (2) pass privateKey (or set MINIA2A_PRIVATE_KEY) for your wallet's own 5 trials — the key never leaves this process, it only signs the per-call trial message; (3) when both are exhausted the endpoint returns HTTP 402 with a machine-readable accepts[] array — pay in USDC and retry with a PAYMENT-SIGNATURE header (x402 V2). Set autoPay:true together with privateKey to have a 402 paid automatically in USDC on Base and the call retried — the wallet must hold USDC or the call still returns payment_required (never charges silently). Note that wallet= on its own does NOT reach the wallet bucket; the signature is what does. Service parameters go INSIDE params; a top-level key that is not one of the five declared names is rejected by name rather than dropped.

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": {
      "serviceId": "<serviceId>"
    },
    "name": "minia2a_call_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoJSON parameters to send to the service. These are the service's OWN parameter names (e.g. {"ext":"json"} for x402-mime-type), nested here — not flattened onto the top level.
walletNoYour self-custody wallet address (0x...). Without privateKey this alone does not draw on the wallet's trial bucket.
autoPayNoWhen true and a privateKey is available, a 402 Payment Required response is paid automatically in USDC on Base via x402 and the call retried. Default false — you get a payment_required response instead of any automatic charge. Empty wallet (no USDC) still returns payment_required.
serviceIdYesThe service ID (e.g., 'x402-gas') or full endpoint path
privateKeyNoPrivate key of your wallet, used locally to sign the trial message (EIP-191). Never transmitted — only the resulting signature is sent. Falls back to the MINIA2A_PRIVATE_KEY env var.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.18
    • changedInput schema / properties / params / description
      Previous value: -"JSON parameters to send to the service"New value: +"JSON parameters to send to the service. These are the service's OWN parameter names (e.g. {\"ext\":\"json\"} for x402-mime-type), nested here — not flattened onto the top level."
    • changedInput schema / properties / privateKey / description
      Previous value: -"Private key of the registered wallet, used locally to sign the trial message (EIP-191). Never transmitted — only the resulting signature is sent. Falls back to the MINIA2A_PRIVATE_KEY env var."New value: +"Private key of your wallet, used locally to sign the trial message (EIP-191). Never transmitted — only the resulting signature is sent. Falls back to the MINIA2A_PRIVATE_KEY env var."
    • changedInput schema / properties / wallet / description
      Previous value: -"Your registered self-custody wallet address (0x...). Without privateKey this alone does not draw on the wallet's trial bucket."New value: +"Your self-custody wallet address (0x...). Without privateKey this alone does not draw on the wallet's trial bucket."
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations supply only destructiveHint=true, so the description carries the burden, and it does: 5-call trial quotas per path, that the private key is never transmitted and only signs locally, that autoPay can spend USDC on Base but never charges silently, that an empty wallet still yields payment_required, and that unknown top-level keys are rejected by name. The disclosed payment behavior is consistent with the destructive hint rather than contradicting it.

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?

Single dense paragraph with numbered inline paths; nearly every clause carries a constraint the agent would otherwise get wrong. It is still a wall of text, and the trailing note about wallet= partially repeats the schema, but the front-loaded framing keeps it usable.

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?

Covers the complex branch logic (trials, exhaustion, payment, autoPay fallback) and the error shape (402 with machine-readable accepts[]) for a tool with no output schema and a single required parameter. Successful response payloads are left implicit, which is acceptable since the service response is service-defined.

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 100%, so the baseline is 3; the description goes further by explaining the x402 protocol context behind autoPay (402 + accepts[] + PAYMENT-SIGNATURE header) and by emphasizing that wallet alone does not reach the wallet trial bucket. The params nesting rule and the env-var fallback are restated from the schema, so the lift is real but partly duplicative.

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 and resource ("Call an x402 service on minia2a.uk") and immediately scopes it as the invocation endpoint, which is clearly distinct from the discovery-oriented siblings (list_services, get_service, check_endpoint, get_stats, register). An agent can tell from the first sentence that this is the call-through tool, not a listing or registration tool.

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 explicit when-to-use conditions for each of three access paths (omit all for paid 402, pass privateKey for your own trials, pay USDC and retry with PAYMENT-SIGNATURE once trials are exhausted), plus the autoPay condition and its failure mode. It never names a sibling alternative or says when not to call this tool, which keeps it just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.