get_ecm_folder_details
Retrieve detailed information about a specific room ECM folder by providing its unique folder ID, enabling efficient management and access within the Webex MCP Server.
Instructions
Get details for a room ECM folder with the specified folder ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier for the folder. |
Implementation Reference
- The handler function that performs the HTTP GET request to retrieve ECM folder details from the Webex API using the provided folder ID.const executeFunction = async ({ id }) => { try { // Construct the URL with the folder ID const url = getWebexUrl('/room/linkedFolders/${id}'); // Set up headers for the request const headers = getWebexHeaders(); // Perform the fetch request const response = await fetch(url, { method: 'GET', headers }); // Check if the response was successful if (!response.ok) { const errorData = await response.json(); throw new Error(errorData); } // Parse and return the response data const data = await response.json(); return data; } catch (error) { console.error('Error getting ECM folder details:', error); return { error: 'An error occurred while getting ECM folder details.' }; } };
- The schema definition for the tool, including name, description, input parameters (id: string, required), and structure compatible with MCP tool format.type: 'function', function: { name: 'get_ecm_folder_details', description: 'Get details for a room ECM folder with the specified folder ID.', parameters: { type: 'object', properties: { id: { type: 'string', description: 'The unique identifier for the folder.' } }, required: ['id'] } } }