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.

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

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; templates:read with batches:create for create_job; batches:create with renders:create for run_batch, run_job and create_job with run; batches:read, renders:read and creatives:read for get_job; 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. Changed1 schema field changed
    • changedOutput schema / properties / permissions / description
      Previous value: -"Permissions 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"New value: +"Permissions 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; templates:read with batches:create for create_job; batches:create with renders:create for run_batch, run_job and create_job with run; batches:read, renders:read and creatives:read for get_job; batches:read, renders:read, and creatives:read together for get_batch_outputs"
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world safety, but the description adds the required scope (workspaces:read), the diagnostic role for 403s, and the domain-whitelisting rule that makes upload_images refuse off-host URLs until an admin acts. The only thing left implicit is any caching or freshness behavior, which is minor for a connection-scoped lookup.

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?

Single front-loaded paragraph where each sentence carries distinct information (payload, scope rule, two use cases, reconnect constraint, permission). The nested parentheticals make it dense to parse but nothing is filler.

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?

With an output schema present, the description need not document return values, yet it still names the key fields and their meaning for permission checks. Annotations, zero-param schema, and this text together leave no gap for correct invocation.

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?

Zero parameters, so the baseline is 4. The description usefully confirms that no workspace ID is ever passed here and that workspace selection happened at connect time, which prevents an agent from inventing a parameter.

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?

Opens with a specific verb and resource ('Returns the Kalpana workspace this connection covers') and enumerates the payload: ID, name, slug, role, permission codes, allowedImageDomains. It also explicitly separates itself from all siblings by stating 'Every other tool works 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?

Gives two concrete trigger conditions: call it to explain a 403 from another tool (naming run_batch and renders:create), and call it before passing image URLs to upload_images. It also states the exclusion case — working in another workspace requires a reconnect — so the agent knows this tool cannot switch workspaces.

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