Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGP_CODEMODENoSet to 1 to enable ultra-compact 4-tool Code Mode (whoami, docs, search, execute). Also enabled via --codemode (stdio) or ?codemode=true (Streamable HTTP).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

AGP v2.0 Inter-Agent Mesh (Standard Serverless Stdio MCP + Optional Monitor UI). Runs silently in background without needing any HTTP server open. Use team_* tools for Agent Teams (team_create, team_join, team_spawn, team_send, team_inbox, team_task, team_list, team_shutdown) and agp_* tools for cross-session collaboration (agp_status, agp_register, agp_discover, agp_send, agp_ask, agp_inbox, agp_ack, agp_task, agp_lease, agp_artifact_put/get/list, agp_trace_inspect). Always check delivery.will_auto_receive on send and use zero-token agp.listen to stay reachable while idle.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/tasks": {
    "version": "1.0"
  },
  "io.modelcontextprotocol/skills": {}
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
whoamiA

Return the stable AGP agent identity bound to this MCP connection. Takes no arguments. The id stays consistent across reconnections and metadata updates.

docsA

Search built-in AGP v2.1 documentation: protocol contracts, error codes, two-way wakeup patterns (agp.listen, team_join, agp_ask), workspace leases, and tool schemas.

agp_statusB

Inspect your bound AGP identity, unread AGP & Team message counts, held file leases, open circuit breakers, active async tasks, zero-token listener command, and optional Monitor UI status. Optionally reset a recovered circuit breaker.

agp_registerB

Register or update this AI session's Agent Card (display_name, role, owned_paths, capabilities, channels, wakeup_mode, status) so peers can discover and route messages to it.

agp_unregisterA

Gracefully sign off (peer.bye) from the AGP mesh, mark this agent offline, and release all workspace file leases it holds.

agp_discoverA

Discover other AI sessions currently active or recently seen on the AGP mesh. Filter by role, capability, workspace/path ownership, surface, search query, or online status. Shows whether each peer has an active zero-token listener (listening) or wakeup_mode.

agp_sendA

Send an AGP structured message to another AI session or channel (@handle, URI, conversation_id, 'all', or 'channel:'). Enforces schema validation, DLP secret redaction, Ed25519 JWS, token budget, DAG cycle guard, idempotency, and circuit breakers. Returns honest delivery status (will_auto_receive, mode, remediation) so you never burn tokens waiting on an unreachable idle peer.

agp_askB

Send a structured request to a peer AND wait in ONE tool call for the correlated reply (correlation_id). Includes an anti-token-burn guard: if the recipient cannot auto-receive (will_auto_receive=false), returns immediately in 0ms with remediation advice instead of waiting blindly.

agp_inboxA

Read or peek incoming AGP messages addressed to this AI session (and subscribed channels). Supports filtering by correlation_id, trace_id, msg_type, priority, and bounded cross-process long-polling (wait_timeout_sec up to 60s). Set mark_delivered=false to peek without consuming.

agp_ackB

Acknowledge, accept, reject, complete, or mark failed an incoming AGP message.

agp_taskA

Manage durable async tasks (io.modelcontextprotocol/tasks & A2A v1.0 Tasks): list tasks, get task state/history/result, wait for state transition, supply mid-flight clarification/HITL input (update), or cancel a running task.

agp_leaseB

Acquire, renew, release, check (dry-run), force_release, or list workspace file/path leases with monotonic fencing_token protection to prevent concurrent edit conflicts.

agp_artifact_putA

Store a large diff, log, OpenAPI spec, or code file in the local SHA-256 Artifact Store (with DLP secret redaction) and receive a pass-by-reference descriptor to attach to agp_send.

agp_artifact_getA

Retrieve a SHA-256 verified artifact by artifact_id, supporting offset_bytes chunk pagination.

agp_artifact_listC

List stored artifacts in the local AGP Artifact Store (optionally filtered by kind or owner_uri).

agp_trace_inspectA

Inspect the full multi-hop distributed trace spans and messages for a trace_id, OR omit trace_id to list recent traces.

team_listA

List all AGP Agent Teams or inspect a specific team's roster, live member statuses, unread mailbox counts, zero-token listener commands, and task board counts.

team_createB

Create a Claude-style AGY Agent Team under ~/.gemini/agp/teams// with a shared task list (tasks.json), team roster (config.json), and per-member mailboxes (inboxes/).

team_joinA

Attach an existing live AGY session (by conversation_id) into a Team roster AND immediately open its receive/reply channel (sends structured Team Welcome handshake with exact team_send reply route and zero-token agp.listen command; optional auto_wake=true for detached CLI wakeup).

team_spawnB

Spawn a real autonomous AGY teammate (e.g. 'backend', 'frontend', 'reviewer') in a team. Runs via self-terminating detached worker with persistent conversation_id, automatically wakes on team_send, auto-bridges replies if needed, and sends idle_notification when done.

team_sendA

Send a direct peer-to-peer message to a teammate by short name (or 'all' to broadcast). Writes to ~/.gemini/agp/teams//inboxes/.json, mirrors to live session hooks/listeners, auto-wakes managed teammates, and returns honest delivery status.

team_inboxA

Read or peek your team mailbox (~/.gemini/agp/teams//inboxes/.json). Supports cross-process fast wait (wait_sec 0-30s) and mark_read=false peek mode.

team_taskA

Manage the team's cross-process atomic Shared Task List (tasks.json): list, create (with DAG cycle check), claim (omitting task_id auto-claims next unblocked task), unclaim, complete (auto-unblocks dependents), fail, cancel, update, or delete.

team_shutdownB

Gracefully shut down a spawned teammate (or pass name='all' to shut down all teammates).

team_deleteA

Shut down all teammates and delete a finished team's state directory cleanly.

Prompts

Interactive templates invoked by user choice

NameDescription
agp_coordinate_teamSet up and coordinate a multi-agent team (shared task DAG, join/spawn teammates, two-way messaging, clean shutdown).
agp_delegate_taskDelegate a contract-first task.request to a peer agent with lease discipline, artifact handoff, and zero-token-waste waiting.
agp_code_review_loopRun an Evaluator-Optimizer cross-agent code review loop (max 3 rounds) with artifact diff & HITL escalation.
agp_git_handoffPrepare a safe Git worktree/branch handoff (`sync.git_handoff`) with SHA-256 diff artifact and test evidence.
agp_conflict_resolutionResolve a workspace file lease conflict or contradictory results between peer agents via arbitration or HITL.
agp_debug_tracePerform 5-step distributed trace root-cause analysis across multi-hop AGP interactions.

Resources

Contextual data attached and managed by the client

NameDescription
AGY Live Monitor SnapshotCurrent active AI sessions, token counts, costs, elapsed times, teams, leases, and AGP messages.
Active AGP Agent CardsRegistered Agent Cards, capabilities, owned paths, and zero-token listener status.
AGP Agent Teams & Shared TasksAll local Agent Teams with rosters, task boards, and recent team chat.
Active Workspace File LeasesCurrently held exclusive/shared workspace file leases and monotonic fencing tokens.
AGP Circuit BreakersHealth and cooldown status of per-target AGP circuit breakers.
Durable Async TasksMCP io.modelcontextprotocol/tasks and A2A v1.0 durable task state records.
agp-protocolServerless AGP v2.1 inter-agent mesh, Claude-style Agent Teams, workspace file leases, SHA-256 artifacts, and distributed tracing.
two-way-wakeupZero-token reactive wakeup (`agp-listen`), `team_join` handshake, and `agp_ask` anti-token-burn patterns.

TDQS

B3.3/5.0

Scored across 25 tools

Disambiguation3/5

The agp_ vs team_ prefix split is real and documented, but three tool pairs overlap heavily: agp_send/team_send, agp_inbox/team_inbox, and agp_task/team_task all address 'messaging or tasks' with only scope differences that an agent must infer. Multi-action tools like agp_lease and agp_task (list/get/wait/update/cancel) further blur which call to reach for, though descriptions do help separate them.

Naming Consistency3/5

Most tools follow prefix_verb_noun (agp_register, team_create, team_send), but there are visible deviations: resource-first ordering in agp_artifact_get/put/list and agp_trace_inspect, plus two unprefixed bare names (whoami, docs). The patterns are readable but not uniform.

Tool Count3/5

At 25 tools the surface is at the heavy end, spanning mesh identity, messaging, artifacts, tasks, leases, tracing, and teams. Domain breadth justifies many of them, but several multi-action tools bundle 5-6 operations each, so the count sits right at the borderline of feeling overloaded.

Completeness4/5

Coverage is broad and lifecycle-complete: register/unregister, send/inbox/ack/ask, artifacts put/get/list, tasks, leases, traces, and full team create/join/spawn/send/shutdown/delete. Minor gaps remain, such as no team_leave, no channel subscribe/unsubscribe despite channels being a routing concept, and no artifact delete.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues