Skip to main content
Glama

Set workspace sharing

stack_set_workspace_sharing

Set whether the customer's other agents may run commands and read and write files in one workspace. account_id is the account that owns the workspace. shared true (the default for every workspace) opens it to the customer's other agents, each under its own Passport and Mission; false keeps it to the agent that owns it, and to every other agent it then reads as a workspace that does not exist. The machine's time is charged to the owning account either way. Returns the workspace and changed, false when it was already set that way. Operator only, never metered; an agent cannot change it. Writes one audit row for a change.

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": {
      "account_id": "<account_id>",
      "workspace_id": "<workspace_id>",
      "shared": "<shared>"
    },
    "name": "stack_set_workspace_sharing"
  }
}

Input Schema

NameRequiredDescriptionDefault
sharedYestrue to open the workspace to the customer's other agents, false to keep it to its own agent
account_idYesAgent account id (acct_*)
workspace_idYesWorkspace id (wsp_*), as returned when the workspace was made or listed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses cost behavior ('the machine's time is charged to the owning account either way'), return shape ('Returns the workspace and changed'), idempotency semantics ('changed, false when it was already set that way'), authorization ('Operator only... an agent cannot change it'), metering ('never metered'), and an audit side effect ('Writes one audit row for a change'). That is exactly the kind of context annotations alone cannot carry, and nothing here conflicts with readOnlyHint=false or destructiveHint=false.

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?

It is a single dense paragraph with the core action front-loaded and the consequences, return value, and permission constraints following in a logical order. Every sentence contributes, though the run-on accumulation of clauses (default, ownership, charging, return, operator-only, audit) makes it heavier than it needs to be.

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?

There is no output schema, but the description compensates by describing the return value and the changed flag's meaning. Combined with the disclosed side effects, cost attribution, and authorization limits, an agent has everything needed to decide whether to call this and how to interpret the result.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: account_id is identified as 'the account that owns the workspace' (schema only says 'Agent account id'), and the shared flag is given its default value and its effect on how other agents perceive the workspace. The workspace_id parameter is left entirely to the schema, which is acceptable given full coverage.

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 specific verb and a precise resource scope: whether other agents may 'run commands and read and write files in one workspace.' It is clearly distinguishable from settings-style siblings like stack_set_workspace_settings because it names the exact access dimension it controls. It stops short of explicitly contrasting itself with any named sibling, so it lands at 4 rather than 5.

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 strong context for the decision the parameter encodes: shared=true is the default for every workspace, false makes the workspace 'read as a workspace that does not exist' to other agents. It also states a hard exclusion — 'Operator only... an agent cannot change it' — which tells the caller whether this tool is even callable. It provides no routing guidance relative to sibling settings tools, so it is clear context without explicit alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.