send_report_email
Validate recipients, attachments, and external-send rules, then deliver a Power BI report bundle by email via Microsoft Graph or SMTP.
Instructions
Validate recipients/attachments and send a report bundle via Graph or SMTP.
Args: recipients_to: Primary recipient email addresses (logged redacted as SHA-256 hashes). subject: Email subject line. body_markdown: Email body content (markdown/plain text). recipients_cc: Optional CC recipient email addresses. attachment_paths: Optional attachment paths inside PBI_WORKSPACE_ROOT. audience_profile: Target audience profile ("internal_ops", "internal_admin", "external_client"). report_cadence: Report cadence ("daily", "weekly", "monthly"). confirm_external_send: Explicit confirmation required before external client sends. transport: Delivery transport ("auto", "graph", "smtp"). sender_address: Sender address / UPN override. dry_run: Validate domains, external gate, and attachment sizes without sending (default True). max_attachment_bytes: Maximum allowed total attachment size in bytes. graph_client: Optional injected Graph client for testing. smtp_sender: Optional injected SMTP callable for testing.
Returns: Dict with delivery status, transport used, redacted recipient hashes, and block reasons.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipients_to": "<recipients_to>",
"subject": "<subject>",
"body_markdown": "<body_markdown>"
},
"name": "send_report_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| subject | Yes | ||
| transport | No | auto | |
| smtp_sender | No | ||
| graph_client | No | ||
| body_markdown | Yes | ||
| recipients_cc | No | ||
| recipients_to | Yes | ||
| report_cadence | No | daily | |
| sender_address | No | ||
| attachment_paths | No | ||
| audience_profile | No | internal_ops | |
| max_attachment_bytes | No | ||
| confirm_external_send | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||