Skip to main content
Glama
Frihet-io

Frihet MCP Server

Create Invoice

create_invoice

Generate a new invoice by providing client name and line items. Invoice number is auto-assigned, status defaults to draft, and date defaults to today.

Instructions

Create a new invoice. Requires client name and at least one line item. The invoice number is auto-generated. Defaults to draft status and today's date. Example: clientName='Acme Corp', items=[{description:'Consulting', quantity:10, unitPrice:150}], taxRate=21 / Crea una nueva factura. Requiere nombre del cliente y al menos un concepto. El numero se genera automaticamente. Por defecto estado borrador y fecha de hoy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientNameYesClient/customer name / Nombre del cliente
itemsYesLine items (each with description, quantity, unitPrice) / Conceptos de la factura
issueDateNoIssue date in ISO 8601 format (YYYY-MM-DD), defaults to today / Fecha de emision
dueDateNoDue date in ISO 8601 format (YYYY-MM-DD) / Fecha de vencimiento
statusNoInvoice status (default: draft) / Estado de la factura
notesNoAdditional notes shown on the invoice / Notas adicionales
taxRateNoTax rate percentage (e.g. 21 for 21% IVA, 7 for IGIC) / Porcentaje de impuesto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
clientNameYes
itemsYes
issueDateNo
dueDateNo
statusNo
notesNo
taxRateNo
totalNo
createdAtNo
updatedAtNo
Behavior4/5

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

Annotations indicate non-readonly, non-destructive, non-idempotent, non-open-world. The description adds that the invoice number is auto-generated and defaults to draft status and today's date. It does not mention side effects like sending or emailing, which is acceptable for a creation tool. No contradictions with annotations.

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 sentences plus an example, front-loaded with key information. Every sentence serves a purpose: requirement, auto-generation, defaults, example. Includes bilingual text which is contextually appropriate. No wasted words.

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

Completeness5/5

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

Given that there is an output schema (not shown but indicated), the description does not need to explain return values. It covers required parameters, defaults, and provides an illustrative example. For a creation tool with 7 parameters and 2 required, this is complete.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by providing a concrete example with clientName, items, and taxRate, and by noting defaults for issueDate and status. This helps an agent understand typical usage beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Create a new invoice' with specific verbs and resources. It includes requirements, auto-generation, defaults, and an example, distinguishing it from other create_* tools. The sibling list includes many create tools, but this one is uniquely about invoices.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states required fields (clientName, items) and mentions defaults (draft status, today's date). It provides an example, but does not explicitly contrast with alternatives like create_recurring_invoice or create_quote. However, the context is sufficient for selecting this tool for one-time invoices.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Frihet-io/frihet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server