Skip to main content
Glama

list_purchase_bills

Lists purchase bills (supplier expenses) with filters for supplier, item type, and issue-date range to review and manage supplier transactions.

Instructions

List purchase bills (supplier expenses). Filter by supplier, item_type and issue-date range.

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": "list_purchase_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based)
sortNoSort field, '-' prefix for desc (e.g. '-issue_date')
per_pageNoItems per page (max 25)
item_typeNoFilter by item type
supplier_idNoFilter by supplier contact ID
issue_date_toNoIssue date to (YYYY-MM-DD)
issue_date_fromNoIssue date from (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.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 supplied, so the description carries the full behavioral burden. It implies a read-only listing but does not state that explicitly, nor does it mention pagination behavior, the 25-item cap, sort semantics, permissions, or what the response contains.

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?

The description is two short sentences with zero filler, and the primary purpose is front-loaded ahead of the filter details. Every sentence contributes useful information.

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?

For a seven-parameter list tool with no annotations and no output schema, the description covers purpose and filter dimensions but is thin on pagination, sorting, read-only status, and return shape. The schema fills most parameter gaps, but behavioral completeness remains only adequate.

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 all seven parameters are already documented in the schema. The description maps its filters to supplier, item_type, and issue-date range, but adds no syntax or format detail beyond what the schema provides for page, per_page, and sort.

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 ('List') and resource ('purchase bills'), with a clarifying parenthetical that these are supplier expenses. It clearly distinguishes a collection-listing operation from siblings like get_purchase_bill or create_purchase_bill, though it does not explicitly contrast with other list_* tools.

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 the tool is used to list and filter purchase bills, and names the available filter dimensions. However, it gives no explicit when-to-use guidance, no exclusions, and does not point to get_purchase_bill for retrieving a single bill or create_purchase_bill for writes.

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