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

# Toggle STATIC/DYNAMIC instance mode for a linked connection



## OpenAPI

````yaml /api-reference/openapi.json patch /public/api/v1/agents/{agentPublicId}/native-mcps/{connectionPublicId}/instance-mode
openapi: 3.1.0
info:
  contact:
    email: support@gennia.ai
    name: Gennia Support
    url: https://gennia.ai
  description: >-
    Workspace-scoped API authenticated via workspace API key (header `X-Api-Key:
    gsk_...` or `Authorization: Bearer gsk_...`).
  title: Gennia Public API
  version: v1
servers:
  - description: Production
    url: https://api.gennia.ai
security:
  - workspaceApiKey: []
tags:
  - description: Slash commands available inside the agent chat.
    name: Agent Commands
  - description: Link skills to an agent.
    name: Agent Skills
  - description: Read/rename/delete workspace knowledge sources.
    name: Knowledge Sources
  - description: Link knowledge sources to an agent.
    name: Agent Knowledge Sources
  - description: Workspace CRUD for HTTP/DB/Custom tools.
    name: HTTP Tools
  - description: Read/write the agent's model selection + capabilities.
    name: Agent Model
  - description: Discover trigger types available for Native MCP toolkits.
    name: Native MCP Triggers
  - description: Discover and toggle capability features.
    name: Agent Features
  - description: Hub access settings.
    name: Hub Access
  - description: Read conversation history and delete conversations.
    name: Conversations
  - description: Send messages to a published agent.
    name: Messages
  - description: Workspace CRUD for External MCP servers.
    name: External MCPs
  - description: Hub billing — plans, coupons, credit packages.
    name: Billing
  - description: External links shown in the hub menu.
    name: Hub External Links
  - description: Link Native MCP (Composio) instances to an agent.
    name: Agent Native MCPs
  - description: Manage AI agents in the workspace bound to the API key.
    name: Agents
  - description: Read published version snapshots and restore.
    name: Agent Versions
  - description: Read/rename/delete workspace skills.
    name: Skills
  - description: Manage hub end-customers (client workspaces).
    name: Clients
  - description: Hub domain (subdomain) management.
    name: Hub Domain
  - description: Read/write the agent's prompt context.
    name: Agent Prompt
  - description: Scheduled / trigger-based runs of an agent.
    name: Agent Automations
  - description: Link HTTP/DB/Custom tools to an agent.
    name: Agent HTTP Tools
  - description: Hub identity, branding, logos and overall configuration.
    name: Hub
  - description: Discover AI models available to this workspace.
    name: AI Models
  - description: Discover channel types and their config schemas.
    name: Channel Types
  - description: Connect agents to messaging surfaces.
    name: Agent Channels
  - description: Link workspace-registered External MCP servers to an agent.
    name: Agent External MCPs
  - description: Workspace-scoped public API (API key authentication)
    name: Public API
  - description: Dynamic-prompt variable definitions.
    name: Agent Variables
  - description: Link sub-agents as delegation targets.
    name: Agent Sub-agents
paths:
  /public/api/v1/agents/{agentPublicId}/native-mcps/{connectionPublicId}/instance-mode:
    patch:
      tags:
        - Agent Native MCPs
      summary: Toggle STATIC/DYNAMIC instance mode for a linked connection
      operationId: updateInstanceMode
      parameters:
        - in: path
          name: agentPublicId
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: connectionPublicId
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateNativeMcpInstanceModeDTO'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicNativeMcpInstanceModeDTO'
          description: Updated
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicNativeMcpInstanceModeDTO'
          description: Invalid instance_mode value
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicNativeMcpInstanceModeDTO'
          description: Missing or invalid API key
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicNativeMcpInstanceModeDTO'
          description: Agent or connection link not found
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicNativeMcpInstanceModeDTO'
          description: gennia-agents unreachable
      security:
        - workspaceApiKey: []
components:
  schemas:
    UpdateNativeMcpInstanceModeDTO:
      description: Update the instance mode of a linked Native MCP (Composio) connection.
      properties:
        instanceMode:
          description: >-
            STATIC = all tools loaded up front; DYNAMIC = tools loaded on
            demand.
          enum:
            - STATIC
            - DYNAMIC
          example: DYNAMIC
          type: string
      required:
        - instanceMode
      type: object
    PublicNativeMcpInstanceModeDTO:
      description: Updated instance mode of a Native MCP (Composio) connection on an agent.
      properties:
        connectionPublicId:
          description: Connection public ID.
          format: uuid
          type: string
        instanceMode:
          description: New instance mode after the update.
          enum:
            - STATIC
            - DYNAMIC
          type: string
      type: object
  securitySchemes:
    workspaceApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````