Back to MCP Overview

Agent groups Tools

Agent groups: which agents work together and who leads them.

7 tools

Available Tools

agentGroups_list

List the agent groups. Each: id, name, parentGroupId (set on a sub-group), leadAgentId, members (each agent's id and name). Agents in one group may hand off to and ask each other; a group's Lead may also reach the other groups' Leads.

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_list",
    "arguments": {}
  }
}
agentGroups_create

Create an agent group. Params: name (one line, at most 80 characters, unique in the workspace), parentGroupId? (makes it a sub-group; at most 3 levels). Returns { id }. A group gives its agents no tool, connection or right: only who they may talk to.

Input Schema

namestringrequired

The group's name: one line, at most 80 characters, unique in the workspace.

parentGroupIdstring

Make it a sub-group of this group (its id); leave it out for a top-level group.

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_create",
    "arguments": {
          "name": "example",
          "parentGroupId": "example"
    }
  }
}
agentGroups_rename

Rename an agent group. Params: groupId, name (one line, unique in the workspace).

Input Schema

groupIdstringrequired

The group id

namestringrequired

The group's name: one line, at most 80 characters, unique in the workspace.

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_rename",
    "arguments": {
          "groupId": "example",
          "name": "example"
    }
  }
}
agentGroups_addAgent

Add an agent to a group. Params: groupId, agentId (aiAgent_listSpecialists). Agents in one group may hand off to and ask each other without a "Can hand off to" entry; each still acts with its own rights. At most 50 agents per group. A person is refused when an agent put in touch holds something they may not use (a tool, connection, power or secret, such as “Use secrets” or “Send email to contacts”); the refusal names the permission and whom to ask.

Input Schema

groupIdstringrequired

The group id

agentIdstringrequired

The agent id (aiAgent_listSpecialists)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_addAgent",
    "arguments": {
          "groupId": "example",
          "agentId": "example"
    }
  }
}
agentGroups_removeAgent

Take an agent out of a group. Params: groupId, agentId. The agent stays in the workspace; if it was the Lead, the group has no Lead.

Input Schema

groupIdstringrequired

The group id

agentIdstringrequired

The agent id

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_removeAgent",
    "arguments": {
          "groupId": "example",
          "agentId": "example"
    }
  }
}
agentGroups_setLead

Set a group's Lead. Params: groupId, agentId (one of the group's agents, or null for no Lead). Leads may hand off to and ask the other groups' Leads. A person is refused when an agent put in touch holds something they may not use (a tool, connection, power or secret, such as “Use secrets” or “Send email to contacts”); the refusal names the permission and whom to ask.

Input Schema

groupIdstringrequired

The group id

agentIdstringnullrequired

The agent to make Lead (one of the group's agents)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_setLead",
    "arguments": {
          "groupId": "example",
          "agentId": {}
    }
  }
}
agentGroups_delete

Delete an agent group. Params: groupId. Its agents stay in the workspace; a group with sub-groups can't be deleted until they are. Act only on what the person named or picked.

Input Schema

groupIdstringrequired

The group id

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agentGroups_delete",
    "arguments": {
          "groupId": "example"
    }
  }
}