Skip to main content
Glama

get_qiita_markdown_rules

Retrieve Qiita markdown syntax rules and cheat sheet for creating, updating, and formatting articles using the Qiita MCP Server.

Instructions

get Qiita markdown syntax rules, cheat sheet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the 'get_qiita_markdown_rules' tool. It calls the Qiita API service to fetch markdown rules and returns a formatted success or error response.
    const getQiitaMarkdownRules = async (): Promise<any> => { try { const markdownRules = await apiService.getMarkdownRules(); return createSuccessResponse(markdownRules); } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return createErrorResponse(`Error fetching Qiita markdown rules: ${errorMessage}`); } };
  • The registration of the tool within the getToolDefinitions array, defining its name, description, empty parameters schema, and linking to the handler function.
    { name: "get_qiita_markdown_rules", description: "get Qiita markdown syntax rules, cheat sheet", parameters: {} as z.ZodRawShape, handler: () => getQiitaMarkdownRules() }
  • Helper function to format successful responses, used by the tool handler.
    const createSuccessResponse = (content: string): any => { return { content: [ { type: "text", text: content } ] }; };
  • Helper function to format error responses, used by the tool handler.
    const createErrorResponse = (errorMessage: string): any => { return { content: [ { type: "text", text: `Error: ${errorMessage}` } ], isError: true }; };

Other Tools

Related 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/2bo/qiita-mcp-server'

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