Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CIFNoDefault company CIF. Can also be set at runtime via the set_cif tool
OBLIO_API_EMAILYesYour Oblio account email
OBLIO_API_SECRETYesAPI secret from Oblio > Setari > Date Cont

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_documentA

Creates an invoice (factura), proforma, or delivery notice (aviz) in Oblio via POST /api/docs/{type}. Required fields: cif, client (with at least name), seriesName, issueDate, and at least one product. Optional: inline payment via collect, reference to existing proforma/notice via referenceDocument, stock deduction via useStock, auto e-Factura submission via spvExtern, and idempotencyKey to prevent duplicates. Returns: seriesName, number, and a link to view/download the created document.

get_documentA

Retrieves a single document from Oblio via GET /api/docs/{type}. Returns: documentType, seriesName, number, link (view/download URL), and collects array (list of payments with issueDate, type, number, value).

delete_documentA

Permanently deletes a document from Oblio via DELETE /api/docs/{type}. Constraint: only the last document in a series can be deleted. This cannot be undone. Set deleteCollect to true to also remove the associated payment (invoices only). Returns: documentType, seriesName, number of the deleted document.

cancel_documentA

Cancels (annuls) a document in Oblio via PUT /api/docs/{type}/cancel. The document is marked as void but remains in the system. Returns: documentType, seriesName, number, and link to the cancelled document.

restore_documentA

Restores a previously cancelled document in Oblio via PUT /api/docs/{type}/restore. Reverses a cancellation and makes the document active again. Returns: documentType, seriesName, number, and link to the restored document.

get_nomenclaturesA

Fetches reference/lookup data from Oblio via GET /api/nomenclature/{type}. Types and their returns:

  • "companies": returns cif, company name, userTypeAccess for each account company

  • "clients": returns cif, name, rc, code, address, state, city, iban, bank, email, phone, vatPayer. Filterable by name, clientCif

  • "products": returns name, code, description, measuringUnit, productType, price, currency, vatName, vatPercentage, vatIncluded, and stock[] for stocked items. Filterable by name, code, management, workStation

  • "vat_rates": returns name, percent, default for each VAT rate

  • "series": returns type (Factura/Proforma/Aviz), name, start, next, default for each document series

  • "languages": returns code and name for each configured language

  • "management": returns management, workStation, managementType for each stock location Paginated: max 250 results per page, use offset filter (0, 250, 500...) for next pages.

collect_paymentA

Records a payment (incasare) against an existing invoice via PUT /api/docs/invoice/collect. Identifies the invoice by seriesName + number. The collect object specifies payment method (type), document number, optional value (defaults to full invoice total), and optional issueDate. Available payment types: Chitanta, Bon fiscal, Bon fiscal card, Alta incasare numerar, Ordin de plata, Mandat postal, Card, CEC, Bilet ordin, Alta incasare banca, Ramburs. Returns: documentType, seriesName, number, link, and collects array with all payments on the invoice.

list_documentsA

Lists documents from Oblio via GET /api/docs/{type}/list with filters and pagination. Each result contains: id, draft, canceled, seriesName, number, issueDate, dueDate, precision, currency, exchangeRate, total, collected (0=unpaid, 1=paid), mentions, useStock, type, link, einvoiceStatus (text, sent, code), and client object (clientId, cif, name, rc, code, address, etc.). Optionally include product lines (withProducts=1), payment details (withCollects=1), or e-Invoice SPV status (withEinvoiceStatus=1). Max 100 results per page.

create_einvoiceA

Submits an existing invoice to Romania's SPV system via POST /api/docs/einvoice. The invoice must already exist in Oblio. Returns: text (explanation), sent (boolean), code (-1=not sent, 2=errors, 0=processing, 1=success).

get_einvoice_archiveA

Downloads the e-Invoice archive (XML) from Romania's SPV system via GET /api/docs/einvoice. The invoice must have been previously submitted to SPV. Returns the SPV archive data for the specified invoice.

set_cifA

Sets the company CIF (Cod de Identificare Fiscala / tax ID) used for all subsequent Oblio API requests. Must be called before other tools if the CIF environment variable is not configured. The CIF identifies which company's data to access (e.g. RO37311090).

get_cifA

Returns the currently configured company CIF (tax ID) used for Oblio API requests.

Prompts

Interactive templates invoked by user choice

NameDescription
createInvoiceGenerate an invoice in Oblio with client details, a product, price and quantity.
createProformaGenerate a proforma document in Oblio with client details, a product, price and quantity.
createNoticeGenerate a delivery notice (aviz) in Oblio with client details, a product, price and quantity.
getInvoiceRetrieve an invoice by series name and number.
getProformaRetrieve a proforma by series name and number.
getNoticeRetrieve a delivery notice (aviz) by series name and number.
cancelInvoiceCancel (annul) an invoice. The document is marked as void but not deleted.
cancelProformaCancel (annul) a proforma document.
cancelNoticeCancel (annul) a delivery notice.
restoreInvoiceRestore a previously cancelled invoice, making it active again.
restoreProformaRestore a previously cancelled proforma document.
restoreNoticeRestore a previously cancelled delivery notice.
deleteInvoicePermanently delete the last invoice in a series. This cannot be undone.
deleteProformaPermanently delete the last proforma in a series. This cannot be undone.
deleteNoticePermanently delete the last delivery notice in a series. This cannot be undone.
getProductsNomenclatureLook up products/services in the Oblio nomenclature by name or code.
getClientsNomenclatureLook up clients in the Oblio nomenclature by name or CIF.
getVatRatesNomenclatureList all VAT rates configured for your company in Oblio.
getCompaniesNomenclatureList all companies linked to the Oblio account.
getDocumentSeriesNomenclatureList all document series (invoice, proforma, notice) configured for your company.
getLanguagesNomenclatureList foreign languages configured for your company in Oblio.
getManagementNomenclatureList stock management locations (gestiuni) configured for your company. Only works if stock is enabled.
collectPaymentRecord a payment against an existing invoice.
getInvoiceListSearch and list invoices with various filters (date range, client, status, etc.).
sendInvoiceToSpvSubmit an invoice to Romania's SPV system to create an e-Factura.
getEinvoiceFromSpvDownload the e-Invoice archive from SPV for a specific invoice.
setCifConfigure the company CIF (tax ID) for all subsequent API requests.
getCifCheck which company CIF is currently configured.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/valentinludu/oblio-mcp'

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