Usage Examples
These are real prompts you can give your AI agent after connecting the Zyntra MCP server.
Extract an OTP / Verification Code
Scenario: Your test triggers a signup that sends a 6-digit verification code to a Zyntra inbox.
Prompt:
"Get the last email in [email protected] and extract the 6-digit verification code from the body."
What happens:
- Agent calls
get_last_emailwithemail: "[email protected]" - Receives the email summary with a preview
- Calls
get_emailto fetch the full body - Extracts and returns the code from the text
Check If a Password Reset Email Arrived
Scenario: You triggered a password reset and want to confirm the email was delivered.
Prompt:
"Check if a password reset email arrived in [email protected] in the last 2 minutes."
What happens:
- Agent calls
get_last_emailwith the inbox address - Checks
received_attimestamp andsubjectfor "password reset" - Returns confirmation or reports no matching email found
Full Signup Automation Flow
Scenario: Run an end-to-end test: create a user, receive the confirmation email, extract the verification link, and clean up.
Prompt:
"List all emails in [email protected], find the one with subject 'Confirm your email', get its full content, extract the confirmation link, then delete the email."
What happens:
list_emails— finds all emails in the inbox- Identifies the confirmation email by subject
get_email— fetches full HTML/text body- Extracts the confirmation URL from the body
delete_email— cleans up after the test
Bulk Inbox Cleanup
Scenario: After a test run, delete all emails to keep the inbox clean.
Prompt:
"List all emails in [email protected] and delete each one."
What happens:
list_emailswithlimit: 100- For each email UUID, calls
delete_email - Repeats until inbox is empty
Check for Attachments
Scenario: Your app sends a PDF invoice — verify the attachment arrived correctly.
Prompt:
"Get the last email in [email protected] and list its attachments. Make sure a PDF is attached."
What happens:
get_last_email— retrieves the most recent emaillist_attachmentswith the email UUID- Checks
mime_typeisapplication/pdfand reports the filename