download_pdf_from_url
Fetch a presigned S3 PDF URL server-side and return the document as base64.
Use this to pull the actual PDF bytes for a presigned S3 link — e.g. the `url`
returned by `get_latest_report` — on clients that can't open the link directly and
need the document inline. The backend fetches the URL for you (clients never have
to reach S3) and streams the PDF back. Only S3 URLs are accepted: the host must end
in "amazonaws.com" and contain "s3"; any other host is rejected with a 400 (SSRF
guard). NOTE: if you already have `get_latest_report`'s `report` field (the same PDF
inline as base64), use that directly — there's no need to call this.
Returns {"file_name": ..., "media_type": "application/pdf", "report": "<base64 pdf>"}
— decode `report` to read, render, or save the PDF.
Requires auth (your MCP client attaches the OAuth bearer automatically).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Presigned S3 link, e.g. get_latest_report's `url`. The host must end in "amazonaws.com" and contain "s3" (anything else is a 400). | |
| file_name | Yes | Download filename to label the document, e.g. "AAPL.pdf". |