Skip to main content
Glama

Accept Quote

whmcs_accept_quote

Accept a quote using its ID and convert it to an invoice. This action transforms a client quote into a billable invoice, simplifying the billing process.

Instructions

Accept a quote and convert to invoice

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteidYesQuote ID

Implementation Reference

  • src/index.ts:1274-1289 (registration)
    Registration of the 'whmcs_accept_quote' tool via server.registerTool() with input schema accepting a quoteid (number). The handler delegates to whmcsClient.acceptQuote(params).
    server.registerTool(
        'whmcs_accept_quote',
        {
            title: 'Accept Quote',
            description: 'Accept a quote and convert to invoice',
            inputSchema: {
                quoteid: z.number().describe('Quote ID'),
            },
        },
        async (params) => {
            const result = await whmcsClient.acceptQuote(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • The acceptQuote() method in WhmcsApiClient that sends the 'AcceptQuote' API action to WHMCS with a quoteid parameter, returning the quoteid and new invoiceid.
    /**
     * Accept a quote
     */
    async acceptQuote(params: { quoteid: number }) {
        return this.call<WhmcsApiResponse & {
            quoteid: number;
            invoiceid: number;
        }>('AcceptQuote', params);
    }
  • Input schema for whmcs_accept_quote requiring a quoteid (number) parameter.
    inputSchema: {
        quoteid: z.number().describe('Quote ID'),
    },
  • Response type for acceptQuote includes quoteid and invoiceid on success.
    async acceptQuote(params: { quoteid: number }) {
        return this.call<WhmcsApiResponse & {
            quoteid: number;
            invoiceid: number;
        }>('AcceptQuote', params);
    }
Behavior2/5

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

No annotations are provided, so the description must carry full burden. It only states the action without disclosing side effects (e.g., quote status change, irreversibility), authorization needs, or other behavioral traits beyond the basic mutation.

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?

The description is a single sentence with 5 words, highly concise and front-loaded. Every word is earned, but could be slightly expanded without losing conciseness.

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?

Given the tool's simplicity (1 param, no output schema, no annotations), the description is minimally complete but lacks behavioral context and usage cues. It barely meets the minimum viable threshold.

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% (1 param with description 'Quote ID'). The description adds no additional meaning beyond the schema, so baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states the verb 'Accept' and the resource 'quote', and specifies the outcome 'convert to invoice', distinguishing it from sibling tools like whmcs_create_quote and whmcs_create_invoice.

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 description implies use after a quote is created, but gives no explicit guidance on when to use this tool vs alternatives like whmcs_create_invoice or whmcs_create_quote. No exclusions or prerequisites are mentioned.

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

Install Server

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/scarecr0w12/whmcs-mcp-tool'

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