Skip to main content
Glama

Docflow Get Or Create Workspace

docflow_get_or_create_workspace

Retrieve a workspace by name or create it if missing, returning the workspace ID to prepare for document automation workflows.

Instructions

Find a workspace by name, or create one if it does not exist.

Returns: workspace_id (str): ID of the workspace. created (bool): True if a new workspace was created.

Use this as Step 1 of every workflow to ensure a workspace is ready.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
descriptionNo
enterprise_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does state the core behavior (find-or-create), the return values, and implies idempotency ('ensure a workspace is ready'), but it doesn't disclose side effects about existing workspaces or parameter interactions like enterprise_id.

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 brief, front-loaded with the action, and includes return values and usage guidance. Every sentence adds value without fluff.

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

Completeness3/5

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

For such a simple get-or-create tool, the description covers action and return values. However, it leaves the optional parameters (description, enterprise_id) undocumented in both schema and description, and doesn't explain behavior when a workspace with the same name already exists under a different enterprise.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must explain the parameters. It only hints at 'name' via 'by name'; description and enterprise_id are left completely unexplained. That is not enough compensation for the schema gap.

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 opens with a clear verb-resource pair: 'Find a workspace by name, or create one if it does not exist.' It distinguishes itself from siblings like docflow_get_workspace by indicating lookup is by name and from docflow_create_workspace by indicating it won't duplicate.

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?

The description explicitly tells the agent to use it 'as Step 1 of every workflow to ensure a workspace is ready,' which is a clear when-to-use signal. It does not name sibling alternatives or specify when not to use, so not a full 5.

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