mcli - Mantle Core API CLI

VerifiedSafe

Query the Mantle Core API using the mcli CLI tool. This skill is for read-only operations.

Sby Skills Guide Bot
Data & AIIntermediate
7/25/2026
Claude Code
#mantle#cli#query#metrics#customer-data

Recommended for

Automated summary

Queries the Mantle Core API in read-only mode via the mcli CLI tool, providing access to customers, subscriptions, metrics, transactions, and other platform data.

Strengths

  • Full read-only access to Mantle data without needing the web interface.
  • Supports pagination and filters to retrieve large datasets.
  • JSON output easily parsable with tools like jq.

Limitations

  • Restricted to read-only operations (no create/update/delete).
  • Requires pre-authenticated CLI (no direct API token management).
  • List commands limited to 100 items per request with pagination.
When to use it

When you need to quickly look up Mantle data (customers, metrics, subscriptions) via a scriptable command-line interface.

When not to use it

When you need to create, update, or delete Mantle resources, as mcli is strictly read-only.

Security analysis

Safe
Quality score90/100

The skill explicitly restricts usage to read-only commands and warns against mutations. It does not instruct any destructive, exfiltrating, or obfuscated actions. The CLI tool is pre-authenticated and used only for querying data.

No concerns found

How this analysis is made

Examples

Look up a customer
Look up customer 'Acme Corp' in Mantle and show their subscriptions and recent timeline.
Get MRR metrics
Check the MRR for the last 30 days in Mantle and output the results as JSON.
Search for a contact
Search Mantle entities for 'john@example.com' and list all associated customers and contacts.

name: mcli description: > Query the Mantle Core API using the mcli CLI tool. Use this skill when the user asks to look up, query, list, get, or investigate data from the Mantle platform — customers, subscriptions, metrics (MRR, ARR, churn, etc.), apps, plans, deals, contacts, usage events, charges, transactions, affiliates, tickets, meetings, email campaigns, email deliveries, or any other Mantle resource. Triggers on: "look up customer", "check MRR", "find subscription", "get metrics", "query usage events", "list deals", "search entities", "list email campaigns", "check email deliveries", or any request to read data from the Core API. This skill is READ-ONLY — never use mcli to create, update, or delete data.

mcli — Mantle Core API CLI

Query Mantle data via the mcli command. This skill covers read-only operations only.

Key Rules

  • Read-only: Only use list, get, search, timeline, and metrics subcommands. Never use create, update, delete, add-*, remove-*, or any mutating command.
  • Always use --json when you need to parse or analyze the output programmatically.
  • Pagination: Most list commands default to 25 items. Use --take to get more (up to 100) and --cursor or --page for pagination.
  • The CLI is pre-authenticated. Run mcli whoami if you need to confirm the current profile.

Quick Patterns

Look up a customer

mcli customers list --search "acme" --json
mcli customers get <id> --json
mcli customers get <id> --includes subscriptions --json
mcli customers timeline <id> --json

Check metrics

mcli metrics mrr --date-range last_30_days --json
mcli metrics arr --app-id <id> --json
mcli metrics revenue-churn --date-range this_month --json
mcli metrics sales --json

Find subscriptions

mcli subscriptions list --customer-id <id> --json
mcli subscriptions get <id> --json

Search across contacts and customers

mcli entities search --search "john@example.com" --json

View app events / usage

mcli apps list-events --app-id <id> --take 50 --json
mcli usage-events list --customer-id <id> --event-name "page_view" --json
mcli metrics usage-event --app-id <id> --event-name "api_call" --date-range last_7_days --json

Deals and pipeline

mcli deals list --status open --json
mcli deals get <id> --json
mcli deals timeline <id> --json

Charges and transactions

mcli charges list --customer-id <id> --json
mcli transactions list --customer-id <id> --app-id <id> --json

Full Command Reference

See references/commands.md for the complete list of read-only commands and their options.

Tips

  • Use mcli <resource> help <subcommand> to see all options for any command.
  • Pipe --json output to jq for filtering: mcli customers list --json | jq '.customers[] | .name'
  • Date ranges accept presets (last_30_days, this_year, etc.) or custom ISO 8601 dates via --start-date / --end-date.
  • When investigating a customer, start with entities search to find them, then drill into customers get, subscriptions list, charges list, etc.

Email campaigns and deliveries

mcli email-campaigns list --status active --json
mcli email-campaigns get <id> --json
mcli email-campaigns preview <id> --customer-id <cust_id> --json
mcli email-deliveries list --email-id <campaign_id> --json
mcli email-deliveries get <id> --json
mcli email-layouts list --json
mcli email-senders list --json

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mcli-mantle-core-api-cli-mrx3xzzt/download' --output '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md.part' && mv '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md.part' '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md' && test -s '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/mcli' && cp -R '.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt' '.claude/skills/mcli'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt'

openskills read 'mcli-mantle-core-api-cli-mrx3xzzt'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/mcli-mantle-core-api-cli-mrx3xzzt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills