get_my_tasks_count
Get the count of your tasks filtered by type: responsible, ball holding, or following.
Instructions
指定したタイプの自分のタスク数を取得します
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | タイプ。responsible(担当)、ballHolding(ボール保持)、following(フォロー中)を指定できます。 |
Implementation Reference
- index.js:1434-1443 (handler)Handler for 'get_my_tasks_count' tool in CallToolRequestSchema switch statement that calls RepsonaAPI.getMyTasksCount with the type argument and returns the count as JSON
case 'get_my_tasks_count': const myTasksCount = await this.repsonaAPI.getMyTasksCount(args.type); return { content: [ { type: 'text', text: JSON.stringify(myTasksCount, null, 2), }, ], }; - index.js:828-842 (schema)Schema definition for 'get_my_tasks_count' tool - requires a 'type' parameter with enum values: responsible, ballHolding, following
{ name: 'get_my_tasks_count', description: '指定したタイプの自分のタスク数を取得します', inputSchema: { type: 'object', properties: { type: { type: 'string', enum: ['responsible', 'ballHolding', 'following'], description: 'タイプ。responsible(担当)、ballHolding(ボール保持)、following(フォロー中)を指定できます。' }, }, required: ['type'], }, }, - index.js:828-842 (registration)Registration of 'get_my_tasks_count' tool in ListToolsRequestSchema handler's tools array, where the tool name is defined
{ name: 'get_my_tasks_count', description: '指定したタイプの自分のタスク数を取得します', inputSchema: { type: 'object', properties: { type: { type: 'string', enum: ['responsible', 'ballHolding', 'following'], description: 'タイプ。responsible(担当)、ballHolding(ボール保持)、following(フォロー中)を指定できます。' }, }, required: ['type'], }, }, - index.js:295-297 (helper)API helper method in RepsonaAPI class that makes an HTTP GET request to /me/task/{type}/count endpoint to get the count of tasks for a given type
async getMyTasksCount(type) { return this.makeRequest(`/me/task/${type}/count`); }