unstock_item
Remove an article from your Qiita stock list by providing its article ID to manage your saved content.
Instructions
指定された記事のストックを解除します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID |
Implementation Reference
- src/tools/handlers.ts:112-115 (handler)Handler definition for the 'unstock_item' tool. It validates input using itemIdSchema and delegates execution to the QiitaApiClient's unstockItem method.unstock_item: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.unstockItem(itemId), },
- src/tools/definitions.ts:306-319 (schema)MCP tool schema definition for 'unstock_item', including name, description, and input schema requiring 'itemId'.{ name: 'unstock_item', description: '指定された記事のストックを解除します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
- src/qiitaApiClient.ts:111-115 (helper)Core helper method in QiitaApiClient that authenticates and sends DELETE request to Qiita API endpoint to unstock the specified item.async unstockItem(itemId: string) { this.assertAuthenticated(); await this.client.delete(`/items/${itemId}/stock`); return { success: true }; }