Defontana MCP by usefulapi
Read sales, purchases, stock, receivables and accounting vouchers in Defontana.
Should I use this
Quality & Safety
Findings (2)
- LOWin defontana_search_client_by_legal_code
- LOWin defontana_list_payment_conditions
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"defontana": {
"url": "https://defontana.usefulapi.io/mcp"
}
}
}Remote endpoints
https://defontana.usefulapi.io/mcpstreamable-httpWhat it can do
Tool inventory
Tools (28)
π’defontana_get_company
The Defontana company the login belongs to: id, name, tax id (legalCode), website and e-mail. GET /Company.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_users(filter, page, per_page)
List the users of the Defontana company (name, phone, e-mail, tax id, user id). GET /User/List.
Input Schema
{
"type": "object",
"properties": {
"filter": {
"description": "Filter by name, tax id, e-mail or user id.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_clients(legal_code, description, status, page, per_page)
List the company's clients (customers): tax id (legalCode), name, address, e-mail, payment condition, price list, seller, active flag. Filter by tax id or name. GET /sale/GetClients.
Input Schema
{
"type": "object",
"properties": {
"legal_code": {
"description": "Client tax id (RUT), exactly as stored, e.g. 76.123.456-7.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"description": "Client name or part of it.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"status": {
"description": "Filter by state: all (default), active or inactive.",
"type": "string",
"enum": [
"all",
"active",
"inactive"
]
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_search_client_by_legal_code(legal_code)
Look up one client by tax id (RUT): name, taxpayer type, business line, region, province and commune. GET /Sale/SearchClientByLegalCode.
Input Schema
{
"type": "object",
"properties": {
"legal_code": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Client tax id (RUT), e.g. 76.123.456-7."
}
},
"required": [
"legal_code"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_client_credit(legal_code, file_id)
A client's credit position: credit amount, pending balance and the overdue-amount limit. GET /Accounting/GetClientCredit.
Input Schema
{
"type": "object",
"properties": {
"legal_code": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Client tax id (RUT), e.g. 76.123.456-7."
},
"file_id": {
"description": "Client file id as stored in Defontana (see list_clients). Defaults to the tax id.",
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"legal_code"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_products(code, description, status, page, per_page)
List the company's products (articles): code, name, unit, currency, sell price and stock. Filter by code, name or state. GET /sale/GetProducts.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Product code.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"description": "Product name or part of it.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"status": {
"description": "Filter by state: all (default), active or inactive.",
"type": "string",
"enum": [
"all",
"active",
"inactive"
]
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_services(code, description, page, per_page)
List the company's service items: code, description, sell price, unit and unit cost. GET /Sale/GetServices.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Service code.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"description": "Service description or part of it.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_sellers(code, page, per_page)
List the sales people (vendedores): code and name. GET /sale/GetSellers.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Seller code.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_shops(code, page, per_page)
List the points of sale (locales): code, description, address, business code and default storage. GET /sale/GetShops.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Shop code.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_storages(code, page, per_page)
List the storages (bodegas): code, description, whether sales are allowed and the active flag. GET /sale/GetStorages.
Input Schema
{
"type": "object",
"properties": {
"code": {
"description": "Storage code.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_storage_stock(storage_id, page, per_page)
Stock per product in one storage (bodega), with the price-list prices. Get storage codes from defontana_list_storages. GET /Sale/GetStorageStock.
Input Schema
{
"type": "object",
"properties": {
"storage_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Storage code."
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"storage_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_payment_conditions
The payment conditions (condiciones de pago): code, name, type, number of dues and days between payments. GET /Sale/GetPaymentConditions.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_taxes
The taxes the company uses (for example IVA): code, name, value and type. GET /Sale/GetTaxes.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_sales(from_date, to_date, document_type, page, per_page)
Sales documents (invoices, receipts, credit notes) issued between two dates, with client, seller, lines, net/exempt totals, tax and total. Optionally one document type. GET /Sale/GetSalebyDate.
Input Schema
{
"type": "object",
"properties": {
"from_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First emission date, yyyy-mm-dd."
},
"to_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last emission date, yyyy-mm-dd."
},
"document_type": {
"description": "Document type id, e.g. BOLETAVTAFEC (from the company's document types).",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"from_date",
"to_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_sale(document_type, number)
One sales document by document type and folio number: client, lines, totals, tax, attached documents and accounting voucher. GET /sale/GetSale.
Input Schema
{
"type": "object",
"properties": {
"document_type": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Document type id, e.g. XFVAELECT."
},
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Document folio number."
}
},
"required": [
"document_type",
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_orders(from_date, to_date, from_number, page, per_page)
Customer orders (pedidos) created between two dates: number, creation date and client. Use defontana_get_order for the detail. GET /Order/List.
Input Schema
{
"type": "object",
"properties": {
"from_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First creation date, yyyy-mm-dd."
},
"to_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last creation date, yyyy-mm-dd."
},
"from_number": {
"description": "Only orders with this number or higher.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"from_date",
"to_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_order(number)
One customer order by number: client, seller, shop, lines, discounts and totals. GET /Order/Get.
Input Schema
{
"type": "object",
"properties": {
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Order number."
}
},
"required": [
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_purchases(from_date, to_date, sii_document_code, page, per_page)
Purchase documents (supplier invoices) between two dates: provider, document type and number, total, emission date, SII status and whether it is integrated. Optionally one SII document code (33, 34, ...). GET /Purchase/List.
Input Schema
{
"type": "object",
"properties": {
"from_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First date, yyyy-mm-dd."
},
"to_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last date, yyyy-mm-dd."
},
"sii_document_code": {
"description": "SII document code, e.g. 33 (invoice) or 34 (exempt invoice).",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"from_date",
"to_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_purchase(provider, document_type, number)
One purchase document by provider code, document type and number, with lines and totals. GET /Purchase/Get.
Input Schema
{
"type": "object",
"properties": {
"provider": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Provider code (the provider's tax id as stored)."
},
"document_type": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Document type code."
},
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Document number."
}
},
"required": [
"provider",
"document_type",
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_purchase_orders(from_date, to_date, provider, status, page, ...)
Purchase orders (Γ³rdenes de compra) between two dates: provider, status, emission date, totals, series and number. Filter by provider name or tax id, or by status. GET /PurchaseOrder/List.
Input Schema
{
"type": "object",
"properties": {
"from_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "First date, yyyy-mm-dd."
},
"to_date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "Last date, yyyy-mm-dd."
},
"provider": {
"description": "Provider tax id or name.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"status": {
"description": "Order status (default all).",
"type": "string",
"enum": [
"all",
"entered",
"approved",
"partially_received",
"fully_received",
"closed",
"cancelled",
"approved_or_partially_received"
]
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"from_date",
"to_date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_purchase_order(number, series)
One purchase order by number (and series, if the company uses series): provider, lines, taxes and totals. GET /PurchaseOrder/Get.
Input Schema
{
"type": "object",
"properties": {
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Purchase order number."
},
"series": {
"description": "Purchase order series.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_providers(legal_code, description, status, page, per_page)
List the company's providers (suppliers): tax id, name, address, contact data and the active flag. Filter by tax id or name. GET /PurchaseOrder/GetProviders.
Input Schema
{
"type": "object",
"properties": {
"legal_code": {
"description": "Provider tax id (RUT).",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"description": "Provider name or part of it.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"status": {
"description": "Filter by state: all (default), active or inactive.",
"type": "string",
"enum": [
"all",
"active",
"inactive"
]
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_account_plan
The chart of accounts (plan de cuentas) as a tree: account code, description and the related IFRS account. GET /Accounting/GetAccountPlan.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_vouchers(voucher_type, fiscal_year, from_date, to_date, user, ...)
Accounting vouchers (comprobantes) with type, fiscal year, date, entry date, user and number. Filter by type, fiscal year, date range, entering user or number range. Use defontana_get_voucher for the lines. GET /Accounting/GetVoucherList.
Input Schema
{
"type": "object",
"properties": {
"voucher_type": {
"description": "Voucher type id, e.g. VENTASELEC.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"fiscal_year": {
"description": "Fiscal year, e.g. 2026.",
"type": "integer",
"minimum": 1900,
"maximum": 2200
},
"from_date": {
"description": "Vouchers dated on or after this day, yyyy-mm-dd.",
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
},
"to_date": {
"description": "Vouchers dated on or before this day, yyyy-mm-dd.",
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
},
"user": {
"description": "Only vouchers entered by this user.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"from_number": {
"description": "Voucher number from.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"to_number": {
"description": "Voucher number to.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_voucher(voucher_type, number, fiscal_year)
One accounting voucher with its header and every line (account, debit, credit, file id, document, business center, classifiers). GET /Accounting/GetVoucher.
Input Schema
{
"type": "object",
"properties": {
"voucher_type": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Voucher type id, e.g. EGRESO."
},
"number": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Voucher number."
},
"fiscal_year": {
"type": "integer",
"minimum": 1900,
"maximum": 2200,
"description": "Fiscal year of the voucher."
}
},
"required": [
"voucher_type",
"number",
"fiscal_year"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_get_business_center(code)
One business center (centro de negocio) by code: description, active and postable flags. GET /Accounting/GetBusinessCenter.
Input Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Business center code."
}
},
"required": [
"code"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_receivables(file_id, page, per_page)
Open (unpaid) sales documents of one client: document type, series, number, due date and amount. The client is the file id, usually the tax id. GET /Accounting/GetDocumentsToPay.
Input Schema
{
"type": "object",
"properties": {
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Client file id (tax id as stored)."
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}π’defontana_list_payables(file_id, page, per_page)
Open (unpaid) purchase documents of one provider: document type, series, number, due date and amount. The provider is the file id, usually the tax id. GET /Accounting/GetPurchaseDocumentsToPay.
Input Schema
{
"type": "object",
"properties": {
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Provider file id (tax id as stored)."
},
"page": {
"description": "Page number, from 1 (default 1). Pass the previous reply's paging.next_page.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100000
},
"per_page": {
"description": "Results per page, 1-100 (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 100
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence