Skip to main content
Glama
Prime MCP Server

Prime MCP Server

by MikahDev

prime_list_ap_invoices

List accounts payable invoices from suppliers or contractors, filtered by job, supplier, status, or invoice date, to support AP review and reconciliation.

Instructions

List accounts payable invoices (from suppliers/contractors). Filter by job, supplier, or status.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prime_list_ap_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (starting from 1)
job_idNoFilter by job ID
includesNoRelated resources to include: job, supplier, status
order_byNoField to order by (e.g., "createdAt", "updatedAt")
per_pageNoItems per page (max 100)
order_dirNoSort directionDESC
status_idNoFilter by invoice status ID
supplier_idNoFilter by supplier contact ID
invoice_date_afterNoFilter invoices dated after
invoice_date_beforeNoFilter invoices dated before

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only implies read-only by using "List". It says nothing about pagination (the schema defaults to page 1 / 15 per page with a max of 100), sort defaults (DESC), permission requirements, or what the response looks like.

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

Conciseness5/5

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

Two short sentences with zero filler, leading with what is listed and following with the filterable dimensions. Nothing is redundant or buried.

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 10 optional parameters, no annotations, and no output schema, the definition is thin: it covers only the three filtering dimensions and leaves pagination, sorting, and the shape of the returned collection unexplained. The fully documented schema compensates for the parameter gap, but the behavioral gap remains.

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 parameter including date filters, ordering, and pagination is already documented inline; the description adds only a restatement of the job/supplier/status filters. It omits any mention of the date-range, ordering, or paging parameters, so it adds little meaning beyond the schema baseline.

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 gives a specific verb and resource ("List accounts payable invoices") and clarifies the domain with "from suppliers/contractors", which lets an agent distinguish it from the accounts-receivable sibling prime_list_ar_invoices. It does not explicitly name the read-only sibling get/create/update tools, but the list-vs-single distinction is implicit in the verb.

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?

"Filter by job, supplier, or status" implies when the tool is useful (retrieving a filtered collection) but never states when to prefer it over prime_get_ap_invoice for a single record or the create/update tools. No exclusions, prerequisites, or alternative-routing guidance are given.

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