Mailjet CLI for Coding Agents
Use the Mailjet CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
9 functions 7 read 2 write API key auth
Mailjet CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Mailjet CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Mailjet CLI for Coding Agents
kosmokrator integrations:configure mailjet --set api_key="$MAILJET_API_KEY" --set api_secret="$MAILJET_API_SECRET" --enable --read allow --write ask --json
kosmo integrations:call mailjet.mailjet_send_email '{"from_email":"example_from_email","from_name":"example_from_name","to_email":"example_to_email","to_emails":"example_to_emails","subject":"example_subject","html":"example_html","text":"example_text"}' --json Discovery Before Execution
Agents and scripts can inspect Mailjet docs and schemas before choosing a function.
kosmo integrations:docs mailjet --json
kosmo integrations:docs mailjet.mailjet_send_email --json
kosmo integrations:schema mailjet.mailjet_send_email --json
kosmo integrations:search "Mailjet" --json
kosmo integrations:list --json Useful Mailjet CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
mailjet.mailjet_send_email | Write | from_email, from_name, to_email, to_emails, subject, html, text | Send an email via Mailjet. Specify sender, one or more recipients, subject, and HTML body. |
mailjet.mailjet_list_contacts | Read | limit, offset | List contacts in the Mailjet account. Returns paginated contact data including email addresses and metadata. |
mailjet.mailjet_get_contact | Read | id | Get details for a single Mailjet contact by ID or email address. |
mailjet.mailjet_create_contact | Write | Create a new contact in Mailjet. Provide the email address to add. | |
mailjet.mailjet_list_campaigns | Read | limit, offset | List email campaigns in the Mailjet account. Returns campaign IDs, subjects, and status. |
mailjet.mailjet_get_campaign | Read | id | Get details for a single Mailjet email campaign by ID. |
mailjet.mailjet_list_templates | Read | limit, offset | List email templates available in the Mailjet account. |
mailjet.mailjet_get_stats | Read | from_ts, to_ts, limit, offset | Get email statistics from the Mailjet statcounters endpoint. Returns send, delivery, open, click, and bounce counts. |
mailjet.mailjet_get_current_user | Read | none | Get the authenticated Mailjet user profile information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.