Fda Drug Competition

v0.1.0
io.github.pipeworx-io/fda-drug-competition Checked 4 days ago Published 4 months ago

Orange Book competitive intelligence from FDA's monthly official data ZIP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ask_pipeworx Ask Pipeworx

The first call for any question whose answer needs an authoritative source: official statistics (FRED, BLS, national statistics offices), SEC and other company filings, company and property registers, regulatory and government records, FDA drug data, USPTO patents, clinical-trial registries, court records, and similar primary-source data. It also answers live weather, markets, crypto, sports, news and academic-paper questions. Routes the question to the right one of 7,898 tools across 2073 verified sources, fills arguments, returns the structured answer with stable pipeworx:// citation URIs. U…

ParameterTypeDescription
question *stringYour question or request in natural language. Accepts query, q, prompt, text, input, ask, message as aliases.
askstringAlias for question.
inputstringAlias for question.
messagestringAlias for question.
packsarrayOPTIONAL. Restrict routing to these pack slugs (e.g. ["sec-form-d","sec-13f"]), the router then picks only from tools in those packs. Omit for the default full-catalog routing. Slugs come from list_pa…
promptstringAlias for question.
qstringAlias for question.
querystringAlias for question.
textstringAlias for question.

ask_pipeworx_beta Ask Pipeworx Beta

Beta version of ask_pipeworx: identical universal router (same 7,898 tools, same arguments, same response shape) with candidate routing improvements enabled live whenever one is under test. No candidate is active right now (the last was retired on outcome evidence 2026-07-26), so this currently matches ask_pipeworx exactly. Use it exactly like ask_pipeworx when you want the newest routing; results are compared against the stable router to decide what merges. Falls back to nothing, this IS a full working router, just the experimental edge.

ParameterTypeDescription
question *stringYour question or request in natural language. Accepts query, q, prompt, text, input, ask, message as aliases.
askstringAlias for question.
inputstringAlias for question.
messagestringAlias for question.
packsarrayOPTIONAL. Restrict routing to these pack slugs (e.g. ["sec-form-d","sec-13f"]), the router then picks only from tools in those packs. Omit for the default full-catalog routing. Slugs come from list_pa…
promptstringAlias for question.
qstringAlias for question.
querystringAlias for question.
textstringAlias for question.

ask_pipeworx_grounded Ask Pipeworx — Grounded

Hallucination-resistant answer mode for high-stakes reads. Same routing as ask_pipeworx, picks the right tool from 7,898 across 2073 sources, fills arguments, fetches the data, then EXTRACTS the answer using ONLY what the tool result contains. Returns {answer, evidence (verbatim quote), confidence, source, fetched_at, refusal_reason:null} on success, OR an explicit refusal {answer:null, refusal_reason:"not_in_source"|"no_tool_match"|"tool_error"|"data_truncated"|"llm_error"} when the data doesn't directly answer. An "llm_error" also carries refusal_cause ("wall" = our time budget ended before…

ParameterTypeDescription
question *stringYour question in natural language. Accepts query, q, prompt, text, input, ask, message as aliases.
askstringAlias for question.
inputstringAlias for question.
messagestringAlias for question.
prefer_toolstringRun this exact tool instead of letting the router choose, use a name from a previous answer's alternatives[]. Arguments are still filled from your question. Unknown names are refused, never guessed.
promptstringAlias for question.
qstringAlias for question.
querystringAlias for question.
textstringAlias for question.

search_within Search Within a Source

Semantic search INSIDE a fetched record. Pass the text you already pulled (e.g. a SEC 10-K body, an article, a long tool result) plus a natural-language query; get back the top-N passages with character offsets and similarity scores. Use when the record is too big to cram into the prompt, search_within saves context, returns only the passages that matter, and every passage carries an offset so the agent can verify a verbatim quote. Pairs with ask_pipeworx_grounded: fetch with the gateway, ground over the relevant passages instead of the whole document. BGE-base-en embeddings + cosine over 500-…

ParameterTypeDescription
query *stringNatural-language query, what passages do you want? E.g. "supply-chain risk", "fiscal year 2024 revenue", "drug interactions with warfarin".
limitnumberMax passages to return (1-20, default 5).
result_idstringSearch a result saved with _handle:true instead of passing text (offsets refer to the stored text). Pass text or result_id.
textstringThe document text to search inside (max ~200K chars). Omit when you pass result_id.

deep_research Deep Research

ACCOUNT REQUIRED (free, sign in via GitHub at https://pipeworx.io/signup; depth:"thorough" needs a paid plan). If you are not signed in, use ask_pipeworx instead, it works on every tier. Grounded multi-source research across Pipeworx's 2073 STRUCTURED data sources (SEC filings, FRED/BLS economics, FDA, USPTO patents, markets, science, government records, etc.) in ONE call, this is NOT open-web search. Decomposes your question into focused facets, routes each to the right one of 7,898 tools IN PARALLEL, and returns a findings packet: verbatim evidence + confidence + source + fetched_at + a stab…

ParameterTypeDescription
question *stringThe research question, in natural language. Broad/multi-part is fine, decomposition is the point. Accepts query, q, prompt, text, input, ask, message as aliases.
askstringAlias for question.
depthstringHow many facets to research in parallel: quick=3 (single hop), standard=3 (default; adds a gap-recovery hop that re-angles unanswered facets + a contradictions[] scan across findings), thorough=6 (pai…
inputstringAlias for question.
messagestringAlias for question.
promptstringAlias for question.
qstringAlias for question.
querystringAlias for question.
textstringAlias for question.

discover_tools Discover Tools

Find tools by describing the data or task. Use when you need to browse, search, look up, or discover what tools exist for: SEC filings, financials, revenue, profit, FDA drugs, adverse events, FRED economic data, Census demographics, BLS jobs/unemployment/inflation, ATTOM real estate, ClinicalTrials, USPTO patents, weather, news, crypto, stocks. Returns the top-N most relevant tools with names, descriptions, and full input schemas (with curated examples), each result is ready to call directly, no second schema lookup needed. Call this FIRST when you have many tools available and want to see the…

ParameterTypeDescription
query *stringNatural language description of what you want to do (e.g., "analyze housing market trends", "look up FDA drug approvals", "find trade data between countries"). Accepts task, q, description, search as…
descriptionstringAlias for query.
limitnumberMaximum number of tools to return (default 20, max 50)
qstringAlias for query.
searchstringAlias for query.
taskstringAlias for query.

resolve_entity Resolve Entity

"What's the ticker for..." / "find the CIK for..." / "what's the LEI for..." / "what's the RxCUI for..." / "look up the ID for..." / "what is X's official identifier" / "who owns X" / "is X a subsidiary of Y", resolve a user-spoken NAME to the canonical/official identifiers other tools require as input. Use FIRST whenever you have a name but need an ID. SUPPORTED TYPES: "company" (cross-source identity spine: 10-digit CIK + ticker + company_name from SEC EDGAR, legal-entity LEI from GLEIF with parent/ultimate-parent/children ownership when the LEI resolves, and security FIGI from OpenFIGI, by…

ParameterTypeDescription
type *stringEntity type: "company", "drug" or "lei" (a 20-character LEI; "company" also recognises an LEI by its check digits).
value *stringFor company: ticker (AAPL), CIK (0000320193 or 320193), LEI (HWUPKR0MPOU8FGXBT394), or name. A bare number is read as an SEC CIK only as 320193 or 0000320193; with a non-US `country`, or with 8-9 digi…
countrystringOPTIONAL ISO 3166-1 alpha-2 of the country whose business register you mean ("NO", "FI", "JP", "GB", "FR", "EE", "BR"). Narrows the national-register fan-out and is often the difference between the ri…

compare_entities Compare Entities

"Compare X and Y" / "X vs Y" / "X versus Y" / "which is bigger / better / larger / more profitable" / "rank these companies" / "head to head", side-by-side comparison of 2-5 companies or drugs in ONE parallel call. ALWAYS PREFER over sequential single-pack lookups when comparing entities. type="company" pulls LATEST 10-K revenue + operating income + net income + cash + long-term debt from SEC EDGAR/XBRL (off-calendar fiscal years handled correctly, AAPL Sep, NVDA Jan, etc.). type="drug" pulls FAERS adverse-event counts, FDA approval counts, active trial counts. Results sorted by primary metric…

ParameterTypeDescription
type *stringEntity type: "company" or "drug".
values *arrayFor company: 2-5 tickers/CIKs (e.g., ["AAPL","MSFT"]). For drug: 2-5 names (e.g., ["ozempic","mounjaro"]).

list_subscriptions List Subscriptions

List the caller's active subscriptions (requires a free Pipeworx account; an empty list means none created yet, see subscribe). Returns id, type, params, created_at, last_fired_at, fire_count for each. Use this to review what you're monitoring before adding more or to find an id to cancel.

ParameterTypeDescription
include_inactivebooleanInclude cancelled subscriptions in the response (default false).

recent_alerts Recent Alerts

Pull fired events from your subscription feed. Returns the most recent alerts the evaluator has written to your persisted feed, each carries source, citation_uri (pipeworx:// when available), and the raw event payload. Filter by type (e.g. "sec_8k") and/or since (ISO timestamp). Set mark_read:true to flag returned events read so the next call only shows newer ones. Polls work fine; the same feed is also at GET registry.pipeworx.io/alerts.json for scripts and dashboards.

ParameterTypeDescription
limitnumberMax events to return (1-200, default 50).
mark_readbooleanFlag the returned events read in the same call (default false).
sincestringOptional ISO timestamp, return events fired_at >= this time.
typestringOptional, filter to one subscription type.
unread_onlybooleanReturn only events where read_at is null (default false).

entity_profile Entity Profile

"Tell me about X" / "research Acme" / "brief me on Tesla" / "what does Apple do" / "company profile for Microsoft" / "give me the rundown on NVDA" / "everything you know about $TICKER", full cross-source profile of a US public company in ONE parallel call. ALWAYS PREFER over chaining single-pack SEC/XBRL/news lookups when the user asks for a holistic view. Fans out across SEC EDGAR, XBRL, USPTO patents, federal contracts (USAspending), FDA-licensed biologics (Purple Book), H-1B hiring (DOL LCA), news and GLEIF, and returns: cik + company_name (+ resolved_from/resolved_to when `value` was a nam…

ParameterTypeDescription
type *string"company" or "ticker", both are accepted and behave identically; `value` can be a ticker, CIK, or company name either way. person/place coming soon.
value *stringTicker (e.g., "AAPL"), zero-padded CIK (e.g., "0000320193"), or company name (e.g., "Moderna"). A NAME now resolves through the national business registers as well as SEC EDGAR, so a non-US company re…
countrystringOPTIONAL ISO 3166-1 alpha-2 of the business register you mean ("NO", "FI", "GB", "JP", "FR", "EE", "BR"). Only affects a NAME lookup, and is often what separates the company you mean from a US namesak…

recent_changes Recent Changes

"What's new with X" / "latest on Y" / "what happened to Z this week / month / quarter" / "updates on Acme" / "news on Tesla recently" / "what's happening with Apple", change feed for a company in the last N days/weeks/months in ONE parallel call. Fans out to SEC EDGAR (filings since `since`), GDELT -> GNews fallback (news mentions in window, GDELT preferred, GNews when rate-limited or 5xx), USPTO (patents granted; PatentsView API sunset May 2025 so this soft-fails until reactivated). `since` accepts ISO date ("2026-04-01") or relative shorthand ("7d", "30d", "3m", "1y"). Returns structured cha…

ParameterTypeDescription
since *stringWindow start, ISO date ("2026-04-01") or relative ("7d", "30d", "3m", "1y"). Use "30d" or "1m" for typical monitoring.
type *stringEntity type. Only "company" supported today.
value *stringTicker (e.g., "AAPL") or zero-padded CIK (e.g., "0000320193").

validate_claim Validate Claim

"Is it true that..." / "fact check" / "verify the claim that..." / "did X really..." / "was Y actually..." / "confirm or refute" / "true or false", natural-language claim verification against authoritative sources. Use whenever the agent needs to check whether something a user said is factually correct. Company-financial claims (revenue, net income, cash for public US companies) verify via the structured SEC EDGAR + XBRL fast path with exact percent-delta math; ANY OTHER factual claim (macro statistics, rates, prices, drug data, records) automatically falls through to the grounded pipeline, ro…

ParameterTypeDescription
claim *stringNatural-language factual claim, e.g., "Apple's FY2024 revenue was $400 billion" or "Microsoft made about $100B in profit last year".
tolerance_pctnumberMax percent deviation still graded approximately_correct (0.5-50). Overrides the tolerance implied by the claim wording, set 1-2 for hallucination detection where any material error must be refuted. D…

company_facts Company Facts

TYPED, DETERMINISTIC financial facts for a US public company for an EXPLICITLY NAMED reporting period, "Apple revenue for fiscal 2023", "Walmart net income FY2026 Q3", "Microsoft cash at the end of fiscal 2024". PREFER OVER entity_profile / get_company_financials whenever the period matters: those answer "the most recent figures" and will happily hand back FY2025 when you asked about FY2019, and neither separates a discrete quarter from a year-to-date figure. This one refuses instead, it NEVER substitutes the latest period for the period requested, NEVER returns 0 for missing data, NEVER lets…

ParameterTypeDescription
attribute *stringWhich figure. "revenue" = total consolidated revenue; "net_income" = net income (loss); "cash" = cash and cash equivalents at the period end; "gross_profit"; "operating_income"; "eps_diluted" (diluted…
company *stringTicker ("AAPL"), 10-digit CIK ("0000320193"), or company name. A name that matches two filers equally well returns status "ambiguous" with both named rather than guessing, pass a ticker or CIK to be c…
period *objectThe reporting period, stated explicitly. There is no default and no "latest", that is the point of this tool.
as_ofstringPast ISO timestamp with timezone. Replay the latest answer actually recorded by that instant; no invented history or live fallback.
basisstringOnly "consolidated" in v1. Segment and product-level figures are XBRL-dimensioned and are not reachable through this contract at any concept.
exclude_publishersarrayPublisher ids forbidden for fact retrieval: sec, fmp, alphavantage. Case and surrounding whitespace are normalized; unknown ids are refused. Excluding sec currently leaves no eligible fact source and…
freshnessstringcached (default) permits an eligible stored answer; fresh requires an upstream refresh and never silently falls back to stale data.
max_agenumberMaximum age in seconds of the upstream publication, not our fetch. Older or undated facts are withheld.
restatementstringDefault "as_amended", the latest filed figure for the period, with everything it superseded listed. "as_originally_reported" takes the first filing instead.

scan_dependency Scan Dependency

Composite "should I add this npm package to my project" check in ONE call, fans out across deps.dev (license + advisories + version history) and bundlephobia (gzipped/minified bundle size, dependency count, ESM/tree-shake support). Use whenever an agent asks "is X safe / popular / small" or "what does adding lodash cost me". Returns a summary block (is_latest, license, published_at, advisory_count, bundle_kb_min, bundle_kb_gz, dependency_count, has_esm, tree_shakeable), per-advisory detail, links, and a list of recent alternative versions. NPM ecosystem only in v1; PyPI / Maven / Cargo / Go fa…

ParameterTypeDescription
package *stringnpm package name. Scoped packages (e.g. "@types/node") are accepted.
versionstringSpecific version to check (e.g., "18.3.1"). Defaults to the latest published version when omitted.

bet_research Bet Research

Research a Polymarket bet by pulling the relevant Pipeworx data for it in one call. Pass a market slug ("will-kristi-noem-win-the-2028-republican-presidential-nomination"), a polymarket.com URL, or a question text. A dated slug ("...-by-june-30-2026") still resolves after it settles, the resolver retries a closed-market lookup rather than giving up on the bare one, so either dated or undated works; prefer whichever slug you actually have. The tool resolves the market, classifies the bet, fans out to category-specific data packs in parallel, and returns an evidence packet + simple market-vs-mod…

ParameterTypeDescription
market *stringPolymarket slug ("will-kristi-noem-win-the-2028-republican-presidential-nomination"), full URL ("https://polymarket.com/event/..."), or question text ("Will Bitcoin hit $150k?"). Dated slugs still res…
depthstringquick = 2-3 evidence sources, thorough = full fan-out. Default thorough.
include_rawbooleanDefault false. When false (recommended), FRED/FDA/GDELT/Federal-Register evidence is summarized to the few fields agents actually use, keeps responses under ~20KB. Pass true to get full upstream paylo…

polymarket_arbitrage Polymarket Arbitrage

Find arbitrage opportunities on Polymarket via monotonicity violations + partition-sum checks. Call with NO args for a `trending_scan` of the top ~200 markets by weekly volume; pass `event` for the strongest per-event partition_check, or `topic` for a themed cross-event scan. `event` (recommended for a specific market): pass a Polymarket event slug like "fed-decision-may-2026" or "when-will-bitcoin-hit-150k"; walks child markets, checks date-axis / threshold-axis ordering AND computes the partition_check (sum of YES prices across mutually-exclusive legs, should ≈1; deviations >3pp emit a BUY…

ParameterTypeDescription
eventstringSingle-event mode (use this if you know the specific Polymarket event): event slug like "fed-decision-may-2026" or "when-will-bitcoin-hit-150k". Full Polymarket URLs also accepted.
topicstringCross-event mode (use this if you want to scan related events across the platform): a topic or seed question like "Fed rate decision" or "Strait of Hormuz traffic returns to normal". Tool searches Pol…

polymarket_edges Polymarket Edges

Scan top Polymarket markets and return opportunities where Pipeworx data disagrees with market price. Built for "what should I bet on today", agents discover opportunities without paging hundreds of markets. FIVE MODEL FAMILIES grouped into three response segments under by_segment: (1) MODEL_DRIVEN, crypto_price (lognormal barrier from 90d FRED log-returns) and news_momentum (GDELT 7d/21d article-volume ratio, soft signal w/ halved Kelly). (2) STRUCTURAL_ARBITRAGE, partition_overround on mutually-exclusive events; per-leg favorite-longshot bias correction with per-sport α (tennis 1.02, soccer…

ParameterTypeDescription
category_filterstringComma-separated list to restrict the output: "model_driven" (crypto_price + news_momentum), "structural_arbitrage" (partition_overround), "concentrated_longshot". Combine like "model_driven,structural…
limitnumberTop N edges to return after ranking. Default 10, max 25.
max_spread_ppnumberTradeable-edge filter. Maximum bid/ask spread in percentage points on the representative market. Default null (no filter). Set to 2 to require tight books, anything wider eats most plausible edges.
min_edge_ppnumberMinimum |edge| in percentage points to include (default 0.5). Edge is evaluated NET of slippage and Polymarket's own taker fee.
min_kellynumberMinimum half-Kelly fraction (as decimal, e.g. 0.005 = 0.5% of bankroll) to include single-leg opportunities. Default 0 (no filter). Skips opportunities that are too small to bet sensibly even if the e…
min_liquiditynumberTradeable-edge filter. Minimum $ liquidity on the representative market (or for partition_overround, on at least one top_leg). Default 0 (no filter). Set to 5000 to drop thin-book opportunities where…
min_partition_leg_kellynumberMinimum BEST per-leg half-Kelly fraction across a partition_overround opportunity's top_legs (or longshot_basket legs). Default 0 (no filter). Partition arbs always return kelly_fraction_half=0 at the…
slippage_ppnumberAssumed execution slippage in percentage points per leg (default 0.3), for bid/ask + thin depth cost that a last-trade price does not show. Subtracted from raw |edge| before ranking and Kelly sizing,…
windowstringPolymarket volume window to filter markets. Default 1wk.

polymarket_kalshi_spread Polymarket–Kalshi Spread

Cross-venue spread between Kalshi and Polymarket for the same resolving question. The two venues sometimes price the same outcome 2-25pp apart because their participant pools differ, when the bet shapes are equivalent that delta is a real signal, when they aren't the tool says so. TWO MODES: (1) `topic`, 11 pre-mapped macro subjects ("fed", "btc", "eth", "cpi", "gdp", "sp500", "recession", "next_pope", "next_uk_pm", "next_israel_pm", "2028_president") auto-fetch the matching event on each venue. You do NOT have to use those exact keys: the topic is resolved through aliases and keywords, so "bi…

ParameterTypeDescription
kalshi_event_tickerstringExplicit Kalshi event ticker, e.g. "KXFED-26OCT". Overrides the topic-mapped Kalshi side.
polymarket_event_slugstringExplicit Polymarket event slug, e.g. "fed-decision-in-june-825". Overrides the topic-mapped Polymarket side.
topicstringSubject to compare. Canonical keys: fed | btc | eth | cpi | gdp | sp500 | recession | next_pope | next_uk_pm | next_israel_pm | 2028_president, plus the 15-minute crypto up/down windows btc_15m | eth_…

polymarket_fill_risk Polymarket Fill Risk

Realizable-vs-theoretical edge check against live CLOB order-book depth, AND Polymarket's own taker fee, which is never zero and is folded in rather than left for you to add (fleet #3446: r/PredictionsMarkets flagged a "clean" fill that quietly omitted it as optimistic in the direction that loses money). REQUIRES one of `market` (single-market mode) or `event` (basket/partition mode). SINGLE-MARKET: pass a market slug/URL + side (buy_yes|sell_yes|buy_no|sell_no, default buy_yes) + size_usd (default 1000, max spend on buys, target proceeds on sells); walks the ladder and returns top_of_book, vw…

ParameterTypeDescription
eventstringBasket mode: event slug or full polymarket.com URL, checks every leg of the partition.
marketstringSingle-market mode: market slug or full polymarket.com URL.
sidestringSingle-market: buy_yes | sell_yes | buy_no | sell_no (default buy_yes). Basket: sell_yes | buy_yes (default auto, sell if partition sum > 1, buy if < 1).
size_usdnumberSingle-market: USD to spend (buys) or target proceeds (sells). Basket: settlement notional, shares per leg, each paying $1 at resolution. Default 1000, clamp 10-1,000,000.

polymarket_edge_tracker Polymarket Edge Tracker

Edge persistence and decay telemetry built from daily polymarket_edges snapshots. Answers "how long has this edge existed and is it shrinking?", a fresh wide edge and a 3-week-old wide edge are different trades (the latter is wide for a reason nobody is willing to take). Args: days (lookback, default 14, max 30), window (snapshot family, default "1wk"). RESPONSE: tracked[] = every opportunity in the LATEST snapshot with its full edge_pp_net time-series across prior snapshots, first_seen, trend (new | widening | stable | decaying) and decay_pp_per_day (both computed on |edge_pp_net|, the value…

ParameterTypeDescription
daysnumberLookback in days (default 14, clamp 2-30).
windowstringWhich polymarket_edges window family to read snapshots for: 24hr | 1wk | 1mo (default 1wk).

kalshi_weather_edge Kalshi Weather Edge

Prices Kalshi daily high-temperature markets against the NWS forecast for the market's OWN settlement station, and measures whether that forecast actually beats the market. Two modes. LIVE (default): returns the full strike ladder for one city and settlement date with market_prob (mid), forecast_prob, and edge_pp per strike, plus the settlement clause verbatim. BACKTEST (`backtest_days: N`): scores an archived gridded forecast against the market on settled days and returns brier_market vs brier_forecast with a plain-English `verdict`, so the edge is MEASURED rather than asserted. READ THE WARN…

ParameterTypeDescription
backtest_daysnumberRun measurement mode over the last N settled days (max 60) instead of pricing today. Returns brier_market vs brier_forecast, the settlement-vs-forecast basis, and per-day detail. Both sides are scored…
citystringCity to price, e.g. "nyc", "chicago", "los angeles", "miami", "austin", "houston", "denver", "philadelphia". Defaults to nyc. Unmapped cities return known_cities[] rather than a wrong series.
datestringSettlement date as YYYY-MM-DD. Defaults to the soonest open event. Daily weather markets open ~1-2 days ahead and close 05:00Z the next day.
market_typestring"high_temp" (default) | "precip". Precipitation markets return prices but no forecast_prob yet.
series_tickerstringExplicit Kalshi series, e.g. "KXHIGHNY" or "KXHIGHTBOS" (Boston). Overrides `city`; use it for any of the 121 daily weather series not in the city list.

resolution_audit Resolution Audit

Extract the settlement clause of a single Polymarket (.com or .us) or Kalshi market: who publishes the settling number (source), the clock time + timezone it is taken at (falling back to the market TITLE when the clause itself says "the time range specified in the title", e.g. Polymarket's 15-minute Chainlink TWAP family), the precision of the computation (e.g. "1-minute candle close" vs "60-second trailing average" vs "twap_60s_lookback"/"twap_30s_lookback" vs "election outcome"), comparison_basis, what is compared to what (end_average_vs_start_average | close_vs_open; orthogonal to precision…

ParameterTypeDescription
market *stringPolymarket (.com or .us) market slug or URL, OR a Kalshi market ticker (preferred) or event ticker (falls back to a representative market under that event).
venue *stringWhich venue to fetch the market from. "polymarket" is the offshore venue (polymarket.com); "polymarket-us" is the separate, CFTC-regulated polymarket.us venue, matched by slug via its own search (no e…

resolution_diff Resolution Diff

Field-by-field diff of TWO markets' settlement clauses (one from each of `a` and `b`; either can be Polymarket .com, Polymarket US, or Kalshi), runs resolution_audit on both sides and compares source, settle time, precision, comparison_basis, and evidence standard. Returns `equivalent`: "true" only when both sides parsed with enough confidence to compare AND no field conflicts; "false" when a specific conflict was found (differing_fields names which, e.g. ["source","settle_time"] for a Polymarket Bitcoin market settling on Binance's 1-minute candle at noon ET versus a Kalshi KXBTCD market sett…

ParameterTypeDescription
a *objectFirst market to compare.
b *objectSecond market to compare.

release_calendar_markets Release Calendar Markets

JOIN of the official release calendar (econ data, the FOMC, FDA decisions, SEC rules) against LIVE Polymarket/Kalshi markets, which scheduled releases land in the next N hours, and which live markets resolve on them. This is a POSITIONING tool, not a speed product: results are cached like every other pack (≤ 60s TTL) and there is no push/webhook, do not use this to try to beat a release, use it to see what is coming and what is already priced. CATEGORIES: econ (CPI, Employment Situation/jobs report, GDP, PCE, PPI, retail sales, housing starts, jobless claims, via fred_release_dates per known…

ParameterTypeDescription
categoriesstringComma or space separated subset of econ|fed|fda|sec|court, or "all" (default). E.g. "econ,fed" or "fda".
hoursnumberLook-ahead window in hours from now. Default 48. Capped at 720 (30 days), econ/fed releases are dated weeks apart, so a short window is often empty; widen rather than assume nothing is scheduled.

prediction_calibration Prediction Calibration

REALIZED win rate by shown price and minutes elapsed for short-horizon crypto up/down markets, net of taker fee, read from our own settled-outcomes archive, not from live prices. Answers the one question no venue will: "a side shown at 82 with five minutes left, how often did it ACTUALLY win?" Returns a grid of (price bucket x minute elapsed) -> n, realized_win_rate_pp, mean_shown_price_pp, calibration_gap_pp (realized minus shown, zero means the book is calibrated), breakeven_win_rate_pp (the shown price plus the taker fee that was actually in force for that market), and net_edge_pp (realized…

ParameterTypeDescription
assetstringbtc (default) | eth | sol | xrp | bnb. Coverage differs by venue: polymarket and polymarket-us carry btc/eth/sol/xrp, Kalshi carries btc/eth/bnb.
bucket_ppnumberPrice-bucket width in percentage points: 5 | 10 (default) | 20 | 25 | 50. Must divide 100, so the last bucket is never narrower than the rest.
horizonstring15m (default). 5m | 1h | 1d are accepted but only 15m is collected today, so another value returns coverage.windows_total 0 rather than an error.
minutenumberMinutes elapsed since window open, 0-based. Omit for the full grid; pass 5 for the "five minutes in" row only, which is also the cheapest query.
side_conventionstring"favorite" (default) folds each window onto whichever side was the favorite, the frame published claims about early favorites use. "yes" keeps the venue own YES/Up side.
venuestringpolymarket | polymarket-us | kalshi | all (default polymarket). "all" returns one grid per venue, never a merged one.

updown_venue_compare Updown Venue Compare

The same 15-minute crypto "up or down" window priced on polymarket.com, Polymarket US and Kalshi, side by side, with whether each pair is actually the same contract. Pass asset (btc | eth | sol | xrp | bnb) and window ("current" default, "next", "previous", or the window START as ISO such as 2026-10-27T14:15:00Z, on a 15-minute boundary). Per venue: question, Up bid / ask / mid / last, spread_pp, quote_state, volume WITH ITS UNIT, open interest, liquidity, settlement source, comparison basis, when it settles. THE VENUES ARE NOT ONE CONTRACT. Kalshi and Polymarket US settle on CF Benchmarks' BR…

ParameterTypeDescription
assetstringbtc (default) | eth | sol | xrp | bnb. Coverage differs by venue; a venue that does not list the asset answers not_listed.
horizonstring15m (default and the only value offered).
windowstring"current" (default), "next", "previous", or the window START as an ISO-8601 timestamp on a 15-minute boundary, e.g. 2026-10-27T14:15:00Z. An unaligned timestamp is refused, not rounded.

updown_divergence_rate Updown Divergence Rate

How often two venues settled the SAME 15-minute crypto window differently, over every settled window on record. Compares polymarket.com (Chainlink TWAP) with Kalshi and with Polymarket US (both CF Benchmarks BRTI), and Kalshi with Polymarket US as the same-feed control. Per pair: windows both venues settled, divergent count, the rate with its 95% Wilson interval (withheld under 30 paired windows), which direction they split, and what was excluded (unsettled on a side, 50-50). A HEADLINE RATE IS A CONCENTRATION QUESTION, so every pair also carries `concentration` (UTC days and hours the diverge…

ParameterTypeDescription
assetstringbtc (default) | eth | sol | xrp | bnb. The archive holds btc/eth on all three venues, sol/xrp on polymarket.com and Polymarket US, bnb on Kalshi only (no pair).
daysnumberLook-back in days, 1-90 (default 30). The archive starts 2026-09-22 (polymarket.com, Kalshi) and 2026-10-07 (Polymarket US, btc), so a longer span is capped by what is held; coverage is reported per p…

archive_evidence Archive Evidence

What did a web page say on a given date? Finds the archived capture of a URL nearest that date across the Internet Archive Wayback Machine, Common Crawl and Arquivo.pt, reads it, and returns the readable text (HTML stripped) with the capture timestamp, a link to the archived copy, and the GAP between the date asked for and the capture actually used (e.g. "Captured 1.5 day(s) before the requested date"). One call replaces the find-capture, fetch-record, parse-HTML chain. If no archive holds a capture within max_gap_days (default 30) it answers status "no_capture" and names the nearest capture b…

ParameterTypeDescription
date *stringThe date to look up, as YYYY-MM-DD (e.g. "2023-06-01"), YYYYMMDD, or a full ISO timestamp.
url *stringThe page address, e.g. "https://www.sec.gov" or "https://www.ftc.gov/policy-notices/privacy-policy".
max_charsnumberCharacters of page text to return. Default 12000, max 60000.
max_gap_daysnumberFurthest a capture may be from the date and still be used, in days. Default 30, max 3650.

archive_compare Archive Compare

What changed on a web page between two dates? Resolves the archived capture nearest each date (Internet Archive Wayback Machine, Common Crawl, Arquivo.pt), extracts the readable text of both, and returns a text-level diff: the segments removed and added, a similarity score, and both capture timestamps with their gaps from the requested dates. It diffs readable text, not markup, so a restyled page with the same words reads changed:false. Identical captures answer changed:false with the reason (same capture, identical content digest, or identical text), never an empty diff. A date with no captur…

ParameterTypeDescription
date_a *stringThe earlier date, as YYYY-MM-DD (e.g. "2021-06-01").
date_b *stringThe later date, as YYYY-MM-DD (e.g. "2024-06-01").
url *stringThe page address, e.g. "https://www.ftc.gov/policy-notices/privacy-policy".
max_gap_daysnumberFurthest a capture may be from each date and still be used, in days. Default 30, max 3650.

research_row Research Row

Claygent-style per-row research: answer ONE question about ONE company and return a JSON object matching your output_schema, with every field wrapped in its own evidence, {value, evidence_url, quote, status}. status is NEVER self-reported by the model: "found" means this code independently verified the model's quote is a VERBATIM substring of text actually fetched; "inferred" means a value was given but the quote could not be verified; "not_established" means no source answered the field, and its value is always null, never guessed, never a blended score. Sources: "web" fetches the company's o…

ParameterTypeDescription
entity *objectThe row/company to research. At least one of name/domain required.
output_schema *objectJSON Schema object naming the fields to extract, e.g. {"properties":{"sells_to_healthcare":{"type":"boolean"},"head_of_sales":{"type":"string"}}}. Up to 20 fields.
question *stringThe question to answer about this company, in natural language, e.g. "Does this company sell to healthcare, and who is the head of sales?"
max_costnumberCost ceiling in US dollars for this one row. Default 0.02, max 0.50, minimum viable 0.002 (below that the call is refused rather than silently exceeding it).
sourcesstringWhere to look: "web" (company site only), "catalog" (entity_profile only), "both" (default).

classify_row Classify Row

Cheap categorization: given a company and a list of candidate labels, decide which labels apply, the most common GTM/AI usage shape (tagging a list by industry, ICP fit, etc.), one small model call. Same evidence contract as research_row: each label comes back {label, applies, evidence_url, quote, status: found|inferred|not_established}, "found" only when the model's quote is independently verified as a verbatim substring of the text used. Pass text directly (cheapest, no fetch) or entity.domain to fetch the homepage once as a fallback. No text and no domain means every label is not_establishe…

ParameterTypeDescription
entity *objectThe row/company to classify. At least one of name/domain required.
labels *arrayCandidate labels to test, 2-30 strings, e.g. ["healthcare","fintech","logistics"].
textstringText to classify directly (a description, a page you already fetched, etc.), cheapest path, skips any fetch.

suggest_questions What Can I Ask Pipeworx?

What can I ask Pipeworx? / what is Pipeworx good for? / what can you do? / give me ideas / show me examples / getting started / what data do you have?, the onboarding entry point for an agent that just connected and wants to know what is worth asking. Returns category-bucketed example questions (company financials, drugs & clinical trials, economics, real estate, prediction markets, weather, government & patents, science & academia, news), each with the exact tool + argument shape that answers it, drawn from the live catalog of thousands of tools. Call with no arguments for the full spread, or…

ParameterTypeDescription
topicstringOptional focus area: finance | pharma | economics | real-estate | betting | weather | government | science | news. Omit for a cross-category spread.

generate_llms_txt Generate llms.txt

Generate a production-ready llms.txt file for any URL so AI crawlers (ChatGPT, Claude, Perplexity) can index the site cleanly. Fetches the page, extracts title/description/key links, and emits the standard llms.txt markdown format. Output is a single text blob ready to drop at site-root/llms.txt. Useful for: getting a client's site indexed by AI, drafting llms.txt for your own project, or auditing how an AI crawler would see a competitor.

ParameterTypeDescription
url *stringFull URL of the site to summarize, e.g. "https://example.com" or a specific landing page.
max_linksnumberMaximum number of link entries to include (default 25, max 50).

ai_visibility_check AI Visibility Check

Probe one or more LLMs for what they know about a business / brand / product / topic and score visibility (0-100) per model. Default model is Workers AI Llama-3.3-70b (free); pass `_apiKey` to also probe Anthropic (BYO key, you pay Anthropic directly for those calls). Returns per-model {score, confidence, signals, raw_response} + a combined view. Useful for AI-marketing audits, pre-launch brand checks, competitive monitoring.

ParameterTypeDescription
entity *stringThe thing to ask about. Brand/business name, product name, person, or topic. E.g. "Pipeworx", "OpenInvoice", "Acme Corp pricing".
_apiKeystringOptional Anthropic API key (sk-ant-...), only needed if "anthropic" is in models. Passed straight through to api.anthropic.com.
contextstringOptional: a phrase locating the entity (e.g. "Boston restaurant", "B2B SaaS"). Helps disambiguate common names.
modelsarrayWhich models to probe. Supported: "workers-ai" (free default), "anthropic" (requires _apiKey). Omit for just workers-ai.

scan_competitor_ai_presence Scan Competitor AI Presence

Compare AI visibility across multiple entities side-by-side. Probes each entity (your brand + N competitors) with ai_visibility_check, ranks by score, surfaces which is most/least recognized. Useful for competitive AI-marketing audits: "does Claude know about us as well as our competitors?". Returns ranked list with score, confidence, signal density per entity.

ParameterTypeDescription
entities *arrayArray of 2-8 entities to compare (brand/business/product names). First entry treated as the "subject" for narrative; rest are competitors.
_apiKeystringOptional Anthropic API key, only if "anthropic" is in models. Passed to api.anthropic.com per probe.
contextstringOptional shared context applied to every probe (e.g. "B2B SaaS", "Boston restaurant"). Disambiguates common names.
modelsarrayWhich models to probe. Supported: "workers-ai" (free default), "anthropic" (requires _apiKey). Omit for just workers-ai.

pipeworx_feedback Send Pipeworx Feedback

Tell the Pipeworx team something is broken, missing, or needs to exist. Use when a tool returns wrong/stale data (bug), when a tool you wish existed isn't in the catalog (feature/data_gap), or when something worked surprisingly well (praise). ONLY for tools served by this Pipeworx connection, if the tool came from a different MCP server in your client (another vendor's Gmail, Splunk, Slack, etc. connector), we cannot fix it and reporting it here only delays you; file it with that server instead. Not sure? Pipeworx tool names are the ones this connection lists. Describe the issue in terms of Pi…

ParameterTypeDescription
claim_tokenstringRead the reply to a report you filed earlier: pass the `pwfb_...` token that filing returned, with no other arguments. Returns the status and, once resolved, what actually changed.
contextobjectOptional structured context: which tool, pack, or vertical this relates to.
messagestringYour feedback in plain text. Be specific (which tool, what error, what data was missing). 1-2 sentences typical, 2000 chars max.
typestringbug = something broke or returned wrong data. feature = a new tool or capability you wish existed. data_gap = data Pipeworx does not currently expose. praise = positive note. other = anything else.

recall Recall

Retrieve a value previously saved via remember, or list all saved keys (omit the key argument). Use to look up context the agent stored earlier, the user's target ticker, an address, prior research notes, without re-deriving it from scratch. Scoped to your identifier (account ID or BYO key hash); anonymous connections cannot save memory. Pair with remember to save, forget to delete.

ParameterTypeDescription
kstringAlias for key.
keystringMemory key to retrieve (omit to list all keys). Accepts name, k, label as aliases.
labelstringAlias for key.
namestringAlias for key.

result_get Result Get

Read a saved result by result_id and pull only what you need. A result is saved when you call a data tool with _handle:true (needs an account and a retention setting, see result_settings). fields: dot paths to keep ("name", "address.city"). rows: how many rows (25), a range ("10-34"), or {"offset":0,"limit":25}. filter: keep rows matching every condition, e.g. {"state":"CA","amount":{"gt":1000}} (operators: eq, ne, gt, gte, lt, lte, contains, in, exists, startswith). With no arguments you get the whole result if it is small, otherwise its shape. Replies are capped by max_chars (default 60000)…

ParameterTypeDescription
result_id *stringThe result_id a handle-mode call returned (r?_ followed by 20 characters).
fieldsarrayDot paths to keep. With rows/filter they project each row; otherwise they project the result itself.
filterobjectConditions on row fields, all must match. Value = equality; or {"gt":1000}, {"contains":"acme"}, {"in":["CA","NY"]}, {"exists":true}.
max_charsnumberCap on the reply size, default 60000, max 400000.
rowsRow count (25), range ("10-34"), or {"offset":0,"limit":25}. Applies to the array of rows in the result.
rows_pathstringDot path to the array of rows when the result has several (the summary names the one detected).

result_list Result List

List your saved results (newest by key order), with tool, size, created and expiry. Expired results are not listed. Pass cursor from the previous page for more.

ParameterTypeDescription
cursorstringnext_cursor from the previous page.
limitnumberResults per page, 1-200, default 50.

orange_book_competition_profile Orange Book Competition Profile

Profile FDA Orange Book competition for an ingredient or trade name: matched applications/products, NDA versus ANDA holders, RLD/reference standards, patents, and exclusivities. Approved ANDAs indicate regulatory approval, not launch, supply, substitution, or market share.

ParameterTypeDescription
drug *stringIngredient or trade name.
limitnumberProduct rows (1-100, default 50).

orange_book_application_detail Orange Book Application Detail

Retrieve all FDA Orange Book product, patent, and exclusivity rows for one NDA or ANDA application. Patent and exclusivity dates are FDA listings, not a legal conclusion about enforceability or actual generic entry.

ParameterTypeDescription
application_number *stringNDA/ANDA number, digits only or with prefix.

orange_book_patent_expirations Orange Book Patent Expirations

When do the patents on a drug expire, the listed Orange Book patent expiration dates for a brand or ingredient, in order, with the earliest and latest across the whole schedule. Ask by drug alone ("Xarelto", "semaglutide") to get its full expiry schedule; add from_date/to_date only when you actually want a window, and anything the window excludes is counted and dated back to you so a filtered view is never mistaken for the full picture. Covers small-molecule drugs; biologics are in the Purple Book. Dates are sponsor-submitted FDA listings and do not establish freedom to operate or a certain la…

ParameterTypeDescription
drugstringIngredient, trade name, or applicant, e.g. "Xarelto" or "rivaroxaban".
from_datestringOptional window start YYYY-MM-DD. Omit for the drug's whole schedule.
limitnumberResults (1-100, default 25).
to_datestringOptional window end YYYY-MM-DD. Omit for the drug's whole schedule.

orange_book_exclusivity_expirations Orange Book Exclusivity Expirations

When does FDA marketing exclusivity expire for a drug, the listed Orange Book exclusivity expiration dates for a brand or ingredient, with the earliest and latest across the whole schedule. Ask by drug alone to get everything on file; add from_date/to_date only when you want a window, and anything excluded is counted and dated back to you. Exclusivity codes have program-specific meanings; expiration alone does not guarantee generic approval or launch.

ParameterTypeDescription
drugstringIngredient, trade name, or applicant, e.g. "Jardiance" or "empagliflozin".
from_datestringOptional window start YYYY-MM-DD. Omit for the drug's whole schedule.
limitnumberResults (1-100, default 25).
to_datestringOptional window end YYYY-MM-DD. Omit for the drug's whole schedule.

orange_book_loss_of_exclusivity_profile Orange Book Loss Of Exclusivity Profile

Build an FDA Orange Book loss-of-exclusivity evidence profile for a drug. Returns reference applications, approved ANDA counts and timing, plus active and elapsed listed patent and regulatory-exclusivity date ranges for LOE diligence.

ParameterTypeDescription
drug *stringIngredient or trade name.
as_of_datestringYYYY-MM-DD cutoff for active versus elapsed listings (default today).
limitnumberRows per evidence list (1-100, default 50).

orange_book_generic_entry_timeline Orange Book Generic Entry Timeline

Chronologically summarize FDA-approved ANDA applications matching an ingredient or trade name, deduplicated across strengths and products. Returns first approval dates, applicants, dosage forms, TE codes, and active-product counts for generic-entry analysis.

ParameterTypeDescription
drug *string
include_discontinuedbooleanInclude applications with only DISCN products (default true).
limitnumberUnique ANDA applications (1-100, default 50).

orange_book_reference_drug_landscape Orange Book Reference Drug Landscape

Map FDA Orange Book reference listed drugs and reference standards to approved ANDA competition by dosage-form/route and therapeutic-equivalence code. Returns reference applications, ANDA counts and applicants, and TE-code groupings.

ParameterTypeDescription
drug *string
include_discontinuedbooleanInclude DISCN products (default false).
limitnumberDosage-form/route groups (1-100, default 25).

orange_book_expiry_cliff_calendar Orange Book Expiry Cliff Calendar

Create a combined calendar of FDA Orange Book patent and regulatory-exclusivity expirations. Returns dated events with ingredient, trade name, applicant, application, patent/use-code, and exclusivity-code context for cliff monitoring.

ParameterTypeDescription
from_date *string
to_date *string
drugstringOptional ingredient, trade name, or applicant filter.
event_typestring
limitnumberEvents (1-100, default 50).

drug_patent_challenge_profile Drug Patent Challenge Profile

How exposed is one brand drug's patent protection, in a single call. Joins the three sources a generics or biotech analyst otherwise queries by hand: FDA Orange Book listed patents and their expiry dates, USPTO PTAB proceedings (IPR/PGR) filed against those exact patent numbers, and federal ANDA / Hatch-Waxman district-court dockets naming the brand. Returns the earliest expiry NOT under challenge, which patents are actively contested, and which generic firms are litigating. Use for loss-of-exclusivity diligence, generic-entry timing, or "who is attacking this drug and where". Listed dates are…

ParameterTypeDescription
application_nostringSpecific NDA/ANDA number instead of a name, e.g. "202155".
drugstringBrand or ingredient name, e.g. "Eliquis" or "apixaban".
max_patentsnumberPatents to check against PTAB (default 12, max 25). Each is one upstream call, so this bounds latency; any patents beyond the cap are still listed and counted.
yearsnumberDocket lookback window in years (default 10).

purple_book_competition_profile Purple Book Competition Profile

Profile FDA-licensed biologic competition around a proper, proprietary, or reference-product name. Counts unique BLAs as sponsors/applications and separates reference products, biosimilars, and interchangeables. It does not measure launches, availability, sales, or market share.

ParameterTypeDescription
biologic *string
limitnumberProduct rows (1-100, default 50).

purple_book_biosimilars Purple Book Biosimilars

List FDA-licensed 351(k) biosimilar and interchangeable products for an optional reference product, applicant, or product name. Approval/licensure does not establish commercial launch or current availability.

ParameterTypeDescription
include_interchangeablebooleanInclude interchangeable products (default true).
limitnumberRows (1-100, default 50).
querystring

purple_book_interchangeables Purple Book Interchangeables

List FDA Purple Book products designated 351(k) Interchangeable, optionally filtered by reference product, applicant, or product name. Interchangeability is an FDA designation; pharmacy substitution remains subject to applicable law and circumstances.

ParameterTypeDescription
limitnumber
querystring

purple_book_reference_product Purple Book Reference Product

Find a reference biologic and its FDA-licensed 351(k) products by proper or proprietary name. Product rows and BLA counts must not be interpreted as market participants, launches, or market share.

ParameterTypeDescription
reference_product *string
limitnumber

purple_book_recent_changes Purple Book Recent Changes

Return the changes section of FDA's latest monthly Purple Book report: N=newly approved, R=added in current release, U=updated. Updated or added does not necessarily mean newly licensed.

ParameterTypeDescription
change_typestring
limitnumber
querystring

purple_book_biosimilar_entry_timeline Purple Book Biosimilar Entry Timeline

Chronologically summarize unique FDA-licensed 351(k) BLAs associated with a reference biologic. Returns approval dates, applicants, product names, reference products, and biosimilar versus interchangeable designations for entry analysis.

ParameterTypeDescription
reference_product *stringReference proper/proprietary name or related product name.
limitnumberUnique 351(k) BLAs (1-100, default 50).