Sienge MCP by usefulapi

v1.6.1
io.usefulapi/sienge Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
cnpjstringOnly the customer with this CNPJ (14 digits).
cpfstringOnly the customer with this CPF (11 digits).
createdAfterstringCreated on or after this date (yyyy-MM-dd).
createdBeforestringCreated on or before this date (yyyy-MM-dd).
enterpriseIdintegerOnly customers linked to this enterprise id.
limitintegerRows per page, 1 to 200 (the API default is 100).
modifiedAfterstringChanged on or after this date (yyyy-MM-dd).
modifiedBeforestringChanged on or before this date (yyyy-MM-dd).
offsetintegerRows to skip, from 0.
onlyActivebooleanOnly active customers.

sienge_get_customer

Show one customer with its phones, addresses, agents, procurators, spouse and family income. GET /customers/{customerId}.

ParameterTypeDescription
customerId *integerCustomer 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.

ParameterTypeDescription
name *stringFull name, or the company name for a legal person.
personType *stringF = natural person (needs cpf and sex). J = legal person (needs cnpj).
cnpjstringCNPJ of a legal person (14 digits).
cpfstringCPF of a natural person (11 digits).
emailstringE-mail address.
sexstringSex of a natural person: F or M.
typeIdintegerCustomer 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.

ParameterTypeDescription
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.

sienge_list_enterprises

List the enterprises (construction projects) of the account. Filter by company or type. GET /enterprises.

ParameterTypeDescription
companyIdintegerOnly enterprises of this company id.
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.
onlyBuildingsEnabledForIntegrationbooleanOnly enterprises enabled for integration.
receivableRegisterstringReceivables register used by the enterprise.
typeintegerEnterprise 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.

ParameterTypeDescription
cnpjstringOnly the creditor with this CNPJ (14 digits).
cpfstringOnly the creditor with this CPF (11 digits).
creditorstringOnly creditors whose name contains this text.
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.

sienge_get_creditor

Show one creditor with its contacts, phones, address, bank data and tax classification. GET /creditors/{creditorId}.

ParameterTypeDescription
creditorId *integerCreditor id.

sienge_list_sales_contracts

List sales contracts, filtered by customer, company, enterprise, unit, number or dates. GET /sales-contracts.

ParameterTypeDescription
companyIdintegerOnly contracts of this company id.
createdAfterstringCreated on or after this date (yyyy-MM-dd).
createdBeforestringCreated on or before this date (yyyy-MM-dd).
customerIdintegerOnly contracts of this customer id.
enterpriseIdintegerOnly contracts of this enterprise id.
limitintegerRows per page, 1 to 200 (the API default is 100).
modifiedAfterstringChanged on or after this date (yyyy-MM-dd).
modifiedBeforestringChanged on or before this date (yyyy-MM-dd).
numberstringOnly the contract with this number.
offsetintegerRows to skip, from 0.
unitIdintegerOnly 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}.

ParameterTypeDescription
salesContractId *integerSales contract id.

sienge_list_receivable_bills

List the receivable bills (accounts receivable titles) of one customer. GET /accounts-receivable/receivable-bills.

ParameterTypeDescription
customerId *integerCustomer id whose receivable bills to list (required).
companyIdintegerOnly bills of this company id.
costCenterIdintegerOnly bills of this cost center id.
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.
paidOffbooleantrue = 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.

ParameterTypeDescription
receivableBillId *integerReceivable bill id (from sienge_list_receivable_bills).
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.

sienge_list_purchase_orders

List purchase orders by order date, status, approval, supplier or building. GET /purchase-orders.

ParameterTypeDescription
authorizedbooleantrue = only authorized orders.
buildingIdintegerOnly orders for this enterprise (building) id.
endDatestringOrder date to (yyyy-MM-dd).
limitintegerRows per page, 1 to 200 (the API default is 100).
offsetintegerRows to skip, from 0.
startDatestringOrder date from (yyyy-MM-dd).
statusstringDelivery status.
statusApprovalstringApproval status.
supplierIdintegerOnly 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}.

ParameterTypeDescription
purchaseOrderId *integerPurchase order id.

sienge_list_purchase_invoices

List purchase invoices (notas fiscais de compra) by issue period, company, supplier, document or number. GET /purchase-invoices.

ParameterTypeDescription
companyIdintegerOnly invoices of this company id.
documentIdstringOnly the invoice with this document id.
endDatestringIssue date to (yyyy-MM-dd).
limitintegerRows per page, 1 to 200 (the API default is 100).
numberstringOnly the invoice with this number.
offsetintegerRows to skip, from 0.
seriesstringOnly invoices of this series.
startDatestringIssue date from (yyyy-MM-dd).
supplierIdintegerOnly 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.

ParameterTypeDescription
additionalDatastringALL = include extra unit data, NONE = leave it out.
enterpriseIdintegerOnly units of this enterprise id.
limitintegerRows per page, 1 to 200 (the API default is 100).
namestringOnly units whose name contains this text.
offsetintegerRows to skip, from 0.

sienge_get_unit

Show one unit with its enterprise, areas, address, evaluations and groupings. GET /units/{unitId}.

ParameterTypeDescription
unitId *integerUnit id.

sienge_list_departments

List the departments of the account, optionally filtered by name or active state. GET /departments.

ParameterTypeDescription
activebooleantrue = only active departments.
limitintegerRows per page, 1 to 200 (the API default is 100).
namestringOnly departments whose name contains this text.
offsetintegerRows to skip, from 0.