Skip to main content
Glama

create_purchase_bill

Creates a basic Parasut purchase bill from supplier ID, issue/due dates, net total, and VAT to record supplier purchases with required billing fields.

Instructions

Create a basic purchase bill. Parasut requires due_date, net_total AND total_vat for basic bills.

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": {
      "supplier_id": "<supplier_id>",
      "issue_date": "<issue_date>",
      "due_date": "<due_date>",
      "net_total": "<net_total>",
      "total_vat": "<total_vat>"
    },
    "name": "create_purchase_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoCurrency (Turkish Lira is TRL, not TRY)TRL
due_dateYesDue date (YYYY-MM-DD) — required by Parasut for basic bills
item_typeNoDocument typepurchase_bill
net_totalYesNet total (excluding VAT)
total_vatYesTotal VAT amount — required by Parasut for basic bills
invoice_noNoSupplier's invoice number
issue_dateYesIssue date (YYYY-MM-DD)
descriptionNoBill description
supplier_idYesSupplier contact ID
exchange_rateNoExchange rate to TRL for foreign-currency bills

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.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 discloses that Parasut enforces due_date, net_total and total_vat, but says nothing about permissions, whether the bill posts to the accounting ledger, whether it is reversible, what happens on validation failure, 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.

Conciseness4/5

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

Two short sentences, front-loaded with the action and followed by the key constraint; no filler. Slight loss for the undefined term 'basic' occupying prime space without explanation.

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?

This is a 10-parameter mutation with no annotations and no output schema, yet the description is only two sentences. It omits what is returned (e.g. created bill ID), how 'basic' differs from other bill creation paths, and any side effects, leaving the agent under-informed for a write operation.

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 coverage is 100% and every parameter is individually documented, so the schema does the heavy lifting. The description only restates the three required fields already marked required in the schema, adding no new semantics for item_type, currency, or exchange_rate.

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?

States a specific verb and resource ('Create a basic purchase bill'), which is clearly distinct from read/cancel/payment siblings. The qualifier 'basic' is never defined, so an agent can't tell what a basic versus detailed bill is or whether line items are supported.

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?

No guidance on when to use this versus record_purchase_bill_payment or create_sales_invoice, and no prerequisites about supplier existence or currency setup. The only conditional context is the Parasut field requirement, which is a validation constraint rather than usage guidance.

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