Skip to main content
Glama
index.ts945 B
// ---------------------------- // DELETE PAYEE TOOL // ---------------------------- import { deletePayee } from '../../../actual-api.js'; import { successWithJson, errorFromCatch } from '../../../utils/response.js'; export const schema = { name: 'delete-payee', description: 'Delete a payee', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the payee. Should be in UUID format.', }, }, required: ['id'], }, }; export async function handler( args: Record<string, unknown> ): Promise<ReturnType<typeof successWithJson> | ReturnType<typeof errorFromCatch>> { try { if (!args.id || typeof args.id !== 'string') { return errorFromCatch('id is required and must be a string'); } await deletePayee(args.id); return successWithJson('Successfully deleted payee ' + args.id); } catch (err) { return errorFromCatch(err); } }

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/s-stefanov/actual-mcp'

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