Skip to main content

gm-x402-tools

Six ready-made tools for AI agents, for LangChain, CrewAI or plain Python:

Tool What it does Price
check_token_safety Before buying a token on Base: simulates a real buy and sell (honeypot and hidden-tax test), owner powers, whales, liquidity, scam lists $0.003
check_address_safety Before sending crypto on Base: scam lists, address poisoning look-alikes, token contracts and burn addresses $0.002
read_web_page Any public web page or PDF as clean Markdown, with title, author, date and links $0.003
get_page_metadata A page's title, description, author, date, image and JSON-LD $0.002
find_cheapest_api The cheapest working paid API for a task, ranked by live price, uptime and speed $0.002
check_paid_api Before paying an API: is it up, is the price right, is there a cheaper one? Free
  • Free to start: every service includes a free daily allowance (3–20 calls a day), requested automatically.
  • No signup, no API key: beyond the free allowance, calls are paid per use in USDC on Base with x402.
  • Only charged on success: errors are never billed.
  • Spending cap: no single call can cost more than max_price_usd (default $0.01).

Install

pip install "gm-x402-tools[langchain]"   # or [crewai], or plain: pip install gm-x402-tools

LangChain

from gm_x402_tools.langchain import get_tools

tools = get_tools()  # free daily allowance
# agent = create_agent(model, tools)

CrewAI

from crewai import Agent
from gm_x402_tools.crewai import get_tools

analyst = Agent(role="Crypto analyst", goal="Only buy safe tokens", backstory="...", tools=get_tools())

Plain Python

from gm_x402_tools import GMTools

gm = GMTools()
print(gm.check_token("0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed")["verdict"])
print(gm.check_address("0x...destination", from_address="0x...your wallet")["summary"])
print(gm.read_page("https://example.com")["markdown"])

Paying beyond the free allowance

Set GM_X402_PRIVATE_KEY to the key of a dedicated wallet holding a small amount of USDC on Base (a few dollars covers thousands of calls). Never use your main wallet. The key stays on your machine; it only signs each payment, and never above max_price_usd.

tools = get_tools(max_price_usd=0.005)   # key read from GM_X402_PRIVATE_KEY

Also available as

  • MCP servers: https://trust-check.gm-tools.workers.dev/mcp and https://agent-deals.gm-tools.workers.dev/mcp
  • Plain HTTP APIs, documented at /llms.txt and /openapi.json on each service.

Safety checks are automated on-chain analysis, not financial advice.

MIT licensed.

Release files for gm-x402-tools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gm-x402-tools 0.1.0
File Size Uploaded
gm_x402_tools-0.1.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gm-x402-tools 0.1.0
File Interpreter ABI Platform
gm_x402_tools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / gm_x402_tools-0.1.0.tar.gz

Download URL gm_x402_tools-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f133bf7c69848437033cea43185f0119c74ca0e9ef38416fdd74e45abe87a59e
BLAKE2b-256 checksum
How to use checksums
d33d195ca63fcbb5e813b888e2ed634ffda7d8ef71df85aa06cbeca54ebaa7e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release files / gm_x402_tools-0.1.0-py3-none-any.whl

Download URL gm_x402_tools-0.1.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59293eb949a7eca8e8edf01c8e91e2b90cc06695c5a0f1b70351b563c61ee848
BLAKE2b-256 checksum
How to use checksums
f0e996215872609b600d00f5148668188668e825bfce117ab368566946ba2854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page