Skip to main content
Glama

change_password

Update a user-based license password securely by providing the username, current password, and new password for the LicenseSpring MCP Server.

Instructions

Change password for a user-based license

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_passwordYes
passwordYes
usernameYes

Implementation Reference

  • The handler function that implements the core logic of the 'change_password' tool by proxying to the LicenseSpring License API.
    }, async ({ username, password, new_password }) => { try { const response = await apiClient.post('/api/v4/change_password', { username, password, new_password, }); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2), }], }; } catch (error) { return { content: [{ type: 'text', text: `Error changing password: ${handleApiError(error)}`, }], isError: true, }; } });
  • The registration of the 'change_password' tool, including metadata, Zod input schema, and inline handler function.
    server.registerTool('change_password', { title: 'Change Password', description: 'Change password for a user-based license', inputSchema: { username: z.string().min(1, 'Username is required'), password: z.string().min(1, 'Current password is required'), new_password: z.string().min(1, 'New password is required'), }, }, async ({ username, password, new_password }) => { try { const response = await apiClient.post('/api/v4/change_password', { username, password, new_password, }); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2), }], }; } catch (error) { return { content: [{ type: 'text', text: `Error changing password: ${handleApiError(error)}`, }], isError: true, }; } });
  • TypeScript interface defining the structure of the input for the change_password tool.
    export interface ChangePasswordRequest { username: string; password: string; new_password: string; }

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/stier1ba/licensespring-mcp'

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