Source profileQuality 91/100

WYRE-AI/msp-claude-plugins/msp-claude-plugins/mimecast/mimecast/skills/api-patterns/SKILL.md

Mimecast API Patterns

Mimecast MCP fundamentals: the available tool catalog, OAuth 2.0 client-credentials authentication, regional API endpoints, pagination, rate limiting, and error handling.

Source repository stars
42
Declared platforms
0
Static risk flags
0
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

Mimecast MCP fundamentals: the available tool catalog, OAuth 2. 0 client-credentials authentication, regional API endpoints, pagination, rate limiting, and error handling.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/WYRE-AI/msp-claude-plugins --skill "msp-claude-plugins/mimecast/mimecast/skills/api-patterns"
    Safe inspection promptEditorial

    Inspect the Agent Skill "Mimecast API Patterns" from https://github.com/WYRE-AI/msp-claude-plugins/blob/5005f73ba2f52cd299f58aa6bb79f4e70ae87103/msp-claude-plugins/mimecast/mimecast/skills/api-patterns/SKILL.md at commit 5005f73ba2f52cd299f58aa6bb79f4e70ae87103. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Connection & Authentication

      Mimecast uses OAuth 2.0 client credentials flow. The MCP Gateway injects credentials via headers:

      Mimecast uses OAuth 2.0 client credentials flow. The MCP Gateway injects credentials via headers:The server exchanges the client ID and secret for a bearer token at startup and refreshes it as needed. Individual tool calls do not require manual token management.Environment Variables (self-hosted):
    2. 02

      OAuth 2.0 Client Credentials

      Mimecast uses OAuth 2.0 client credentials flow. The MCP Gateway injects credentials via headers:

      Mimecast uses OAuth 2.0 client credentials flow. The MCP Gateway injects credentials via headers:The server exchanges the client ID and secret for a bearer token at startup and refreshes it as needed. Individual tool calls do not require manual token management.Environment Variables (self-hosted):
    3. 03

      Regional Endpoints

      Mimecast tenants are hosted in specific regions. Using the wrong region returns empty results or authentication failures.

      Mimecast tenants are hosted in specific regions. Using the wrong region returns empty results or authentication failures.To identify the correct region, log into the Mimecast Administration Console and check the URL — the subdomain indicates the region (us, eu, de, etc.).
    4. 04

      Available MCP Tools

      Review the “Available MCP Tools” section in the pinned source before continuing.

      Review and apply the “Available MCP Tools” source section.
    5. 05

      Message Tracking

      Review the “Message Tracking” section in the pinned source before continuing.

      Review and apply the “Message Tracking” source section.

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars42SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    WYRE-AI/msp-claude-plugins
    Skill path
    msp-claude-plugins/mimecast/mimecast/skills/api-patterns/SKILL.md
    Commit
    5005f73ba2f52cd299f58aa6bb79f4e70ae87103
    License
    Apache-2.0
    Collected
    2026-08-28
    Default branch
    main
    View the original SKILL.md

    Mimecast MCP Tools & API Patterns

    Overview

    The Mimecast MCP server provides AI tool integration with the Mimecast Email Security platform. It covers message tracking, threat intelligence (TTP), email delivery queue management, and audit event access. Authentication is via OAuth 2.0 client credentials — the MCP Gateway handles token acquisition automatically using the injected client ID and secret.

    Connection & Authentication

    OAuth 2.0 Client Credentials

    Mimecast uses OAuth 2.0 client credentials flow. The MCP Gateway injects credentials via headers:

    HeaderDescription
    X-Mimecast-Client-IDOAuth 2.0 Client ID
    X-Mimecast-Client-SecretOAuth 2.0 Client Secret
    X-Mimecast-RegionRegional API endpoint key (us, eu, de, ca, za, au)

    The server exchanges the client ID and secret for a bearer token at startup and refreshes it as needed. Individual tool calls do not require manual token management.

    Environment Variables (self-hosted):

    export MIMECAST_CLIENT_ID="your-client-id"
    export MIMECAST_CLIENT_SECRET="your-client-secret"
    export MIMECAST_REGION="us"
    

    IMPORTANT: Never hardcode credentials. Always use environment variables or the MCP Gateway.

    Regional Endpoints

    Mimecast tenants are hosted in specific regions. Using the wrong region returns empty results or authentication failures.

    Region KeyBase URL
    ushttps://api.services.mimecast.com
    euhttps://eu-api.mimecast.com
    dehttps://de-api.mimecast.com
    cahttps://ca-api.mimecast.com
    zahttps://za-api.mimecast.com
    auhttps://au-api.mimecast.com

    To identify the correct region, log into the Mimecast Administration Console and check the URL — the subdomain indicates the region (us, eu, de, etc.).

    Available MCP Tools

    Message Tracking

    ToolDescription
    mimecast_find_messageSearch messages by sender, recipient, subject, date range
    mimecast_get_message_infoGet detailed metadata for a specific message
    mimecast_hold_messagePlace a message on hold (prevent delivery)
    mimecast_release_messageRelease a held message for delivery

    Threat Intelligence

    ToolDescription
    mimecast_get_threat_incidentsList threat remediation incidents
    mimecast_get_ttp_logsGet TTP logs — URL clicks, attachment checks, impersonation
    mimecast_get_audit_eventsRetrieve audit log entries

    Queue Management

    ToolDescription
    mimecast_get_queue_statusGet email delivery queue status — whole gateway, no arguments, no filters

    Pagination

    Most Mimecast list endpoints use cursor-based pagination:

    • Responses include a meta.pagination object with pageSize, totalCount, and optionally next
    • Pass the next cursor value as the pageToken parameter on the next call
    • Continue until meta.pagination.next is absent or null

    Example pagination response:

    {
      "meta": {
        "status": 200,
        "pagination": {
          "pageSize": 25,
          "totalCount": 142,
          "next": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MjV9"
        }
      },
      "data": []
    }
    

    Pagination workflow:

    1. Call the tool with no pageToken
    2. Check meta.pagination.next in the response
    3. If present, call again with pageToken set to that value
    4. Repeat until next is absent

    Rate Limiting

    Mimecast enforces per-endpoint rate limits. Specific limits vary by subscription tier.

    • HTTP 429 responses indicate rate limiting
    • Use exponential backoff before retrying
    • Apply date range and sender/recipient filters to reduce result set sizes
    • Avoid broad sweeping queries — target specific messages or time windows

    Error Handling

    Common Error Codes

    CodeMeaningResolution
    400Bad RequestCheck required parameters and date format (ISO 8601)
    401UnauthorizedVerify Client ID and Secret; check token expiry
    403ForbiddenInsufficient OAuth scopes for the operation
    404Not FoundMessage ID or resource doesn't exist
    429Rate LimitedWait and retry with backoff
    500Server ErrorRetry; contact Mimecast support if persistent

    Error Response Format

    {
      "meta": {
        "status": 401,
        "message": "Invalid credentials"
      },
      "fail": [
        {
          "errors": [
            {
              "code": "err_auth_invalid",
              "message": "The provided client credentials are invalid",
              "retryable": false
            }
          ]
        }
      ]
    }
    

    Wrong Region

    If requests succeed but return empty data arrays when results are expected, the region is likely incorrect. Verify the tenant's region and update the MIMECAST_REGION configuration.

    Best Practices

    • Always specify date ranges when searching messages — open-ended queries are slow and may be rate limited
    • Use sender and recipient filters together to narrow results quickly
    • Check the meta.status field in every response — Mimecast sometimes returns HTTP 200 with error status in the body
    • Log the requestId from response headers for support escalations

    Related Skills

    Frequently asked questions

    What to verify before installation and use

    What does the Mimecast API Patterns source document cover?

    Mimecast MCP fundamentals: the available tool catalog, OAuth 2. 0 client-credentials authentication, regional API endpoints, pagination, rate limiting, and error handling.

    How do I install Mimecast API Patterns?

    The source record exposes this install command: npx skills add https://github.com/WYRE-AI/msp-claude-plugins --skill "msp-claude-plugins/mimecast/mimecast/skills/api-patterns". Inspect the command and pinned source before running it.

    Alternatives

    Compare before choosing

    Computed 10045,960

    coreyhaines31/marketingskills

    ab-testing

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

    Computed 10029,236

    garrytan/gbrain

    bulk-ingestion

    End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

    Computed 10025,136

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 1005,277

    dotnet/skills

    migrate-vstest-to-mtp

    Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing