Skip to main content

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:

  1. Agent calls get_last_email with email: "[email protected]"
  2. Receives the email summary with a preview
  3. Calls get_email to fetch the full body
  4. 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:

  1. Agent calls get_last_email with the inbox address
  2. Checks received_at timestamp and subject for "password reset"
  3. 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:

  1. list_emails — finds all emails in the inbox
  2. Identifies the confirmation email by subject
  3. get_email — fetches full HTML/text body
  4. Extracts the confirmation URL from the body
  5. 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:

  1. list_emails with limit: 100
  2. For each email UUID, calls delete_email
  3. 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:

  1. get_last_email — retrieves the most recent email
  2. list_attachments with the email UUID
  3. Checks mime_type is application/pdf and reports the filename