Skip to main content
Glama

list_devices

Retrieve a list of SwitchBot devices for management and control through the SwitchBot MCP Server.

Instructions

デバイス一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The switch case handler for the 'list_devices' tool. It makes a GET request to the SwitchBot API endpoint '/devices' and returns the device list as JSON text content.
    case 'list_devices': { const response = await this.axiosInstance.get('/devices'); return { content: [ { type: 'text', text: JSON.stringify(response.data.body.deviceList, null, 2), }, ], }; }
  • src/index.ts:87-95 (registration)
    Registration of the 'list_devices' tool in the ListTools response, including name, description, and empty input schema.
    { name: 'list_devices', description: 'デバイス一覧を取得します', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • Input schema for the 'list_devices' tool: an empty object with no required properties.
    inputSchema: { type: 'object', properties: {}, required: [], },

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/genm/switchbot-mcp'

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