Skip to main content
Glama

HamroLink Business OS MCP Server

invoice.create

Generate, calculate, issue, and optionally email a verified digital payment invoice or receipt directly to a customer with CRM integration. (Note: Digital invoicing is strictly disabled for Free and Local Start plans; requires Business plan or above).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customerName": "<customerName>"
    },
    "name": "invoice.create"
  }
}

Input Schema

NameRequiredDescriptionDefault
isVatNoSet true to apply standard 13% VAT, false for 0% VAT exemption
itemsNoOptional itemized list of items/services. If passed, overrides serviceName/price.
priceNoPrice or rate for the service item in NPR
siteIdNoOptional site ID. Defaults to active business or school site.
dueDateNoDue date for payment (e.g. '2026-10-30')
taxRateNoVAT tax percentage (e.g. 13 for 13% VAT, 0 for tax-exempt). Defaults to site's configured VAT rate.
discountNoFlat discount amount in NPR
sendEmailNoWhether to dispatch branded HTML invoice email to customer via Amazon SES (default true)
customNotesNoCustom notes, payment terms, or instructions
customerPanNoOptional customer PAN / VAT registration number for B2B billing
serviceNameNoSingle service or product item name (e.g., 'Web Development & Hosting', 'School Tuition Fee', 'Consultation Fee')
customerNameYesCustomer, client, or company name (e.g., 'Suman Basnet')
customerEmailNoCustomer email address. Leave empty if unknown so tool can search CRM database. NEVER invent a fake email.
customerPhoneNoOptional customer phone number
paymentMethodNoPayment method (e.g. 'Fonepay / Bank QR', 'Cash', 'Bank Transfer', 'eSewa', 'Khalti')
paymentStatusNoPayment status: 'paid' (default receipt) or 'pending' (unpaid bill)
customerAddressNoOptional customer address
paymentReferenceNoTransaction reference ID, receipt note, or check number
discountPercentageNoDiscount percentage (e.g., 10 for 10% OFF)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write-and-external-effect profile is partly covered. The description adds real context beyond them: the plan-tier gating that will block the call, the CRM lookup integration, and that email dispatch is optional. It still doesn't say what happens on partial failure (e.g., invoice created but email fails) or what identifier is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences with the core action front-loaded and the blocking plan restriction clearly set off in parentheses. The verb stack 'Generate, calculate, issue, and optionally email' is slightly redundant but not enough to obscure the purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 19 parameters, full schema documentation and annotations, the description covers the essentials for invocation. But for a create tool with no output schema, it omits what the agent gets back (invoice ID, URL, email delivery status), which matters for follow-up calls like invoice.get_details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 19 parameters is already explained in the schema, including the items/serviceName override relationship and the VAT defaults. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb set (generate/calculate/issue/email) applied to a concrete resource (digital payment invoice or receipt), and the CRM integration and optional emailing are called out. It is clearly distinguishable from siblings like invoice.get_details, invoice.list and invoice.update_status by the creation verb, but it never names those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical plan gate (disabled on Free and Local Start, requires Business plan or above) is a genuine precondition an agent must check before calling. However, there is no guidance on when to use this versus invoice.update_status or invoice.get_details, and no stated exclusions beyond the plan tier.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.