MCPServerStreamableHttp · https://mcp.upp3.com/mcp @function_tool REST · https://api.upp3.com/v1/* -81.3% Payload Tokens (mode="summary") 504/429 = 0 Credits · GDPR 0-PII

OpenAI Agents SDK Dual-Track Engineering:
Hosted MCP + @function_tool REST

Looking beyond the OpenAI Agents SDK overview? This deep-dive playbook shows Python engineers exactly when to mount MCPServerStreamableHttp against https://mcp.upp3.com/mcp (alias https://upp3.com/mcp) with cache_tools_list=True and create_static_tool_filter, when to pin hot paths to deterministic @function_tool REST wrappers on https://api.upp3.com, and how to run both tracks under one X-API-Key across 16 global platforms, 56 Hosted MCP tools, and 67 REST routes.

56 MCP + 67 REST
One X-API-Key unlocks https://mcp.upp3.com/mcp & https://api.upp3.com/v1/* across 16 platforms
-81.3% Payload Tokens
mode="summary" + create_static_tool_filter eliminate multi-turn context bloat
504 / 429 = 0 Credits
Safe exponential backoff retries in @function_tool & MCP; server-side GDPR 0-PII default
$0 / $47 / $49 / $149
Free 500/mo, $47 Once (25K never-expiring), $49/mo Pro (15K), $149/mo Scale (60K)
3-Tab Engineering Workbench · Live Session Key Sync

Copy-Paste cURL, Python openai-agents Dual-Track & Hosted MCP JSON

Switch between direct REST + MCP health checks, an ast.parse()-verified Python dual-track agent combining MCPServerStreamableHttp with @function_tool, and a JSON.parse()-valid scoped client manifest. Minting a free key below auto-replaces ed_live_your_key_here across all tabs.

Using placeholder ed_live_your_key_here — claim a free 500-credit key below to auto-fill cURL, Python, and JSON tabs. Auto-Fill Free Key →
REST /v1/* + MCP Probe (cURL)
# 1) Direct REST hot-path: Amazon product search with mode=summary (-81.3% avg tokens)
curl -sS "https://api.upp3.com/v1/amazon/products/search?query=usb+c+hub&country=US&mode=summary" \
  -H "X-API-Key: ed_live_your_key_here"

# 2) Direct REST batch quotes: TradingView multi-asset watchlist in a single call
curl -sS "https://api.upp3.com/v1/finance/tradingview/quotes?symbols=NASDAQ:AAPL,NASDAQ:NVDA,NASDAQ:MSFT&mode=summary" \
  -H "X-API-Key: ed_live_your_key_here"

# 3) Verify Streamable HTTP Hosted MCP endpoint (56 tools; alias https://upp3.com/mcp)
curl -sS -X POST "https://mcp.upp3.com/mcp" \
  -H "X-API-Key: ed_live_your_key_here" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | head -c 500
Dual-Track Rule of Thumb · Same Key, Zero Double Integration

Both https://mcp.upp3.com/mcp (Streamable HTTP) and https://api.upp3.com/v1/* authenticate with X-API-Key: ed_live_your_key_here and draw from one credit balance. Pin repeatable high-volume queries to @function_tool REST wrappers, while letting MCPServerStreamableHttp + create_static_tool_filter handle ad-hoc cross-platform follow-ups.

Architecture Selection · Production Trade-Offs

MCPServerStreamableHttp vs. @function_tool REST vs. Hybrid Dual-Track

Evaluate schema token overhead, parameter determinism, latency, and HTTP 429/504 retry ownership before locking your OpenAI Agents SDK topology.

Engineering Dimension MCPServerStreamableHttp Only @function_tool + REST /v1/* Hybrid Dual-Track (Recommended)
Schema Context Overhead Full 56 tools = ~17,920 tok/turn unless scoped via create_static_tool_filter + cache_tools_list=True Minimal (~180–300 tok/tool): only Python functions you explicitly decorate enter the prompt Optimal: 1–3 pinned @function_tool hot paths + 4–8 filtered MCP tools (~2,000–3,200 tok/turn)
Type & Parameter Determinism LLM selects parameters from live MCP JSON Schema; relies on instructions to enforce mode="summary" Strict Python type hints & hardcoded defaults (mode="summary", country allowlists, Pydantic guards) Hard-enforced schemas on critical ingestion steps + dynamic MCP parameter flexibility for follow-ups
End-to-End Latency Adds initial MCP session handshake & tools/list (amortized when cache_tools_list=True) Lowest overhead: direct pooled httpx.AsyncClient HTTP/2 calls to https://api.upp3.com Fast pooled REST for batch lookups + cached MCP channel kept warm across agent turns
429 / 504 Retry Control Handled by agent re-invocation or MCP client transport timeouts (still 0 credits on 504/429) Full code-level control over jittered exponential backoff, circuit breakers, and fallback routes Deterministic backoff in hot-path @function_tool + zero-credit protection across all MCP calls
Best-Fit Workloads Exploratory research copilots, multi-platform analyst agents, rapid prototyping across 16 platforms High-frequency repricers, scheduled ETL batch pipelines, strict compliance workflows Production commerce monitors, US/UK property valuation agents & multi-asset finance copilots
3 Verified Vertical Blueprints · 100% Live Tools & Routes

Production OpenAI Agents SDK Blueprints Across E-Commerce, Real Estate & Finance

Every blueprint pairs exact live Hosted MCP tools with verified /v1/* REST endpoints from EdgeData’s 16-platform production catalog.

Blueprint 01 · E-Commerce -81.3% Avg Tokens

Cross-Channel Competitor Price & Stock Monitor

Pin scheduled catalog discovery to REST @function_tool wrappers with 429/504 backoff, then hand off anomalous SKUs to scoped MCP tools for deep offer and review diagnostics.

Pinned @function_tool REST Routes
GET /v1/amazon/products/search GET /v1/walmart/items/{item_id}/offers GET /v1/shopify/products/inventory GET /v1/tiktok-shop/products/search
Scoped Hosted MCP Allowlist
amazon_get_product_detail amazon_get_reviews walmart_get_item shopify_get_store_products ebay_search_items
  • Hardcode mode="summary" inside REST wrappers to keep multi-ASIN diffs compact.
  • Use walmart_get_offers + amazon_get_reviews to correlate Buy Box undercuts with rating drops.
Blueprint 02 · US & UK Real Estate GDPR 0-PII Default

Transatlantic Redfin & Rightmove Valuation Analyst

Combine deterministic metro trend snapshots over REST with exploratory property comps via Hosted MCP. Server-side 0-PII scrubbing strips personal agent emails and phone numbers before OpenAI sees any payload.

Pinned @function_tool REST Routes
GET /v1/real-estate/redfin/properties/search GET /v1/real-estate/redfin/market/trends GET /v1/real-estate/rightmove/properties/search GET /v1/real-estate/rightmove/house-price-index
Scoped Hosted MCP Allowlist (4 Tools)
redfin_search_properties redfin_get_market_trends rightmove_search_properties rightmove_get_house_price_index
  • Only 4 MCP schemas mounted (~1,280 tok/turn vs ~17,920 unscoped), leaving room for multi-city comps.
  • All housing metrics remain informational telemetry only with zero PII leakage into traces.
Blueprint 03 · TradingView Finance 50-Symbol Batch

TradingView Read-Only Equity & Macro Research Agent

Batch-pull up to 50 tickers in one REST call inside a deterministic @function_tool, then let the agent enrich catalysts with earnings calendars, Trustpilot brand sentiment, and LinkedIn hiring velocity.

Pinned @function_tool REST Routes
GET /v1/finance/tradingview/quotes GET /v1/finance/tradingview/calendar/earnings GET /v1/trustpilot/companies/by-domain GET /v1/linkedin/jobs/search
Scoped Hosted MCP Allowlist
tradingview_get_quotes tradingview_get_earnings_calendar trustpilot_lookup_company linkedin_search_jobs linkedin_get_company
  • mode="summary" trims raw quote arrays so 50-ticker watchlists fit cleanly inside a single reasoning turn.
  • Read-only market telemetry paired with 0-credit retry protection on transient upstream 429/504 spikes.
Context Budget & Credit Guardrails · Zero Waste

Control Schema Tokens, Payload Size & Upstream Retry Budgets

Four production engineering levers keep OpenAI Agents SDK runs predictable under heavy multi-turn concurrency.

Schema Control · Static Filter

cache_tools_list=True + Scoped Subsets

Avoid injecting all 56 Hosted MCP schemas (~17,920 tokens/turn) into every OpenAI completion. Enable cache_tools_list=True and pass create_static_tool_filter with 4–8 vertical tools, then model exact monthly savings in our MCP Schema Budget Calculator.

Payload Compression · -81.3%

Server-Side mode="summary" Default

Strip bloated raw HTML descriptions and redundant image arrays before JSON hits OpenAI context. Across Amazon, Walmart, TikTok Shop, Redfin, Rightmove, and TradingView benchmarks, mode="summary" cuts payload tokens by -81.3% on average.

Billing & Privacy Guardrail

HTTP 504 / 429 = 0 Credits & 0-PII

Upstream timeouts (504) and rate limits (429) incur strictly 0 credits so your @function_tool backoff loop never double-bills. Stress-test retry budgets with the API Retry & Backoff Simulator. Server-side GDPR 0-PII scrubbing is always on.

Context Budget

MCP Schema Context Budget Calculator

Quantify turn-by-turn OpenAI token savings when scoping 56 MCP tools down to 4–8 vertical tools with Prompt Caching.

Open Schema Budget Calculator →
Retry Math

API Retry & Backoff Credit Simulator

Model exponential backoff latency and verify 0-credit billing protection on upstream HTTP 429/504 bursts.

Open Retry Simulator →
Config Generator

10-Client MCP Config Generator

Export validated Streamable HTTP configs for OpenAI Agents SDK, Claude Code, Cursor, Windsurf, and Cline.

Generate Client Configs →
56 Live Tools

Hosted MCP Tools Catalog

Inspect exact tool names, input schemas, and credit costs across all 16 platforms before building your allowlist.

Browse /mcp-tools →
Overview Guide

OpenAI Agents SDK & Responses API

Compare Python & TypeScript SDK setup alongside native OpenAI Responses API server-side remote MCP calls.

Open Overview Guide →
V2.35 Companion

Claude Agent SDK & Claude Code CLI MCP

Apply the same vertical allowed_tools governance to Anthropic’s Claude Agent SDK and claude mcp add CLI.

Open Claude Agent SDK Guide →
Integrations Hub

All MCP Framework & IDE Guides

Explore turnkey EdgeData setup playbooks for LangGraph, CrewAI, PydanticAI, Vercel AI SDK, Cursor, and Windsurf.

Browse /integrations →
Payload Savings

LLM JSON Token Savings Calculator

Compare raw vs. mode="summary" (-81.3%) payload spend across GPT-4.1, GPT-4o, and Claude models.

Open Token Savings Calculator →
Direct Pricing

Transparent 4-Tier Credit Pricing

Compare $0 Free (500/mo), $47 Starter Pack (25K never-expiring), $49/mo Pro (15K), and $149/mo Scale (60K).

View /pricing →
Live 4-Tier Direct Pricing · Zero Subscription Lock-In Option

One API Key for Both Hosted MCP & REST /v1/*

Start free with 500 monthly credits, buy never-expiring credits once for burst workloads, or lock in predictable monthly SLAs as your OpenAI Agent fleet scales.

No Card Required

Free

$0 / mo
  • ✓500 credits / mo · instant cardless key
  • ✓All 56 Hosted MCP tools & 67 REST routes
  • ✓mode="summary" (-81.3%) & 0-credit 504/429
Claim Free Key ↓
Best Value · Never Expires

Starter Credit Pack

$47 once
  • ✓25,000 credits · Never Expire ($1.88 / 1k)
  • ✓Zero monthly subscription lock-in
  • ✓Ideal for dual-track prototyping & burst agents
Get $47 Pack (25K) →
Production Teams

Pro

$49 / mo
  • ✓15,000 credits / mo · sustained concurrency
  • ✓Full REST + Streamable HTTP MCP access
  • ✓HTTP 504/429 = 0 credits + GDPR 0-PII
Choose Pro ($49/mo) →
High Throughput Fleet

Scale

$149 / mo
  • ✓60,000 credits / mo · priority routing
  • ✓Built for multi-agent production pipelines
  • ✓Stack $47 packs anytime for seasonal spikes
Choose Scale ($149/mo) →
OpenAI Agents SDK Dual-Track FAQ

Frequently Asked Questions

Direct answers on combining MCPServerStreamableHttp with @function_tool REST wrappers, static tool filtering, auth headers, 0-credit retries, and pricing.

When should an OpenAI Agents SDK app use MCPServerStreamableHttp vs @function_tool REST wrappers?
Use MCPServerStreamableHttp pointed at https://mcp.upp3.com/mcp when your agent needs flexible multi-platform exploration across EdgeData's 56 Hosted MCP tools without maintaining local schemas. Wrap https://api.upp3.com/v1/* endpoints in @function_tool when you need strict Python type validation, deterministic mode='summary' defaults, custom 429/504 backoff timers, or tight latency budgets—or combine both in a hybrid dual-track agent.
How do cache_tools_list=True and create_static_tool_filter reduce OpenAI Agents SDK token overhead?
Setting cache_tools_list=True avoids re-fetching tools/list on every turn, while create_static_tool_filter(allowed_tool_names=[...]) restricts the system prompt to 4 to 8 vertical tools instead of injecting all 56 JSON schemas on every reasoning step. Pairing scoped schemas with mode='summary' (-81.3% payload tokens) slashes total input token burn.
What authentication header and endpoints work for both Hosted MCP and REST @function_tool calls?
Pass X-API-Key: ed_live_your_key_here on both https://mcp.upp3.com/mcp (same-origin alias https://upp3.com/mcp) for Streamable HTTP MCP and https://api.upp3.com for all 67 /v1/* REST endpoints. A single EdgeData API key shares one credit wallet across both tracks.
Will exponential backoff retries inside my @function_tool burn credits on HTTP 504 or 429?
No. EdgeData strictly charges 0 credits whenever an upstream marketplace or data provider returns HTTP 504 gateway timeout or HTTP 429 rate-limit responses across all 56 Hosted MCP tools and 67 REST routes. Only successful HTTP 200 payloads deduct credits.
Which EdgeData pricing tiers support dual-track OpenAI Agents SDK production workloads?
All four live tiers unlock every Hosted MCP tool and REST route with server-side GDPR 0-PII scrubbing: Free ($0/mo, 500 credits/mo, no card required), Starter Credit Pack ($47 once for 25,000 never-expiring credits at $1.88 per 1k credits), Pro ($49/mo for 15,000 credits/mo), and Scale ($149/mo for 60,000 credits/mo).