Extract structured transaction data from a contract at a URL.
Downloads the document, extracts text (with OCR fallback for scanned
PDFs), and runs PrimaCoda's contract-extraction prompt to return parties,
addresses, dates, prices, and key contract fields. Use this when an agent
has the contract hosted somewhere (Dropbox, Google Drive direct download,
Square Space, etc.) and wants to skip the upload step.
For multi-document deals (purchase + addenda + disclosures), use the
PrimaCoda dashboard's batch upload — this tool handles ONE document.
Args:
pdf_url: Direct download URL for the contract (PDF, DOCX, TXT, or
image). Must be reachable from the PrimaCoda server. Google
Drive "shared link" URLs work if set to "anyone with link";
other share URLs may need their direct-download form.
api_key: Your PrimaCoda MCP API key (starts 'pck_').