Skip to main content
Glama

get-project-workflow-list

Retrieve available task status workflows for a Dooray project to use when creating or updating tasks with proper workflow IDs.

Instructions

Get list of workflow statuses (업무 상태) for a project.

Workflows represent the task statuses available in a project. There are four workflow classes:

  • backlog: 대기 (waiting/backlog)

  • registered: 등록/할 일 (registered/to-do)

  • working: 진행 중 (in progress)

  • closed: 완료 (completed/done)

Each project may have custom workflows within these classes. Use workflow IDs when creating or updating tasks (e.g., in create-task or update-task tools).

URL Pattern Recognition: When given a Dooray URL like "https://nhnent.dooray.com/task/PROJECT_ID", extract the PROJECT_ID (the numeric ID after "/task/") and use it as the projectId parameter.

Examples:

  • Get all workflows: {"projectId": "1769381697328002548"}

Returns: Array of workflows with id, name, order, and class.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID to get workflow statuses from

Implementation Reference

  • The main handler function that implements the tool logic: fetches project workflows via API, filters and compacts the result to reduce tokens, returns JSON string or formatted error.
    export async function getProjectWorkflowListHandler(args: GetProjectWorkflowListInput) {
      try {
        const result = await projectsApi.getProjectWorkflows({
          projectId: args.projectId,
        });
    
        // Filter to compact response to reduce token usage
        const compactResult = result.map(filterWorkflowForList);
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(compactResult, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error: ${formatError(error)}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Zod schema defining the input: projectId as string. Used for runtime validation in the server. Type inferred for handler args.
    export const getProjectWorkflowListSchema = z.object({
      projectId: z.string().describe('Project ID to get workflows from'),
    });
    
    export type GetProjectWorkflowListInput = z.infer<typeof getProjectWorkflowListSchema>;
  • Tool metadata object with name, detailed description, and JSON inputSchema for MCP list_tools response.
    export const getProjectWorkflowListTool = {
      name: 'get-project-workflow-list',
      description: `Get list of workflow statuses (업무 상태) for a project.
    
    Workflows represent the task statuses available in a project. There are four workflow classes:
    - backlog: 대기 (waiting/backlog)
    - registered: 등록/할 일 (registered/to-do)
    - working: 진행 중 (in progress)
    - closed: 완료 (completed/done)
    
    Each project may have custom workflows within these classes. Use workflow IDs when creating or updating tasks (e.g., in create-task or update-task tools).
    
    **URL Pattern Recognition**:
    When given a Dooray URL like "https://nhnent.dooray.com/task/PROJECT_ID", extract the PROJECT_ID (the numeric ID after "/task/") and use it as the projectId parameter.
    
    Examples:
    - Get all workflows: {"projectId": "1769381697328002548"}
    
    Returns: Array of workflows with id, name, order, and class.`,
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Project ID to get workflow statuses from',
          },
        },
        required: ['projectId'],
      },
    };
  • src/index.ts:63-63 (registration)
    Registers the tool's handler and Zod schema in the central toolRegistry map used by the MCP server for handling tool calls.
    'get-project-workflow-list': { handler: getProjectWorkflowListHandler, schema: getProjectWorkflowListSchema },
  • src/index.ts:86-86 (registration)
    Adds the tool metadata to the tools array returned in MCP list_tools requests.
    getProjectWorkflowListTool,
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively explains what the tool returns (array of workflows with specific fields), the structure of workflow classes, and how workflows relate to task operations, though it doesn't mention potential rate limits or authentication requirements.

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 well-structured with clear sections (purpose, workflow classes, usage guidance, URL pattern, examples, return format), front-loads key information, and every sentence contributes meaningfully without redundancy.

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?

Given the tool's moderate complexity (1 parameter, no output schema, no annotations), the description is complete: it explains purpose, parameter semantics, usage context, return format, and practical examples, leaving no significant gaps for an AI agent to understand and invoke the tool correctly.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining how to obtain the projectId parameter through URL pattern recognition with concrete examples, which enhances understanding beyond the schema's basic description.

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 clearly states the specific action ('Get list of workflow statuses') and resource ('for a project'), distinguishing it from sibling tools like get-project or get-task-list by focusing specifically on workflow statuses rather than general project or task information.

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?

The description provides explicit guidance on when to use this tool ('Use workflow IDs when creating or updating tasks') and includes practical examples like URL pattern recognition for extracting project IDs from Dooray URLs, which helps differentiate usage from other tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhl8041/dooray-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server