> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP toolset

> The same server listing one toolset (core, inventory, risk, trade, compliance, actions, stores, finance, merch, data, all).

Any active API key. API key only (no session). A body that is not one JSON-RPC request answers 400 with a JSON-RPC error envelope, not the Error object; the per-minute limit answers 429. A key's daily quota is not a 429 here: a tool call past it answers 200 with isError true and the error object as text, and reading a resource past it answers 200 with JSON-RPC error -32000. A 401 carries WWW-Authenticate.



## OpenAPI

````yaml /openapi.json post /v1/mcp/{toolset}
openapi: 3.1.0
info:
  title: InsightChain API
  version: 2.0.0
  description: 'The InsightChain API. Send your key as `Authorization: Bearer <key>`.'
  contact:
    name: InsightChain
    url: https://insightchain.ai/docs
  license:
    name: Proprietary
    url: https://insightchain.ai/terms
servers:
  - url: https://api.insightchain.ai
security: []
tags:
  - name: Data ingestion
  - name: Tariff check
  - name: Landed cost
  - name: Import taxes
  - name: Customs documents
  - name: Denied party screening
  - name: Location risk
  - name: Tariff impact and trade data
  - name: Recommendations
  - name: Orders and approval
  - name: Explanations
  - name: Alerts
  - name: Inventory
  - name: Forecast check
  - name: Disruptions
  - name: Product compliance
  - name: Product recalls
  - name: Product passports
  - name: Webhooks
  - name: Connections
  - name: Sync runs
  - name: API keys
  - name: Usage
  - name: Request log
  - name: Agent (MCP) server
paths:
  /v1/mcp/{toolset}:
    post:
      tags:
        - Agent (MCP) server
      summary: MCP toolset
      description: >-
        The same server listing one toolset (core, inventory, risk, trade,
        compliance, actions, stores, finance, merch, data, all).


        Any active API key. API key only (no session). A body that is not one
        JSON-RPC request answers 400 with a JSON-RPC error envelope, not the
        Error object; the per-minute limit answers 429. A key's daily quota is
        not a 429 here: a tool call past it answers 200 with isError true and
        the error object as text, and reading a resource past it answers 200
        with JSON-RPC error -32000. A 401 carries WWW-Authenticate.
      operationId: mcpToolset
      parameters:
        - name: toolset
          in: path
          required: true
          schema:
            type: string
            enum:
              - core
              - inventory
              - risk
              - trade
              - compliance
              - actions
              - stores
              - finance
              - merch
              - data
              - all
        - name: toolsets
          in: query
          required: false
          schema:
            type: string
            maxLength: 200
          description: >-
            The toolsets tools/list shows, comma-separated: core, inventory,
            risk, trade, compliance, actions, stores, finance, merch, data, all.
            Default core. Any tool can be called whichever set is listed
        - name: schemas
          in: query
          required: false
          schema:
            type: string
            enum:
              - compact
              - full
          description: >-
            The outputSchema form in tools/list: compact (top-level fields,
            default) or full (every field)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                id:
                  type:
                    - string
                    - number
                    - 'null'
                  description: Echoed in the answer; left out for a notification
                method:
                  type: string
                  description: >-
                    The JSON-RPC method, e.g. initialize, tools/list or
                    tools/call
                params:
                  type: object
                  description: The method's parameters
              required:
                - jsonrpc
                - method
              additionalProperties: false
            example:
              jsonrpc: '2.0'
              id: 1
              method: tools/list
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    const: '2.0'
                  id:
                    type:
                      - string
                      - number
                      - 'null'
                    description: >-
                      The id of the request; null when it carried none or could
                      not be read
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/McpInitializeResult'
                      - $ref: '#/components/schemas/McpToolsListResult'
                      - $ref: '#/components/schemas/McpToolsCallResult'
                      - type: object
                        additionalProperties: true
                    description: >-
                      By method: initialize, tools/list, tools/call;
                      prompts/list, prompts/get, resources/list,
                      resources/templates/list and resources/read answer as the
                      protocol defines; ping answers an empty object
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        description: >-
                          A JSON-RPC code: -32600 not a valid request, -32601
                          method not found, -32602 unknown tool, prompt or
                          argument, -32002 resource not found, -32000 the key's
                          daily quota is used up (reading a resource), -32603
                          the request failed on our side
                      message:
                        type: string
                    required:
                      - code
                      - message
                    description: In place of result when the request could not be served
                required:
                  - jsonrpc
                  - id
                description: 'A JSON-RPC 2.0 response: exactly one of `result` and `error`'
              example:
                jsonrpc: '2.0'
                id: 2
                result:
                  content:
                    - type: text
                      text: >-
                        {"object":"list","data":[{"id":"019c6556-7c11-4dd7-a3b3-4477ab043253","kind":"connector","severity":"high","status":"open","title":"Sync
                        of erp-main has failed three
                        times"}],"has_more":false,"next_cursor":null}
                  structuredContent:
                    object: list
                    data:
                      - id: 019c6556-7c11-4dd7-a3b3-4477ab043253
                        kind: connector
                        severity: high
                        status: open
                        title: Sync of erp-main has failed three times
                    has_more: false
                    next_cursor: null
                  isError: false
        '202':
          description: >-
            A notification (a method starting with notifications/): accepted,
            with no body
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
        '400':
          description: >-
            Invalid input: an unknown or invalid parameter (error.param names
            it) or a body the route does not accept
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/McpErrorEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          description: Internal error; quote request_id
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/McpErrorEnvelope'
        '502':
          $ref: '#/components/responses/UpstreamError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - apiKey: []
components:
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute. On every answer to an accepted API key
    RateLimit-Remaining:
      schema:
        type: integer
      description: Requests left in the current minute window
    RateLimit-Reset:
      schema:
        type: integer
      description: Seconds until the minute window resets
    X-RateLimit-Limit-Day:
      schema:
        type: integer
      description: The key's daily quota
    X-RateLimit-Remaining-Day:
      schema:
        type: integer
      description: Requests left today (resets 00:00 UTC)
    X-Request-ID:
      schema:
        type: string
      description: Quote this when asking about a request
    X-Client-Request-ID:
      schema:
        type: string
      description: Your own X-Request-ID request header, echoed. Absent when you sent none
    X-InsightChain-Sandbox:
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Present, and true, on every answer to a test key: the data is the
        sandbox's
    Allow:
      schema:
        type: string
      description: The methods the path takes
    Retry-After:
      schema:
        type: integer
      description: Seconds to wait before trying again
  schemas:
    McpInitializeResult:
      type: object
      properties:
        protocolVersion:
          type: string
          description: >-
            The protocol version the server will speak: the one requested when
            it is supported, else the newest supported
        capabilities:
          type: object
          additionalProperties: true
          description: tools, prompts and resources
        serverInfo:
          type: object
          properties:
            name:
              type: string
            title:
              type: string
            version:
              type: string
          required:
            - name
            - title
            - version
        instructions:
          type: string
          description: >-
            Where to start, which toolset this connection lists, and how a cut
            result is continued, for the model
      required:
        - protocolVersion
        - capabilities
        - serverInfo
        - instructions
    McpToolsListResult:
      type: object
      properties:
        tools:
          type: array
          items:
            $ref: '#/components/schemas/McpTool'
          description: >-
            The tools of the connected toolsets that the caller's organization
            is entitled to
      required:
        - tools
    McpToolsCallResult:
      type: object
      properties:
        content:
          type: array
          items:
            type: object
            properties:
              type:
                const: text
              text:
                type: string
                description: >-
                  The same JSON as structuredContent, as text; for a refused or
                  failed call the error object as text, or a sentence
            required:
              - type
              - text
          description: One text item
        structuredContent:
          type: object
          additionalProperties: true
          description: >-
            The tool's answer: the JSON its route returns, a list's rows once,
            cut to 32,000 bytes with `truncated`, `omitted` and `next_cursor`
            when it was larger. Absent when isError is true
        isError:
          type: boolean
      required:
        - content
        - isError
    Error:
      type: object
      description: The body of every non-2xx answer
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: >-
                Stable machine-readable code, e.g. parameter_invalid,
                scope_missing, rate_limit_exceeded. Every code is listed at
                /docs/errors
            message:
              type: string
              description: For people; what `error` used to be as a plain string
            param:
              type:
                - string
                - 'null'
              description: The parameter the error is about, when there is one
            doc_url:
              type: string
              description: Where the code is documented
          required:
            - type
            - code
            - message
            - param
            - doc_url
        request_id:
          type: string
        details:
          type: array
          items: {}
          description: >-
            On a 400 for input with several problems: one entry per problem, a
            sentence or an object with `field` and `message`
        limit:
          type: integer
          description: 'On a 429: the limit that was reached'
        code:
          type: string
          deprecated: true
          description: 'Deprecated: use error.code'
        field:
          type: string
          deprecated: true
          description: 'Deprecated: use error.param'
      required:
        - error
        - request_id
      additionalProperties: true
    McpErrorEnvelope:
      type: object
      properties:
        jsonrpc:
          const: '2.0'
        id:
          type:
            - string
            - number
            - 'null'
          description: >-
            The id of the request; null when it carried none or could not be
            read
        error:
          type: object
          properties:
            code:
              type: integer
              description: >-
                -32700 the body is not JSON, -32600 not a single JSON-RPC
                request, -32603 the request failed on our side
            message:
              type: string
          required:
            - code
            - message
      required:
        - jsonrpc
        - id
        - error
      description: A JSON-RPC 2.0 error response. The request id is the X-Request-ID header
    McpTool:
      type: object
      properties:
        name:
          type: string
        title:
          type: string
        description:
          type: string
          description: When to use the tool, what it returns, and what a call costs
        inputSchema:
          type: object
          additionalProperties: true
          description: The tool's arguments, as a JSON Schema
        outputSchema:
          type: object
          additionalProperties: true
          description: >-
            The tool's structuredContent, as a JSON Schema: the top-level
            fields, or every field with ?schemas=full
        annotations:
          type: object
          properties:
            readOnlyHint:
              type: boolean
              description: false for a tool that stores or changes something
            destructiveHint:
              type: boolean
              description: 'Write tools only: false when the tool only adds state'
            idempotentHint:
              type: boolean
              description: Write tools only
            openWorldHint:
              type: boolean
              description: true when the answer comes from an outside source at call time
          required:
            - readOnlyHint
            - openWorldHint
      required:
        - name
        - title
        - description
        - inputSchema
        - outputSchema
        - annotations
  responses:
    Unauthorized:
      description: Missing or invalid API key
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The key lacks the scope, or the organization lacks the module or is
        suspended
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such record in your organization
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MethodNotAllowed:
      description: The route does not take this method; Allow lists the ones it takes
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: >-
        The body, or the data the request would read, is larger than the route
        allows
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnsupportedMediaType:
      description: The Content-Type is not one the route reads
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Per-minute or daily key limit; Retry-After is the real reset
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamError:
      description: >-
        The API could not be reached, or a service this route depends on failed.
        Try again shortly
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: The API, or this route, is not available right now
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An InsightChain API key: ic_live_... for your organization, ic_test_...
        for its sandbox

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.