{"name":"hanbai","title":"Hanbai","description":"Email API for AI agents: send and schedule transactional email, manage sending domains, contacts, suppressions, webhooks and broadcasts on AWS SES.","version":"0.2.0","documentation_url":"https://hanb.ai/developers","remotes":[{"type":"streamable-http","url":"https://hanb.ai/api/mcp"}],"endpoint":"https://hanb.ai/api/mcp","transport":"streamable-http","auth":{"type":"oauth2","authorization_server_metadata":"https://hanb.ai/.well-known/oauth-authorization-server","protected_resource_metadata":"https://hanb.ai/.well-known/oauth-protected-resource","resource":"https://hanb.ai/api/mcp","scopes":["emails:send","emails:read","domains:read","domains:write","inbound:read","contacts:read","contacts:write","broadcasts:send"],"default_scopes":["emails:read","domains:read","contacts:read","contacts:write"],"client_registration":["dynamic_client_registration","client_id_metadata_document"],"alternatives":[{"type":"api_key","header":"Authorization: Bearer hb_live_... or hb_test_...","obtain_url":"https://hanb.ai/settings/api-keys","note":"hb_test_ keys simulate sends. API and MCP live sending require a paid plan."}]},"capabilities":{"tools":{"listChanged":false}},"tools":[{"name":"send_email","title":"Send email","description":"Send one email (or schedule it with scheduled_at) through Hanbai. Suppressed recipients are rejected and the send counts against the monthly plan quota; test-mode keys (hb_test_) simulate delivery without sending. Returns the email id.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"required_scopes":["emails:send"]},{"name":"send_batch_email","title":"Send batch of emails","description":"Send up to 100 separate emails in one call (each with its own recipients and content). Suppression and plan quota apply to every email. When you are connected as an assistant (OAuth), nothing is sent: the result has status \"approval_required\" and an approval_url. Give that link to the user and say it is awaiting their approval; never say it was sent. With an API key, returns one id per email.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"required_scopes":["emails:send"]},{"name":"list_emails","title":"List sent emails","description":"List emails sent or scheduled through the API/MCP, newest first, with recipient, subject and delivery status. Paginate with next_cursor.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["emails:read"]},{"name":"get_email_status","title":"Get email status","description":"Get the recipient, subject and latest delivery status of one email by id.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["emails:read"]},{"name":"cancel_email","title":"Cancel scheduled email","description":"Cancel a scheduled email that has not been sent yet. A canceled email cannot be restored.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"required_scopes":["emails:send"]},{"name":"reschedule_email","title":"Reschedule email","description":"Change the send time of a scheduled email that has not been sent yet.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["emails:send"]},{"name":"add_domain","title":"Add sending domain","description":"Register a sending domain in a chosen AWS SES region. Returns the DNS records (DKIM, SPF, DMARC, MAIL FROM) to publish before verifying.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"required_scopes":["domains:write"]},{"name":"verify_domain","title":"Verify sending domain","description":"Re-check the DNS records of a domain and update its verification status.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"required_scopes":["domains:write"]},{"name":"list_domains","title":"List sending domains","description":"List sending domains with their verification status and region.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["domains:read"]},{"name":"audit_domain","title":"Audit domain DNS","description":"Run a live DNS audit of a sending domain (SPF, DKIM, DMARC, MX, Return-Path) with pass/fail per record.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"required_scopes":["domains:read"]},{"name":"add_contact","title":"Add contact","description":"Add a contact to a brand's audience, or update the name of an existing contact with the same email. An existing unsubscribed contact stays unsubscribed unless unsubscribed is set to false.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:write"]},{"name":"list_contacts","title":"List contacts","description":"List a brand's contacts (newest first) with email, name and subscription status. Filter by status or look up one email. Paginate with next_offset.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:read"]},{"name":"update_contact","title":"Update contact","description":"Update a contact's name or subscription status by contact id.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:write"]},{"name":"delete_contact","title":"Delete contact","description":"Permanently delete a contact by id. To stop emailing someone while keeping the record, set status unsubscribed with update_contact instead.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:write"]},{"name":"list_suppressions","title":"List suppressed addresses","description":"List addresses on the organization's suppression list (bounces, complaints, unsubscribes, manual) that no email will be sent to.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:read"]},{"name":"add_suppression","title":"Suppress address","description":"Add an address to the suppression list so no email is sent to it. An existing entry keeps its original reason.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:write"]},{"name":"remove_suppression","title":"Remove suppressed address","description":"Remove an address from the suppression list so it can receive email again. Removing a bounce or complaint entry can harm sender reputation.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"required_scopes":["contacts:write"]},{"name":"send_broadcast","title":"Send broadcast","description":"Email every active contact of a brand. When you are connected as an assistant (OAuth), a broadcast is never sent by this tool: the confirmed call returns status \"approval_required\" with an approval_url that the user must open and approve; say it is awaiting approval, never that it was sent. Without confirm_token nothing is sent: the result is a preview with the recipient count after suppression, the suppressed count, the remaining monthly quota and a confirm_token valid for 10 minutes. Called again with the same brand, subject and content plus that confirm_token, it sends the broadcast (each token works once).","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"required_scopes":["broadcasts:send"]},{"name":"get_usage","title":"Get plan usage","description":"Show the plan tier, emails sent this month against the plan limit, and contacts against the plan limit.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":[]},{"name":"list_webhooks","title":"List webhooks","description":"List webhook endpoints with their URL, subscribed events and enabled state.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"required_scopes":["domains:read"]},{"name":"create_webhook","title":"Create webhook","description":"Register an https endpoint to receive signed email events. Returns the signing secret once; it cannot be retrieved later.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"required_scopes":["domains:write"]},{"name":"delete_webhook","title":"Delete webhook","description":"Delete a webhook endpoint by id; it stops receiving events immediately.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"required_scopes":["domains:write"]}],"related":{"openapi":"https://hanb.ai/openapi.json","agent_skills":"https://hanb.ai/.well-known/agent-skills/index.json","llms_txt":"https://hanb.ai/llms.txt"}}