Skip to main content
Glama

expense_add_vendor

Add new vendors to your financial system with essential details including contact information, payment terms, and tax ID for accurate expense tracking and reporting.

Instructions

Add a new vendor to the system

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activeNo
contactInfoYes
nameYes
paymentTermsNoNet 30
preferredPaymentMethodNoCheck
taxIdNo
vendorIdYes
w9OnFileNo

Implementation Reference

  • The async handler function that processes the tool call, simulating vendor addition by returning a success response with vendor ID and name, or an error.
    handler: async (args: any): Promise<ToolResult> => { try { return { success: true, data: { vendorId: args.vendorId }, message: `Added vendor: ${args.name}` }; } catch (error) { return { success: false, error: error instanceof Error ? error.message : String(error) }; } }
  • Input schema defining the parameters required and optional for adding a new vendor, including vendorId, name, contactInfo as required fields.
    inputSchema: { type: "object", properties: { vendorId: { type: "string" }, name: { type: "string" }, contactInfo: { type: "object" }, taxId: { type: "string" }, paymentTerms: { type: "string", default: "Net 30" }, preferredPaymentMethod: { type: "string", enum: ["Cash", "Check", "Credit Card", "ACH Transfer", "Wire Transfer", "PayPal", "Other"], default: "Check" }, w9OnFile: { type: "boolean", default: false }, active: { type: "boolean", default: true } }, required: ["vendorId", "name", "contactInfo"] },
  • src/index.ts:32-44 (registration)
    Registration of all tools by aggregating tool arrays including expenseTools (containing expense_add_vendor) into allTools, which is used in MCP server request handlers for listing and calling tools.
    const allTools = [ ...excelTools, ...financialTools, ...rentalTools, ...expenseTools, ...reportingTools, ...cashFlowTools, ...taxTools, ...analyticsTools, ...chartTools, ...complianceTools, ...propertyTools, ];

Other Tools

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/jeremycharlesgillespie/excel-mcp'

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