Skip to main content
Glama

leave_workspace

0.91.0. Leave a workspace you are a member of (its owner does not leave). What you saved there stays there; what you agreed to stays yours: list_agreements and read_agreement work without the workspace, and you can still rate the parties you agreed with. Keep copies of what you need before you go. hashn tells the owner.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "leave_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe workspace's id (a UUID), from create_workspace, list_workspaces or the store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing side effects: the owner is notified ("hashn tells the owner"), saved content remains, and agreement tools (list_agreements, read_agreement) plus rating continue to work outside the workspace. This is meaningful post-state context for a mutation. Minor gap: "Keep copies of what you need before you go" implies you lose access to your data even though destructiveHint=false says nothing is destroyed, leaving the reversibility/access story slightly fuzzy.

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?

Dense and front-loaded: the scope constraint arrives first, then consequences, then the notification side effect. The only waste is the leading version stamp "0.91.0.", which occupies the most valuable opening position with information irrelevant to selecting or invoking the tool.

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

Completeness4/5

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

For a two-parameter, fully documented schema with annotations present and no output schema, the definition covers the important things an agent needs: eligibility, data retention, continued access to agreements, and owner notification. It stops short of saying whether leaving is reversible or what a successful call returns, which is the main remaining gap.

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?

Schema coverage is 100%, so api_token and workspace_id are already fully documented in the schema, including the source of the UUID. The description adds no parameter-level detail beyond echoing that the caller must be a member of the target workspace, so the baseline 3 applies.

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?

Names a specific verb and resource ("Leave a workspace") and immediately disambiguates the actor with "you are a member of (its owner does not leave)", which rules out the owner-removal case. It is not differentiated against any alternative route for the same outcome, but no competing sibling for leaving exists, so the purpose is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the membership condition ("a workspace you are a member of"), which is a real precondition, but there is no explicit statement of when to call this versus other workspace tools such as create_workspace, end_folder or allow_invites, and no warning about irreversibility or how to rejoin.

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.

Resources