Rule queried from the terminal.
List subscribers, tags, segments and campaigns, pull per-campaign statistics, tag and update subscribers, and fire transactional sends — from Bash over the Rule MCP. The Rule API without the boilerplate.
cogny --who
TWO PATHSToday you click into each Rule campaign to read its stats and manage tags one subscriber at a time. With the CLI you pull campaign statistics as JSON and bulk-tag subscribers in a single scripted call. Connect Rule once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every Rule tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Rule MCP. Send --input JSON, get JSON back.
mcp__Rule__tool_get_campaign_statisticsOpen/click/bounce stats for one campaign.mcp__Rule__tool_list_campaignsList campaigns, optionally filtered by status.mcp__Rule__tool_add_subscriber_tagsAdd tags to a subscriber.cogny tools list
MOREA sample of the rest of the Rule surface. Run cogny tools list --json for every tool and its input schema.
mcp__Rule__tool_list_subscribersmcp__Rule__tool_create_subscribermcp__Rule__tool_update_subscribermcp__Rule__tool_list_tagsmcp__Rule__tool_list_segmentsmcp__Rule__tool_get_campaignmcp__Rule__tool_schedule_campaignmcp__Rule__tool_send_transactioncogny --faq
No — it is the Cogny CLI calling the Rule MCP over the cogny-mcp-proxy. You connect Rule once in Cogny with your API token, and then every tool is callable from Bash with your Cogny key.
Yes. `tool_send_transaction` fires a transactional send, alongside campaign tools (list, get, schedule, send) and subscriber/tag management. It is the same Rule API surface, scriptable.
Yes — that is the point. `npx @cogny/cli init --agent claude-code` issues a key, then `cogny tools call mcp__Rule__tool_get_campaign_statistics --input ...` works from any shell. No /mcp wiring or restart needed.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt