Skip to main content
Glama

agentpay-electronics-x402-mcp

analyze_bom_risk_x402

Analyze a Bill of Materials (up to 20 electronic component MPNs) in one x402 call ($0.50 USDC on Base). Returns total unit BOM cost (USD/TWD), supply chain risk score (0-100), out-of-stock/long-lead bottleneck parts, and procurement recommendations.

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": {
      "parts": "<parts>"
    },
    "name": "analyze_bom_risk_x402"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYesList of up to 20 Manufacturer Part Numbers (MPNs)
paymentSignatureNoOptional Base64-encoded x402 v2 PAYMENT-SIGNATURE payload signed by an EVM wallet on Base.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description does real work by disclosing the price ($0.50 USDC), the chain (Base), and the return payload shape. What it omits is the payment handshake: it never says a call without paymentSignature triggers a 402 challenge, whether the call is retried or charged twice, or any rate limits/side effects, which is the key behavioral risk for a paid tool.

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?

Two tight sentences: purpose/cost first, enumerated returns second. No filler, no repetition, and the most decision-relevant facts (limit, price, chain) are front-loaded.

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 2-parameter, no-output-schema tool this is largely complete: the description enumerates the return values (unit cost in USD/TWD, 0-100 risk score, bottleneck parts, recommendations), removing the need for an output schema. The one gap is the payment lifecycle, which neither annotations nor schema explain.

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% and the schema already documents both the parts array and the paymentSignature payload. The description reinforces the meaningful constraint (max 20 MPNs) and frames the payment as a paid x402 call, giving slight added context beyond the field descriptions; most meaning still comes from the schema, so this sits just above the baseline.

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 (Analyze) plus resource (Bill of Materials) with explicit scope (up to 20 component MPNs) and enumerates the outputs. That scope and the batch framing clearly distinguish it from lookup_component_x402 (single part) and discover_agentpay_pricing.

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 phrase 'in one x402 call' with a 20-part cap implies batch analysis is the point, which hints at when to pick this over a single-part lookup. But there is no explicit when-to-use, no exclusion, and no prerequisite guidance such as needing a funded Base wallet before calling.

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