Skip to main content
Glama

get-project-template-list

Retrieve available task templates for a Dooray project to create tasks with predefined structures like bug reports or feature requests. Supports pagination for large template lists.

Instructions

Get list of project task templates.

Templates are pre-created task structures with predefined title and body content. This tool retrieves all available templates in a project.

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

Note: Returns compact response with essential fields only (id and templateName).

Pagination:

  • Default page size is 20 (maximum: 100)

  • Use page parameter to get additional pages if totalCount > size

  • Set size parameter to control items per page (max: 100)

Examples:

  • Get all templates (first page): {"projectId": "123456"}

  • Get second page: {"projectId": "123456", "page": 1, "size": 20}

  • Get with custom page size: {"projectId": "123456", "page": 0, "size": 50}

Returns a paginated response with totalCount and an array of templates containing id and templateName.

Templates help users quickly create tasks with predefined structure and content, useful for common task types like bug reports, feature requests, or documentation tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID to get templates from
pageNoPage number for pagination (default: 0)
sizeNoNumber of items per page (default: 20, max: 100)

Implementation Reference

  • The handler function that implements the core logic of the 'get-project-template-list' tool. It calls the projects API to retrieve paginated templates, filters the data for compact response, stringifies to JSON, and handles errors.
    export async function getProjectTemplateListHandler(args: GetProjectTemplateListInput) {
      try {
        const result = await projectsApi.getProjectTemplates({
          projectId: args.projectId,
          page: args.page,
          size: args.size,
        });
    
        // Filter to compact response to reduce token usage
        const compactResult = {
          totalCount: result.totalCount,
          data: result.data.map(filterTemplateForList),
        };
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(compactResult, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error: ${formatError(error)}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Zod schema for validating the tool's input parameters (projectId required, page and size optional). Used during tool execution for argument validation.
    export const getProjectTemplateListSchema = z.object({
      projectId: z.string().describe('Project ID to get templates from'),
      page: z.number().optional().describe('Page number (default: 0)'),
      size: z.number().optional().describe('Items per page (default: 20, max: 100)'),
    });
  • src/index.ts:59-59 (registration)
    Registers the tool's handler and schema in the central toolRegistry object, which is used to dispatch call_tool requests to the correct handler.
    'get-project-template-list': { handler: getProjectTemplateListHandler, schema: getProjectTemplateListSchema },
  • src/index.ts:82-82 (registration)
    Adds the tool specification (name, description, inputSchema) to the tools array returned by list_tools requests.
    getProjectTemplateListTool,
  • Tool specification object including name, detailed description, and JSON inputSchema for MCP list_tools response. Note: description has escaped newlines and quotes.
    export const getProjectTemplateListTool = {
      name: 'get-project-template-list',
      description: `Get list of project task templates.
    
    Templates are pre-created task structures with predefined title and body content. This tool retrieves all available templates in a project.
    
    **URL Pattern Recognition**:
    When given a Dooray URL like "https://nhnent.dooray.com/task/PROJECT_ID", extract the PROJECT_ID (the first numeric ID after "/task/") and use it as the projectId parameter.
    
    **Note**: Returns compact response with essential fields only (id and templateName).
    
    **Pagination**:
    - Default page size is 20 (maximum: 100)
    - Use page parameter to get additional pages if totalCount > size
    - Set size parameter to control items per page (max: 100)
    
    Examples:
    - Get all templates (first page): {"projectId": "123456"}
    - Get second page: {"projectId": "123456", "page": 1, "size": 20}
    - Get with custom page size: {"projectId": "123456", "page": 0, "size": 50}
    
    Returns a paginated response with totalCount and an array of templates containing id and templateName.
    
    Templates help users quickly create tasks with predefined structure and content, useful for common task types like bug reports, feature requests, or documentation tasks.`,
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Project ID to get templates from',
          },
          page: {
            type: 'number',
            description: 'Page number for pagination (default: 0)',
          },
          size: {
            type: 'number',
            description: 'Number of items per page (default: 20, max: 100)',
          },
        },
        required: ['projectId'],
      },
    };
Behavior5/5

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

With no annotations provided, the description carries full burden and excels. It discloses key behavioral traits: URL pattern recognition for parameter extraction, compact response format (id and templateName only), detailed pagination behavior (defaults, maximums, usage examples), and the purpose/benefit of templates. This goes well beyond basic functionality.

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?

The description is well-structured with clear sections (URL Pattern Recognition, Note, Pagination, Examples) and front-loaded core purpose. While somewhat lengthy, every sentence adds value—no waste. It could be slightly more concise in the final explanatory paragraph.

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 3 parameters with 100% schema coverage but no annotations or output schema, the description provides excellent completeness. It covers purpose, usage context, behavioral details, parameter semantics with examples, and response format. For a read-only list tool, this is comprehensive and leaves no significant gaps.

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 baseline is 3. The description adds significant value beyond the schema: it explains how to derive projectId from URLs, provides concrete examples of parameter combinations, and clarifies pagination logic (e.g., 'if totalCount > size'). This enhances understanding but doesn't fully explain all edge cases.

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 verb 'retrieves' and resource 'all available templates in a project', specifying it's about 'project task templates' with 'predefined title and body content'. It distinguishes from siblings like get-project-template (singular) by emphasizing it retrieves a list of all templates, not a specific one.

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 provides clear context for when to use this tool: to get templates for a project, with URL pattern recognition guidance for extracting projectId. It doesn't explicitly state when not to use it or name alternatives among siblings, but the context is sufficiently clear for typical usage.

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