Skip to main content
Glama

agentpay-electronics-x402-mcp

lookup_component_x402

Look up live electronic component pricing, stock, and lead time via HTTP 402 / x402 ($0.01 basic or $0.05 pro USDC on Base). Call without paymentSignature first to receive the HTTP 402 challenge, then retry with the signed PAYMENT-SIGNATURE header.

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": {
      "partNumber": "<partNumber>"
    },
    "name": "lookup_component_x402"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNobasic ($0.01 USDC) or pro ($0.05 USDC with supplier quote links & datasheets)basic
partNumberYesManufacturer Part Number (MPN), e.g. STM32H743ZIT6
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.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that the call is paid ($0.01/$0.05 USDC on Base), that the first attempt is expected to fail with a 402 challenge, and that a signed header is required on retry. It does not cover what happens on expired or invalid signatures, whether failed attempts incur charges, or any rate limits.

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 sentences: the first states what the tool returns, the second states the payment protocol that determines whether the call succeeds. Nothing is wasted and the critical constraint is 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 three-parameter tool with no output schema and a non-obvious payment protocol, the description covers the essential mechanics an agent needs to invoke it successfully. It stops short of describing the response shape or error modes, which would matter since no output schema exists.

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, but the description adds sequencing semantics the schema cannot express: paymentSignature is not optional-in-practice but is intentionally omitted on the first call to trigger the challenge. Tier pricing is only repeated from the schema, so the gain is modest rather than large.

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 uses a specific verb ('Look up') and names the exact resources returned: pricing, stock, and lead time for electronic components. It implicitly separates this single-part lookup from siblings like analyze_bom_risk_x402, but never names a sibling or states a scope boundary explicitly.

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 two-step payment handshake is spelled out procedurally: call first without paymentSignature to obtain the HTTP 402 challenge, then retry with the signed PAYMENT-SIGNATURE header. What's missing is guidance on when to choose basic versus pro beyond the price note, and when this tool is preferable to the sibling BOM or pricing-discovery tools.

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