Skip to main content
Glama

Create project invoice

create_project_invoice

Record an invoice. direction 'outgoing' is our invoice or payment request to the funder; 'incoming' is a partner's or subcontractor's invoice to us, which counts as a project cost. Attach it to a reporting period with period_id when it belongs to one.

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": {
      "project_id": "<project_id>"
    },
    "name": "create_project_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
due_onNo
statusNo
paid_onNo
currencyNo
file_urlNo
directionNo
issued_onNo
period_idNo
net_amountNo
project_idYes
vat_amountNo
paid_amountNo
gross_amountNoTaken as net + VAT when omitted.
milestone_idNoThe MILESTONE this invoice settles. Contract research is invoiced per milestone, grant work per reporting period — both may be set. Without this link the financial view cannot compute what has actually been PAID, only what has been accepted, and an acceptance is not a payment.
invoice_numberNo
counterparty_nameNo
counterparty_company_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write, so the safety profile is covered. The description adds useful domain semantics about how incoming invoices are treated as project costs. It does not disclose validation rules, required-field behavior, or what happens on duplicate submission, which matters for a non-idempotent create.

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?

Three compact sentences, front-loaded with the core action and then the two field semantics that need explanation. No filler or repetition, though the invoice-direction explanation is somewhat verbose relative to the space given to the many undocumented fields.

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

Completeness4/5

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

For a create tool with 18 parameters and no output schema, the definition covers the core action and the two non-obvious field semantics (direction and period_id). The remaining parameters are mostly conventional invoice fields whose names are self-explanatory, though amount handling and status transitions are not addressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 11% across 18 parameters, so the description must carry most of the load. It meaningfully explains direction and period_id, but leaves the other 15 parameters (amounts, status, dates, counterparty, invoice_number, milestone_id) to the schema's field names alone, which is insufficient for a payload this large.

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 opens with a concrete verb and resource ('Record an invoice') and the title confirms creation. It also disambiguates the direction field in domain terms. It does not explicitly contrast with update_project_invoice or delete_project_invoice, but the purpose is unambiguous on its own.

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?

It gives real guidance for the direction field ('outgoing' vs 'incoming', the latter counting as a project cost) and states when to supply period_id. However, there is no guidance on when to use this tool versus update_project_invoice or the other create_* siblings, and no prerequisites or when-not conditions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources