Skip to main content
Glama

get_workspace

Read-onlyIdempotent

Get the current workspace alias. Reads local CLI configuration when there is one (source: repo_config / global_config); on a hosted server there is no repository to read, so it answers with the workspace this session is operating in (source: session). source: not_found means neither was available.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior detail: it reads local CLI configuration when present and falls back to session context on a hosted server, and it names the exact `source` values (`repo_config`, `global_config`, `session`, `not_found`) so the agent can interpret the result. That is real transparency beyond structured fields.

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

Conciseness5/5

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

Three short sentences, front-loaded with the verb and resource, then the environment-dependent mechanics, then the not_found edge case. Every sentence adds information and none is redundant with the annotations.

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, and the description compensates by defining the shape and meaning of the returned source values, including the failure case. For a zero-parameter read tool with full annotation coverage, nothing an agent needs 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?

The tool takes zero parameters, so the baseline is 4 and nothing beyond that is required. The description does not need to explain inputs, and it correctly spends its words on outputs instead.

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 ("Get the current workspace alias") and scopes it to the current context, so it cannot be confused with workspace_members_list or glossary/doc getters. The second half even enumerates the possible source outcomes, making the operation's result unambiguous.

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?

Implies when to call it — whenever the agent needs to resolve which workspace the session is operating in — and explains why the answer differs between local CLI and hosted server contexts. It stops short of naming alternatives or explicit exclusions, which is acceptable given no sibling tool overlaps this capability.

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.