Skip to main content
Glama
shahlaukik

Money Manager MCP Server

by shahlaukik

asset_delete

Delete assets from your financial portfolio in the Money Manager MCP Server to maintain accurate financial records and remove outdated or incorrect entries.

Instructions

Removes an asset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetIdYesAsset ID to delete

Implementation Reference

  • The handler function that executes the asset_delete tool: validates input using AssetDeleteInputSchema and calls the Money Manager API /removeAsset endpoint to delete the specified asset.
    /** * Handler for asset_delete tool * Removes an asset */ export async function handleAssetDelete( httpClient: HttpClient, input: unknown, ): Promise<AssetOperationResponse> { const validated = AssetDeleteInputSchema.parse(input); const response = await httpClient.post<ApiOperationResponse>("/removeAsset", { assetId: validated.assetId, }); return { success: response.success !== false && response.result !== "fail", assetId: validated.assetId, message: response.message, }; }
  • Zod input schema for asset_delete tool, requiring assetId string.
    /** * Input schema for asset_delete tool */ export const AssetDeleteInputSchema = z.object({ assetId: AssetIdSchema, }); export type AssetDeleteInput = z.infer<typeof AssetDeleteInputSchema>;
  • src/index.ts:275-285 (registration)
    MCP tool registration in TOOL_DEFINITIONS array, defining name, description, and input schema for the asset_delete tool.
    { name: "asset_delete", description: "Removes an asset.", inputSchema: { type: "object" as const, properties: { assetId: { type: "string", description: "Asset ID to delete" }, }, required: ["assetId"], }, },
  • Internal registration of the handleAssetDelete handler in the toolHandlers map.
    asset_list: handleAssetList, asset_create: handleAssetCreate, asset_update: handleAssetUpdate, asset_delete: handleAssetDelete,
  • Registration of AssetDeleteInputSchema in the ToolSchemas registry.
    // Assets asset_list: AssetListInputSchema, asset_create: AssetCreateInputSchema, asset_update: AssetUpdateInputSchema, asset_delete: AssetDeleteInputSchema,

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/shahlaukik/money-manager-mcp'

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