Skip to main content
Glama

Share sandbox with the organization

share_sandbox

Share a sandbox with your organization so members can use it; personal logins and secrets are wiped so teammates never act as you.

Instructions

Share sandbox with the organization. Let every member of the organization that pays for this sandbox use it.

A sandbox that holds none of your personal logins is shared at once.

A sandbox that holds them: your personal logins (GitHub token, Claude and Codex logins, environment secrets, the sandbox's own CLI key) are never pushed to it again and are wiped off its disk at its next start, so a teammate never acts as you. Files you wrote stay. The wipe is one-way: the sandbox stays like a noEnv sandbox from then on. A running sandbox stays view for the organization until you stop and resume it (restartRequired): its running programs hold your logins in memory.

Teammates never read history recorded before the share.

Only the person who created the sandbox can share it, and only a sandbox billed to an organization. Sharing an already shared sandbox is a no-op. Undo with POST /sandboxes/{sandboxId}/unshare.

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "share_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Far richer than the annotations: it discloses the irreversible credential wipe, that files persist, that the sandbox stays 'noEnv' afterward, that a running sandbox remains 'view' until stop/resume ('restartRequired'), and that pre-share history is invisible to teammates. One tension is left unresolved: 'Sharing an already shared sandbox is a no-op' reads as idempotent behavior, while the annotations declare idempotentHint=false; the description could state plainly what differs on repeat calls (e.g. that the pending restart/wipe still applies).

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?

Front-loaded with purpose, then ordered by consequence (immediate share, credential wipe, restart requirement, history, permissions, undo), with zero filler sentences. Slightly long for one parameter, but nearly every sentence carries a distinct behavioral fact; the parenthetical annotation-style tags ('restartRequired', 'noEnv') are a bit terse.

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 one-parameter mutation with no output schema, this covers the access precondition, the irreversibility of the credential wipe, the deferred-application behavior for running sandboxes, and the reversal path. An agent could call this and correctly warn a user; only the response payload shape is unstated, which is acceptable without an output schema.

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

Parameters3/5

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

The single parameter sandboxId is fully documented in the schema (100% coverage, including the id pattern and source of the id), so the description does not need to re-explain it and correctly does not. It adds nothing beyond the schema here, and the path form in the unshare reference implies but does not clarify the id format.

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

Purpose5/5

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

States a specific verb and resource ('Share sandbox with the organization') and immediately defines scope: 'every member of the organization that pays for this sandbox.' It also names its inverse ('Undo with POST /sandboxes/{sandboxId}/unshare'), so an agent can separate this from unshare_sandbox without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit preconditions ('Only the person who created the sandbox can share it, and only a sandbox billed to an organization'), an edge case ('Sharing an already shared sandbox is a no-op'), and the alternative path for reversal ('Undo with .../unshare'). An agent knows both when this applies and when it will silently do nothing.

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