Skip to main content
Glama
fleagne

Backlog MCP Server

by fleagne

backlog_get_wikis

Retrieve wiki pages from a Backlog project by specifying the project ID/key. Use keywords to filter and search relevant content within the wikis.

Instructions

Performs list wikis get using the Backlog Wiki API

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordsNoKeyword for searching
projectIdOrKeyYesProject ID or Project Key

Implementation Reference

  • The main handler function for the 'backlog_get_wikis' tool. It validates input parameters using WikisParamsSchema, calls wikiService.getWikis to fetch the data, formats the response as text, and handles errors appropriately.
    const handleGetWikis: ToolHandler = async (args) => {
    	try {
    		try {
    			const validatedParams = WikisParamsSchema.parse(args);
    
    			const text = await wikiService.getWikis(validatedParams);
    
    			return {
    				content: [
    					{
    						type: "text",
    						text: `Results for your query:\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,
    		};
    	}
    };
  • The toolHandlers object registers 'backlog_get_wikis' to the handleGetWikis function, mapping tool names to their handler implementations.
    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_wikis tool: requires projectIdOrKey, optional keyword.
    export const WikisParamsSchema = z.object({
    	projectIdOrKey: z.string().describe("Project ID or Project Key"),
    	keyword: z.string().optional().describe("Keyword for searching"),
    });
  • MCP Tool definition for 'backlog_get_wikis', including name, description, and input schema generated from WikisParamsSchema.
    export const WIKIS_TOOL: Tool = createTool(
    	"backlog_get_wikis",
    	"Performs list wikis get using the Backlog Wiki API",
    	WikisParamsSchema,
    );
  • wikiService.getWikis wrapper that delegates to the backlogAPI.getWikis method.
    async getWikis(params: WikisParams): Promise<string> {
    	try {
    		return await backlogAPI.getWikis(params);

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?

With no annotations provided, the description bears full responsibility for behavioral disclosure. It only states the action without revealing side effects, read-only nature, or response characteristics. The description does not address pagination, rate limits, or error conditions.

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 not well-structured. It lacks any logical breakdown or front-loading of key information. The sentence is minimal but not necessarily ineffective.

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 the tool has no output schema and a simple input schema, the description should at least indicate the expected output (e.g., a list of wiki objects) or mention any default behavior. It fails to provide sufficient context for an AI agent to fully understand the tool's functionality.

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% as both 'keywords' and 'projectIdOrKey' have descriptions in the schema. The tool description does not add any extra meaning beyond what the schema already provides. With high schema coverage, baseline 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 states it performs a list operation for wikis using the Backlog API, which aligns with the tool name 'backlog_get_wikis'. It is distinguishable from sibling 'backlog_get_wiki' (singular) as it implies listing multiple wikis. However, the phrasing 'list wikis get' is slightly awkward and could be clearer.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any prerequisites, context, or exclusions. For example, it doesn't hint that a project ID is required to scope the request.

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