Skip to main content
Glama

get_project

Retrieve detailed information about a specific Backlog project using either its numeric ID or project key to access project data and settings.

Instructions

Returns information about a specific project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoThe numeric ID of the project (e.g., 12345)
projectKeyNoThe key of the project (e.g., 'PROJECT')

Implementation Reference

  • The handler function that resolves the project ID or key using resolveIdOrKey utility and retrieves the project details via the Backlog API.
    handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getProject(result.value); },
  • Input schema for the get_project tool using Zod, defining optional projectId (number) and projectKey (string) with descriptions.
    const getProjectSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_GET_PROJECT_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_GET_PROJECT_PROJECT_KEY', "The key of the project (e.g., 'PROJECT')" ) ), }));
  • The tool factory function that defines and exports the get_project tool, including name, description, input/output schemas, and handler.
    export const getProjectTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getProjectSchema>, (typeof ProjectSchema)['shape'] > => { return { name: 'get_project', description: t( 'TOOL_GET_PROJECT_DESCRIPTION', 'Returns information about a specific project' ), schema: z.object(getProjectSchema(t)), outputSchema: ProjectSchema, handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getProject(result.value); }, }; };
  • Instantiation and registration of the get_project tool factory within the central allTools function's 'project' toolset.
    getProjectTool(backlog, helper),

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/nulab/backlog-mcp-server'

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