Skip to main content

🔮 TCG Oracle Tools

PyPI License: BUSL-1.1 Python 3.10+

LangChain, CrewAI & OpenAI-compatible tools for trading card game intelligence.

Drop TCG search and daily market snapshots into any AI agent in under 60 seconds.

The packaged tools are tcg_search and tcg_market — both free, no key required. AI grading and conformal risk forecasts are paid endpoints on the same oracle and are called over HTTP (see the endpoint table below) or through the hosted MCP server at https://mcp.the-undesirables.com — they are not bundled as LangChain tools yet.

Install

pip install tcg-oracle-tools

With LangChain support:

pip install tcg-oracle-tools[langchain]

Quick Start (Standalone)

from tcg_oracle import TCGOracleClient

client = TCGOracleClient()

# Search 446K+ products
results = client.search("Charizard", limit=5)
for card in results.results:
    print(f"{card.name}: ${card.market_price}")

# Market snapshot
market = client.market("Pokemon")
print(f"Tracking {market.total_products} products")

LangChain Agent

from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
from tcg_oracle.langchain import TCGSearchTool, TCGMarketTool

tools = [TCGSearchTool(), TCGMarketTool()]
agent = initialize_agent(tools, ChatOpenAI(), agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION)
agent.run("What's the most expensive Pokemon card right now?")

OpenAI Function Calling

import openai
from tcg_oracle.openai_spec import tools, handle_tool_call

response = openai.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Find me Pikachu cards under $50"}],
    tools=tools(),
)

if response.choices[0].message.tool_calls:
    result = handle_tool_call(response.choices[0].message.tool_calls[0])
    print(result)

CrewAI

from crewai_tools import tool
from tcg_oracle import TCGOracleClient

client = TCGOracleClient()

@tool("Search TCG Products")
def search_tcg(query: str) -> str:
    """Search trading card products by name and get market prices."""
    result = client.search(query)
    return str([{"name": c.name, "price": c.market_price} for c in result.results])

AutoGPT Plugin

Point AutoGPT at the OpenAPI spec:

https://oracle.the-undesirables.com/openapi.json

API Endpoints

Endpoint Price Description
/api/v1/search FREE Search 446K+ TCG products
/api/v1/market $0.025 USDC Daily market snapshot
/api/v1/grade $0.10 USDC AI card grading (PSA/Beckett)
/api/v1/simulate $0.015 USDC Calibrated risk forecast (conformal default; Monte Carlo opt-in)

Agent-to-Agent (Virtuals ACP v2)

TCG Oracle is registered on Virtuals ACP. Autonomous agents can discover, hire, and pay for services using USDC on Base.

📝 License & Commercial Use

This project is licensed under the Business Source License 1.1 (BUSL-1.1).

We build in public and support the developer ecosystem — but we also protect the infrastructure and IP of The Undesirables LLC.

✅ What You CAN Do (Free)

  • Personal & Educational Use — Download, modify, and run locally for learning, research, or personal projects.
  • Non-Competing Applications — Integrate our packages into your app, provided your app does not offer TCG market intelligence, pricing aggregation, AI card grading, or on-chain price oracle services as its primary function.
  • MCP / Agent Integration — Connect your AI agent to our tools for non-commercial use.
  • Community Contributions — Security audits, bug fixes, and PRs are always welcome.

🚫 What You CANNOT Do (Use Limitation)

  • Competing Service — You may not use this code to operate a competing TCG market intelligence, pricing aggregation, AI card grading, or on-chain price oracle service.
  • Commercial Resale — You may not wrap our API, data pipelines, or AI models into a paid service without a commercial license.
  • Hosted SaaS — You may not host this software as a service for third parties without written permission.

🔓 Open-Source Conversion

On June 1, 2030 (or 4 years after the first public release of each version), this code automatically converts to the MIT License — fully open source, forever.

🤝 Commercial Licensing

Building a commercial product? Want guaranteed API access or white-label integration? Contact us:

📧 theundesirables7@gmail.com · 🐦 @undesirables_ai

© 2026 The Undesirables LLC

Metadata

Release files for tcg-oracle-tools 0.3.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 tcg-oracle-tools 0.3.0
File Size Uploaded
tcg_oracle_tools-0.3.0.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tcg-oracle-tools 0.3.0
File Interpreter ABI Platform
tcg_oracle_tools-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / tcg_oracle_tools-0.3.0.tar.gz

Download URL tcg_oracle_tools-0.3.0.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
91d3c5ff970e77d2291c0cef49246b32125c74235e1e683f0d5e05b2d838bd4a
BLAKE2b-256 checksum
How to use checksums
833e30e971b6b5e53f2ff3e02c77ebc0a8f3eddadb993c5ac27176a6fab6f9cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / tcg_oracle_tools-0.3.0-py3-none-any.whl

Download URL tcg_oracle_tools-0.3.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4519988b494a62184596e5f179c96ff5271d2e87a457da5672f74218641df72
BLAKE2b-256 checksum
How to use checksums
a91e0f7289996d2453a828025251b73c6364de30429363c8430ed19edb229e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

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