Skip to main content
Glama
fleagne

Backlog MCP Server

by fleagne

backlog_get_project

Retrieve project details using the Backlog API by specifying a project ID or key. Facilitates project management within the Backlog MCP Server.

Instructions

Performs an project get using the Backlog Project get API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdOrKeyYesProject ID or Project Key

Implementation Reference

  • The main handler function 'handleGetProject' for the 'backlog_get_project' tool. It parses input arguments against ProjectParamsSchema, fetches project details via projectService.getProject, formats the response, and handles errors.
    const handleGetProject: ToolHandler = async (args) => {
    	try {
    		try {
    			const validatedParams = ProjectParamsSchema.parse(args);
    
    			const text = await projectService.getProject(validatedParams);
    
    			return {
    				content: [
    					{
    						type: "text",
    						text: `Project details for ${validatedParams.projectIdOrKey}:\n${text}`,
    					},
    				],
    				isError: false,
    			};
    		} catch (validationError) {
    			throw new ValidationError(
    				`Invalid parameters: ${validationError instanceof Error ? validationError.message : String(validationError)}`,
    			);
    		}
    	} catch (error) {
    		return {
    			content: [
    				{
    					type: "text",
    					text: `Error: ${formatError(error)}`,
    				},
    			],
    			isError: true,
    		};
    	}
    };
  • Maps the tool name 'backlog_get_project' to its handler 'handleGetProject' in the central toolHandlers registry.
    export const toolHandlers: Record<ToolName, ToolHandler> = {
    	backlog_get_projects: handleGetProjects,
    	backlog_get_project: handleGetProject,
    	backlog_get_issues: handleGetIssues,
    	backlog_get_issue: handleGetIssue,
    	backlog_add_issue: handleAddIssue,
    	backlog_update_issue: handleUpdateIssue,
    	backlog_delete_issue: handleDeleteIssue,
    	backlog_get_wikis: handleGetWikis,
    	backlog_get_wiki: handleGetWiki,
    	backlog_add_wiki: handleAddWiki,
    	backlog_update_wiki: handleUpdateWiki,
    	backlog_delete_wiki: handleDeleteWiki,
    };
  • Zod schema defining the input parameters for the 'backlog_get_project' tool: requires 'projectIdOrKey'.
    export const ProjectParamsSchema = z.object({
    	projectIdOrKey: z.string().describe("Project ID or Project Key"),
    });
  • Defines the MCP Tool object for 'backlog_get_project' with description and input schema (converted from Zod).
    export const PROJECT_TOOL: Tool = createTool(
    	"backlog_get_project",
    	"Performs an project get using the Backlog Project get API.",
    	ProjectParamsSchema,
    );

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are present, and the description only says 'performs a get', which implies a read operation but does not disclose error behavior, authentication needs, or side effects. The minimal description fails to add value beyond the tool name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, which is concise, but it contains a grammatical error ('an project') and is not front-loaded with the most critical information (e.g., that it gets a single project). It could be more effective.

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

Completeness2/5

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

Given no output schema and no annotations, the description should compensate by explaining what the tool returns or any important behavior. It does not mention return value structure or handling of missing projects, making it incomplete for effective use.

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

Parameters3/5

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

Schema coverage is 100% and the schema provides a clear description of the parameter. The tool description adds no additional meaning beyond what the schema already offers, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'project get' combined with the parameter 'projectIdOrKey' and sibling tool 'backlog_get_projects' suggests this tool retrieves a single project, but it could be more explicit about fetching details of a specific project. The typo 'an project' slightly detracts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'backlog_get_projects' for listing projects. The description does not mention any prerequisites or context.

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

Related Tools