Skip to main content
Glama
topotal

Waroom MCP

by topotal

waroom_get_service_labels

Retrieve a list of labels for a specific service, specifying page number and items per page for precise results.

Instructions

特定のサービスのラベル一覧を取得します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo取得するページ番号(1以上の整数)。デフォルト: 1
per_pageNo1ページあたりの取得数(1-100)。デフォルト: 50
service_nameYesサービス名

Implementation Reference

  • MCP tool handler that executes the logic for waroom_get_service_labels by calling WaroomClient.getServiceLabels with parameters and returning formatted JSON response or error message.
    async (params) => { try { const response = await waroomClient.getServiceLabels( params.service_name, params.page || 1, params.per_page || 50 ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `サービスラベル一覧の取得に失敗しました: ${error}` }] }; } }
  • Zod schema defining input parameters for the waroom_get_service_labels tool: service_name (required string), page and per_page (optional numbers).
    { service_name: z.string().min(1).max(100).describe('サービス名'), page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'), per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'), },
  • Registration of the waroom_get_service_labels tool using server.tool(), including name, description, input schema, and handler function.
    'waroom_get_service_labels', '特定のサービスのラベル一覧を取得します。', { service_name: z.string().min(1).max(100).describe('サービス名'), page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'), per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'), }, async (params) => { try { const response = await waroomClient.getServiceLabels( params.service_name, params.page || 1, params.per_page || 50 ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `サービスラベル一覧の取得に失敗しました: ${error}` }] }; } } );
  • Helper method in WaroomClient that makes the API call to retrieve service labels from Waroom API.
    async getServiceLabels(serviceName: string, page = 1, perPage = 50) { try { const response = await this.axiosInstance.get(`${this.baseUrl}/services/${serviceName}/labels`, { params: { page, per_page: perPage } }); return response.data; } catch (error) { throw new Error(`Failed to get service labels: ${error}`); } }

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/topotal/waroom-mcp'

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