Skip to main content
Glama

The connected workspace

get_workspace
Read-onlyIdempotent

Returns the Kalpana workspace this connection covers, chosen when the user connected: its ID, name and slug, the user's role and what it allows here (permission codes, and in plain words whether it can render batches), and allowedImageDomains, the hosts upload_images will fetch an image URL from. Every other tool works in this workspace and takes no workspace ID. Call it to explain a 403 from another tool (run_batch needs renders:create, for example), or before passing image URLs to upload_images: a URL on another host is refused until an admin adds the domain in Workspace Settings > Domain Whitelisting. Working in another workspace needs a reconnect that chooses it. Needs workspaces:read.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
roleYesThe user's role in this workspace
slugYes
permissionsYesPermissions both the role and this connection grant here, and the tools they open: templates:read for search_templates, get_template_inputs, and validate_batch; assets:read for search_assets; assets:create for upload_images; batches:read for get_batch, list_batches, and get_batch_jobs; templates:read with batches:create for create_batch, update_batch, and update_job; batches:create with renders:create for run_batch; batches:read, renders:read, and creatives:read together for get_batch_outputs
allowedImageDomainsNoHosts an image URL for upload_images may come from, subdomains included; an admin adds others in Workspace Settings > Domain Whitelisting

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Although annotations already mark this as a safe, idempotent read, the description adds important behavioral context beyond them: it requires workspaces:read, it explains domain whitelisting enforcement before upload_images, and it clarifies that a 403 may reflect missing permission on a sibling tool. These details materially help an agent interpret errors and avoid invalid image URLs.

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?

The description is front-loaded with the return shape and scoped behavior. Despite being a single dense paragraph, every sentence carries operational value: return fields, workspace-wide implicit scoping, error diagnosis, domain checks, reconnect alternative, and required permission.

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?

Even though an output schema exists, the description goes further by explaining the security and usage context: permission requirements, 403 diagnosis, domain whitelisting, and the reconnect path for other workspaces. Nothing an agent needs in order to call or interpret this zero-parameter tool 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 there are no parameter semantics to document and the baseline of 4 applies. The description correctly focuses on return values and usage rather than inventing parameter details.

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?

The description uses a specific verb and resource ('Returns the Kalpana workspace this connection covers') and enumerates exactly what is returned: ID, name, slug, role, permission codes, batch-rendering permission, and allowedImageDomains. It also distinguishes this tool from all siblings by noting that every other tool operates implicitly in this workspace and takes no workspace ID.

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?

It gives explicit when-to-use guidance: call it to explain a 403 from another tool, such as run_batch needing renders:create, or before passing image URLs to upload_images to check allowedImageDomains. It also states the alternative for working in another workspace: a reconnect that chooses it.

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