Skip to main content
Glama
Prime MCP Server

Prime MCP Server

by MikahDev

prime_create_ap_invoice

Create an accounts payable invoice for a job from a supplier, recording invoice number, dates, subtotal, tax, and total.

Instructions

Create an accounts payable invoice for a job from a supplier.

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": {
      "job_id": "<job_id>",
      "supplier_id": "<supplier_id>",
      "status_id": "<status_id>",
      "invoice_number": "<invoice_number>",
      "invoice_date": "<invoice_date>",
      "subtotal": "<subtotal>",
      "total": "<total>"
    },
    "name": "prime_create_ap_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoInternal notes
totalYesTotal invoice amount
job_idYesThe job ID this invoice belongs to
due_dateNoPayment due date (YYYY-MM-DD)
subtotalYesInvoice subtotal before tax
status_idYesInitial invoice status ID
tax_amountNoTax amount
descriptionNoInvoice description
supplier_idYesSupplier contact ID
invoice_dateYesInvoice date (YYYY-MM-DD)
allocation_idNoRelated allocation ID
invoice_numberYesSupplier invoice number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It says only that an invoice is created, without disclosing required permission scope, side effects, validation rules, or how status_id and allocation_id are handled during creation.

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, front-loaded sentence with no wasted words. It is efficient, though its brevity leaves little room for operational context.

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

Completeness2/5

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

For a 12-parameter mutation tool with no annotations and no output schema, the one-sentence description is too thin. It does not explain required relationships such as subtotal/total/tax_amount, the significance of status_id, or what the caller should expect after creation.

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 the schema already explains all 12 parameters in detail. The description adds no parameter-level meaning beyond the resource context, which is acceptable given the high schema coverage but provides no extra help.

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 and resource: "Create an accounts payable invoice," and clarifies it is for a job from a supplier. This distinguishes it from read/update/list siblings, though it does not explicitly differentiate AP from AR invoice creation if such a sibling exists.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, no prerequisites, and no mention of when not to use it. The agent must infer that this is the creation path for AP invoices.

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

Deploy Server

Other Tools