Skip to main content
Glama

get_tag_items

Retrieve articles associated with a specific tag from Qiita's developer community platform. Use this tool to fetch tagged content listings with pagination support for efficient browsing.

Instructions

指定されたタグの記事一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoページ番号(1-100)
perPageNo1ページあたりの件数(1-100)
tagIdYesタグID

Implementation Reference

  • The handler definition for the 'get_tag_items' tool. It defines the input schema by merging tagId and pagination schemas, and the execute function that calls QiitaApiClient.getTagItems with the parsed inputs.
    get_tag_items: { schema: tagIdSchema.merge(paginationSchema), execute: async ({ tagId, page, perPage }, client) => client.getTagItems(tagId, page, perPage), },
  • The MCP tool definition for 'get_tag_items', including the name, Japanese description, and JSON schema for input validation (tagId required, page and perPage optional with defaults).
    { name: 'get_tag_items', description: '指定されたタグの記事一覧を取得します', inputSchema: { type: 'object', properties: { tagId: { type: 'string', description: 'タグID', }, page: { type: 'number', description: 'ページ番号(1-100)', default: 1, }, perPage: { type: 'number', description: '1ページあたりの件数(1-100)', default: 20, }, }, required: ['tagId'], }, },
  • The supporting method in QiitaApiClient that performs the actual HTTP GET request to Qiita API endpoint /tags/{tagId}/items with pagination parameters, returning the response data. This is invoked by the tool handler.
    async getTagItems(tagId: string, page = 1, perPage = 20) { const response = await this.client.get(`/tags/${tagId}/items`, { params: { page, per_page: perPage }, }); return response.data; }

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/Selenium39/mcp-server-qiita'

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