Sienge MCP by usefulapi
v1.6.1Read customers, sales contracts, receivables, purchase orders and units; create customers in Sienge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sienge_list_customers
List the customers of the Sienge account, ordered by id. Filter by CPF or CNPJ, enterprise, or create and change dates. GET /customers.
| Parameter | Type | Description |
|---|---|---|
cnpj | string | Only the customer with this CNPJ (14 digits). |
cpf | string | Only the customer with this CPF (11 digits). |
createdAfter | string | Created on or after this date (yyyy-MM-dd). |
createdBefore | string | Created on or before this date (yyyy-MM-dd). |
enterpriseId | integer | Only customers linked to this enterprise id. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
modifiedAfter | string | Changed on or after this date (yyyy-MM-dd). |
modifiedBefore | string | Changed on or before this date (yyyy-MM-dd). |
offset | integer | Rows to skip, from 0. |
onlyActive | boolean | Only active customers. |
sienge_get_customer
Show one customer with its phones, addresses, agents, procurators, spouse and family income. GET /customers/{customerId}.
| Parameter | Type | Description |
|---|---|---|
customerId * | integer | Customer id. |
sienge_create_customer
Create a customer: a natural person (personType F, needs cpf and sex) or a legal person (personType J, needs cnpj). POST /customers. The call is never retried: check sienge_list_customers before you create the same customer again.
| Parameter | Type | Description |
|---|---|---|
name * | string | Full name, or the company name for a legal person. |
personType * | string | F = natural person (needs cpf and sex). J = legal person (needs cnpj). |
cnpj | string | CNPJ of a legal person (14 digits). |
cpf | string | CPF of a natural person (11 digits). |
email | string | E-mail address. |
sex | string | Sex of a natural person: F or M. |
typeId | integer | Customer type id from the customer-type register of the Sienge account. |
sienge_list_companies
List the companies (business units) of the Sienge account, ordered by id. GET /companies.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
sienge_list_enterprises
List the enterprises (construction projects) of the account. Filter by company or type. GET /enterprises.
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Only enterprises of this company id. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
onlyBuildingsEnabledForIntegration | boolean | Only enterprises enabled for integration. |
receivableRegister | string | Receivables register used by the enterprise. |
type | integer | Enterprise type code, 1 to 4, as the Sienge register defines it. |
sienge_list_creditors
List the creditors (suppliers and other payees), filtered by CPF, CNPJ or name. GET /creditors.
| Parameter | Type | Description |
|---|---|---|
cnpj | string | Only the creditor with this CNPJ (14 digits). |
cpf | string | Only the creditor with this CPF (11 digits). |
creditor | string | Only creditors whose name contains this text. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
sienge_get_creditor
Show one creditor with its contacts, phones, address, bank data and tax classification. GET /creditors/{creditorId}.
| Parameter | Type | Description |
|---|---|---|
creditorId * | integer | Creditor id. |
sienge_list_sales_contracts
List sales contracts, filtered by customer, company, enterprise, unit, number or dates. GET /sales-contracts.
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Only contracts of this company id. |
createdAfter | string | Created on or after this date (yyyy-MM-dd). |
createdBefore | string | Created on or before this date (yyyy-MM-dd). |
customerId | integer | Only contracts of this customer id. |
enterpriseId | integer | Only contracts of this enterprise id. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
modifiedAfter | string | Changed on or after this date (yyyy-MM-dd). |
modifiedBefore | string | Changed on or before this date (yyyy-MM-dd). |
number | string | Only the contract with this number. |
offset | integer | Rows to skip, from 0. |
unitId | integer | Only contracts of this unit id. |
sienge_get_sales_contract
Show one sales contract with its customers, units, payment conditions, brokers and commissions. GET /sales-contracts/{salesContractId}.
| Parameter | Type | Description |
|---|---|---|
salesContractId * | integer | Sales contract id. |
sienge_list_receivable_bills
List the receivable bills (accounts receivable titles) of one customer. GET /accounts-receivable/receivable-bills.
| Parameter | Type | Description |
|---|---|---|
customerId * | integer | Customer id whose receivable bills to list (required). |
companyId | integer | Only bills of this company id. |
costCenterId | integer | Only bills of this cost center id. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
paidOff | boolean | true = only paid bills, false = only open bills. |
sienge_list_receivable_installments
List the installments (parcelas) of one receivable bill with due dates and amounts. GET /accounts-receivable/receivable-bills/{receivableBillId}/installments.
| Parameter | Type | Description |
|---|---|---|
receivableBillId * | integer | Receivable bill id (from sienge_list_receivable_bills). |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
sienge_list_purchase_orders
List purchase orders by order date, status, approval, supplier or building. GET /purchase-orders.
| Parameter | Type | Description |
|---|---|---|
authorized | boolean | true = only authorized orders. |
buildingId | integer | Only orders for this enterprise (building) id. |
endDate | string | Order date to (yyyy-MM-dd). |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
offset | integer | Rows to skip, from 0. |
startDate | string | Order date from (yyyy-MM-dd). |
status | string | Delivery status. |
statusApproval | string | Approval status. |
supplierId | integer | Only orders of this supplier (creditor) id. |
sienge_get_purchase_order
Show one purchase order: status, supplier, building, totals and payment condition. GET /purchase-orders/{purchaseOrderId}.
| Parameter | Type | Description |
|---|---|---|
purchaseOrderId * | integer | Purchase order id. |
sienge_list_purchase_invoices
List purchase invoices (notas fiscais de compra) by issue period, company, supplier, document or number. GET /purchase-invoices.
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Only invoices of this company id. |
documentId | string | Only the invoice with this document id. |
endDate | string | Issue date to (yyyy-MM-dd). |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
number | string | Only the invoice with this number. |
offset | integer | Rows to skip, from 0. |
series | string | Only invoices of this series. |
startDate | string | Issue date from (yyyy-MM-dd). |
supplierId | integer | Only invoices of this supplier (creditor) id. |
sienge_list_units
List the real-estate units (imóveis) of the account, ordered by id descending. GET /units.
| Parameter | Type | Description |
|---|---|---|
additionalData | string | ALL = include extra unit data, NONE = leave it out. |
enterpriseId | integer | Only units of this enterprise id. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
name | string | Only units whose name contains this text. |
offset | integer | Rows to skip, from 0. |
sienge_get_unit
Show one unit with its enterprise, areas, address, evaluations and groupings. GET /units/{unitId}.
| Parameter | Type | Description |
|---|---|---|
unitId * | integer | Unit id. |
sienge_list_departments
List the departments of the account, optionally filtered by name or active state. GET /departments.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true = only active departments. |
limit | integer | Rows per page, 1 to 200 (the API default is 100). |
name | string | Only departments whose name contains this text. |
offset | integer | Rows to skip, from 0. |