Skip to main content
Glama

Run an AI team

ai_team
Read-only

Runs several AI models as a role-based team in review, discussion, or pipeline mode to check code, improve drafts, plan work, and cross-check decisions.

Instructions

Make several AI models work together as a team on a task, for work or code. Modes: 'review' (first member writes or revises, the others review, repeated for several rounds until approved; pass your own draft to have the team improve YOUR work), 'discussion' (all answer, then read each other's answers and refine), 'pipeline' (each member does its role in order, e.g. researcher -> writer -> editor). Roles: author, coder, reviewer, critic, security, tester, researcher, writer, editor, planner, devils_advocate, summariser, expert, or any custom role text. Use for code reviews, document drafting, planning, decisions and debugging. Afterwards, check the result yourself and tell the user which AI did what.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>",
      "members": "<members>"
    },
    "name": "ai_team"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoHow the team works together.review
taskYesWhat the team should produce or decide. Be specific about the goal and audience.
draftNoReview mode: an existing draft (for example your own) for the team to improve, instead of writing from scratch.
filesNoPaths of text/code files to share with the team (only inside ALLOWED_FILE_DIRS).
roundsNoReview or discussion rounds (1 to 3). Ignored for pipeline.
contextNoBackground the whole team needs: requirements, constraints, earlier decisions.
membersYes2 to 6 team members. In review mode the FIRST member is the author/reviser.
team_idNoOptional name to save this session under (e.g. 'login-refactor'). Reuse it to continue from the last result.
max_output_tokensNoReply limit per contribution.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=true and openWorldHint=true; the description adds genuinely non-obvious behavior — that review mode iterates 'for several rounds until approved', that team_id persists a session you can resume, and that the caller should verify the output and attribute contributions per AI. What it omits is the practical cost profile of a multi-model fan-out (latency, token/credit expense, non-determinism), which matters most for a tool like this.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and mode semantics are front-loaded, and the mode-by-mode clause is dense but skimmable. Every sentence carries information except the closing 'check the result yourself and tell the user which AI did what', which is workflow advice rather than tool definition and is the one piece that could be trimmed or moved elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter tool with a nested members array and no output schema, the description covers the decision-relevant surface: mode semantics, role vocabulary, provider scope, draft handling, session resumption, and the expectation that results come back per-contributor. Remaining parameters (files, rounds, max_output_tokens, round bounds) are fully documented in the schema, so nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage the baseline is 3, and the description earns the extra point by explaining what a mode actually does at runtime and by clarifying the draft parameter's intent ('an existing draft (for example your own)') rather than merely its type. It also restates the meaningful ordering rule that the first member acts as author/reviser, reinforcing a detail an agent could easily miss in the nested array.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb+resource: 'Make several AI models work together as a team on a task, for work or code,' then enumerates the three collaboration modes (review, discussion, pipeline) and the role vocabulary. This is well beyond a restatement of the name 'ai_team'. It does not, however, name or differentiate itself from plausible siblings such as ai_panel or ai_ask, so an agent must infer the boundary from behavior alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete when-to-use cases ('code reviews, document drafting, planning, decisions and debugging') and, more usefully, scenario-level routing between modes, e.g. review with a draft 'to have the team improve YOUR work' versus pipeline's 'researcher -> writer -> editor' ordering. There are no explicit when-not-to-use conditions and no named alternative tools, so the agent is not told when a single-model sibling would be the better choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.