MCP Tools
Account

set_active_team

Sets your active team — the team all subsequent Marcora tool calls operate against. Switching changes your active team everywhere for your account; the response returns `previous_team_id` so you can restore it afterward.

Input Schema

{
  "type": "object",
  "required": [
    "team_id"
  ],
  "properties": {
    "team_id": {
      "type": "integer",
      "description": "The numeric team_id (from get_team_info) to switch to. Must be a team you belong to."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "active_team"
  ],
  "properties": {
    "active_team": {
      "type": "object",
      "required": [
        "team_id",
        "team_name"
      ],
      "properties": {
        "team_id": {
          "type": "integer",
          "description": "The now-active team's id."
        },
        "team_name": {
          "type": "string",
          "description": "The now-active team's name."
        }
      }
    },
    "previous_team_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The team that was active before this call. Pass it back to set_active_team to restore."
    }
  }
}

Instructions

Sets your active team — the team all subsequent Marcora tool calls operate against. Input: team_id (from get_team_info).

When to use: when the user wants to switch which team they're working in ("switch me to my Acme team", "work in my other team for this, then switch back").

⚠️ Global effect. Switching your active team changes it everywhere for your account — open Marcora app tabs, running Cora sessions, and every other connected MCP client — because it writes the same active-team setting the in-app switcher uses. Tell the user before switching, and don't switch while other work is mid-flight for them. The response returns previous_team_id so you can restore their original team when done: switch → do the work → set_active_team back to previous_team_id.

Parameters

Parameter Type Required Description
team_id integer Yes The numeric team_id (from get_team_info) to switch to. Must be a team you belong to

Output

Field Type Description
previous_team_id integer | null The team that was active before this call. Pass it back to set_active_team to restore
active_team.team_id integer The now-active team's id
active_team.team_name string The now-active team's name

Errors. A team_id you don't belong to (or that doesn't exist) returns a readable "you are not a member of that team" error. A missing / non-positive team_id returns a readable input error.

Example prompts

  • "Switch me to my Acme team"
  • "Work in my other team for this, then switch me back"
Scroll to Top