reset_portfolio
Reset a specified portfolio to its initial state by providing the portfolio ID. Use this to clear all changes and revert to the starting configuration.
Instructions
Reset portfolio to initial state
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portfolioId | Yes | Portfolio ID to reset |
Implementation Reference
- src/index.ts:434-436 (handler)Handler implementation for the reset_portfolio tool. It performs a POST request to the API endpoint `/accounts/portfolios/${portfolioId}/reset` to reset the portfolio to its initial state.case 'reset_portfolio': response = await api.post(`/accounts/portfolios/${args.portfolioId}/reset`); break;
- src/index.ts:144-153 (registration)Tool registration entry for reset_portfolio, defining its name, description, and input schema (requires portfolioId). This object is part of the tools array returned by ListTools.name: 'reset_portfolio', description: 'Reset portfolio to initial state', inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID to reset' } }, required: ['portfolioId'] } },
- src/index.ts:146-152 (schema)Input schema definition for the reset_portfolio tool, specifying the required portfolioId parameter.inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID to reset' } }, required: ['portfolioId'] }