Skip to main content
Glama

Create invoice line

create_invoice_line

Add a line item to an invoice. amount is computed as quantity*unit_price by the database.

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": {
      "invoice_id": "<invoice_id>",
      "description": "<description>"
    },
    "name": "create_invoice_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNo
agent_idNo
positionNo
quantityNo
entry_typeNo
invoice_idYes
unit_priceNo
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is largely covered. The description adds one genuinely useful behavioral fact beyond that: amount is derived by the database as quantity*unit_price, so callers should not supply it. It says nothing about what happens on duplicate submissions, validation failures, or whether the computed amount respects currency or rounding rules.

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, with the core action front-loaded and the derived-field caveat immediately after. Nothing is wasted, though the terseness is partly under-specification rather than disciplined editing.

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 mutation tool with 8 undocumented parameters, no output schema, and no annotation explaining return behavior. The description covers roughly one of those gaps, leaving the agent without enough information to populate the remaining six optional fields or anticipate the response.

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 0% across 8 parameters, so the description must carry the burden and does not. It clarifies only the quantity/unit_price relationship and the implied absence of an amount field, while unit, agent_id, position, entry_type, and description are left completely undefined. For a 0%-coverage schema, the single derived-field note is a marginal contribution.

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?

"Add a line item to an invoice" gives a specific verb and resource, so the operation is unambiguous. It does not differentiate from siblings such as update_invoice_line, delete_invoice_line, or list_invoice_lines, leaving the agent to infer which one applies to its intent.

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 versus update_invoice_line or how to handle an existing line. No prerequisites are stated, such as the invoice needing to exist before a line can be attached.

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