ExBifrost.Api.MCPToolGroups (ex_bifrost v0.1.0)

Copy Markdown View Source

API calls for all endpoints tagged MCPToolGroups.

Summary

Functions

Create MCP Tool Group Creates a new tool group along with its attachments in a single transaction. Validates that every mcp_client_id points to a deployed MCP client and that every named tool exists on its server.

Delete MCP Tool Group Deletes the group; attachments are removed automatically.

List MCP Tool Groups Returns tool groups visible to the caller. When all of limit, offset, and search are omitted, every group is returned in one response.

Update MCP Tool Group Partial update. Scalar fields preserve the current value when omitted. Array fields are replace-on-send: an empty array clears all attachments in that dimension.

Functions

create_mcp_tool_group(connection, create_mcp_tool_group_request, opts \\ [])

Create MCP Tool Group Creates a new tool group along with its attachments in a single transaction. Validates that every mcp_client_id points to a deployed MCP client and that every named tool exists on its server.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • create_mcp_tool_group_request (CreateMcpToolGroupRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.CreateMcpToolGroup201Response.t} on success
  • {:error, Tesla.Env.t} on failure

delete_mcp_tool_group(connection, id, opts \\ [])

@spec delete_mcp_tool_group(Tesla.Env.client(), integer(), keyword()) ::
  {:ok, nil}
  | {:ok, ExBifrost.Model.DeleteMcpToolGroup200Response.t()}
  | {:ok, ExBifrost.Model.BifrostError.t()}
  | {:error, Tesla.Env.t()}

Delete MCP Tool Group Deletes the group; attachments are removed automatically.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • id (integer()):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.DeleteMcpToolGroup200Response.t} on success
  • {:error, Tesla.Env.t} on failure

get_mcp_tool_group(connection, id, opts \\ [])

@spec get_mcp_tool_group(Tesla.Env.client(), integer(), keyword()) ::
  {:ok, nil}
  | {:ok, ExBifrost.Model.CreateMcpToolGroup201Response.t()}
  | {:ok, ExBifrost.Model.BifrostError.t()}
  | {:error, Tesla.Env.t()}

Get MCP Tool Group by ID

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • id (integer()):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.CreateMcpToolGroup201Response.t} on success
  • {:error, Tesla.Env.t} on failure

list_mcp_tool_groups(connection, opts \\ [])

@spec list_mcp_tool_groups(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, ExBifrost.Model.ListMcpToolGroups200Response.t()}
  | {:ok, ExBifrost.Model.BifrostError.t()}
  | {:error, Tesla.Env.t()}

List MCP Tool Groups Returns tool groups visible to the caller. When all of limit, offset, and search are omitted, every group is returned in one response.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • opts (keyword): Optional parameters
    • :limit (integer()):
    • :offset (integer()):
    • :search (String.t): Search by name.

Returns

  • {:ok, ExBifrost.Model.ListMcpToolGroups200Response.t} on success
  • {:error, Tesla.Env.t} on failure

update_mcp_tool_group(connection, id, update_mcp_tool_group_request, opts \\ [])

Update MCP Tool Group Partial update. Scalar fields preserve the current value when omitted. Array fields are replace-on-send: an empty array clears all attachments in that dimension.

Parameters

  • connection (ExBifrost.Connection): Connection to server
  • id (integer()):
  • update_mcp_tool_group_request (UpdateMcpToolGroupRequest):
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExBifrost.Model.CreateMcpToolGroup201Response.t} on success
  • {:error, Tesla.Env.t} on failure