Skip to main content
Glama

get_items

Retrieve articles from Qiita's developer community platform using pagination and search queries to access technical content.

Instructions

記事一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoページ番号(1-100)
perPageNo1ページあたりの件数(1-100)
queryNo検索クエリ

Implementation Reference

  • Handler for the 'get_items' MCP tool: validates input schema and executes by calling QiitaApiClient.getItems(page, perPage, query).
    get_items: { schema: paginationSchema.extend({ query: z.string().optional(), }), execute: async ({ page, perPage, query }, client) => client.getItems(page, perPage, query), },
  • MCP tool definition for 'get_items', including name, description, and input schema (page, perPage, optional query). Used for tool listing.
    { name: 'get_items', description: '記事一覧を取得します', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'ページ番号(1-100)', default: 1, }, perPage: { type: 'number', description: '1ページあたりの件数(1-100)', default: 20, }, query: { type: 'string', description: '検索クエリ', }, }, required: [], }, },
  • QiitaApiClient.getItems method: performs HTTP GET to /items endpoint with pagination and optional query params, returns response data.
    async getItems(page = 1, perPage = 20, query?: string) { const response = await this.client.get('/items', { params: { page, per_page: perPage, ...(query && { query }) }, }); return response.data; }
  • Zod input validation schema for 'get_items' handler, extending paginationSchema with optional query.
    schema: paginationSchema.extend({ query: z.string().optional(), }),

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