Skip to content
Naditu
Get started

Connecting Logo Tiger and Netsis ERP to AI safely

How to connect Logo Tiger, GO and Netsis 3 to AI agents: SQL read guards, Logo Objects REST limits, TRCODE traps and human-approved write gates.

Naditu4 min read

Industrial and trading companies across Turkiye and neighboring markets run their core ledgers, inventory, and production orders on Logo Tiger, Logo GO, or Logo Netsis 3. When IT teams start evaluating Logo Tiger and Netsis ERP AI integrations, they quickly discover two facts on the ground. First, no ready-made vendor MCP server currently exposes live Tiger or Netsis business tables out of the box. Second, connecting a raw SQL agent directly to LG_ or TBL tables without a semantic contract produces confident, silent math errors. Getting reliable answers requires pairing guarded read-only SQL views with application-layer write gates.

What exists in public repositories for Logo and MCP today

Reviewing public GitHub organizations, npm, Packagist, and NuGet packages separates vendor code from community integration layers. In Logo's verified GitHub organization, the only public chatbot repository is a 2019 Python retrieval library built on word2vec and character tri-grams for internal HR scenarios, with zero connection to ERP tables or REST services. We found a similar pattern across global suites in Does SAP ship an S/4HANA MCP server for business data?.

On the open-source side, community projects point to two distinct integration surfaces that an enterprise AI architecture must respect:

  • Guarded read-only SQL over Microsoft SQL Server: analytical queries and receivables aging run against read replicas or restricted db_datareader accounts, wrapping SQL parsers around canonical entities rather than exposing raw physical table names to the model.
  • Application-level write interfaces (Unity Objects and Logo Objects REST Service): writing orders, dispatches, or AR/AP vouchers safely goes through COM-based Unity Objects (LObjects.exe) or the HTTP Logo Objects REST Service on /api/v1, which enforce numbering series, tax rules, and campaign calculations instead of raw table inserts.

Why raw Text-to-SQL breaks on Tiger, GO, and Netsis schemas

Handing raw MSSQL credentials to a general language model fails immediately on Logo schemas because table names and numeric codes depend on runtime context that the database catalog never declares.

  1. Firm and fiscal-period table sharding: in Tiger and GO, master cards sit in firm-level tables such as LG_001_ITEMS and LG_001_CLCARD, whereas orders, stock movements, and invoices sit in period-suffixed tables such as LG_001_01_ORFICHE and LG_001_01_STLINE. Across fiscal year rollovers, an unguided model either queries last year's period table or drops open carry-over balances.
  2. Context-dependent TRCODE and MODULENR integers: the same document carries different numeric codes across tables. A wholesale sales invoice is TRCODE = 8 inside INVOICE, yet appears in the current-account ledger CLFLINE as TRCODE = 38 paired with MODULENR = 4. Even open-source SQL profiles disagree on whether ORFICHE.TRCODE = 1 or 2 represents sales orders until checked against a company's live installation.
  3. Polymorphic foreign keys and Netsis string codes: in Tiger, STLINE.STOCKREF points to an item card when LINETYPE = 0, a promotion when 1, and a service card when 4. In Netsis 3, tables such as TBLSIPAMAS, TBLSIPATRA, TBLCASABIT, and TBLCAHAR rely on character type flags like FTIRSIP and legacy codepage conventions where Turkish dotted and dotless letters silently break string joins.
Firm-period table prefixes, polymorphic reference columns, and context-dependent TRCODE integers require an explicit semantic contract before any agent writes SQL.

Why Logo Objects REST is built for writes, not exploratory analytics

Teams sometimes try to bypass SQL complexity by routing all AI agent reads through the Logo Objects REST Service. Client SDKs document 156 REST endpoints authenticated with OAuth2 tokens per firm number, supporting OData-style q filters and expandLevel parameters.

In practice, REST endpoints excel at transactional writes while struggling with analytical agent questions. Documented pagination caps responses at 25 records per page in standard examples, field names arrive in version-dependent uppercase payloads, and answering a cross-module plant question would require hundreds of sequential HTTP calls. Conversely, writing directly to SQL tables such as SERILOTN or STLINE bypasses inventory locks, accounting links, and UBL-TR e-invoice validation.

Read replicas answer multi-table analytical questions at SQL speed while approved operational mutations route through Logo Objects REST or Unity Objects.

A production pattern for Logo Tiger and Netsis AI agents

Combining the strengths of both surfaces gives manufacturing and distribution teams a clean, auditable architecture:

  • Abstract firm and period tables behind business objects: map LG_XXX_XX_ORFLINE or TBLSIPATRA once into canonical Customer, SalesOrder, and ReceivableAging concepts, verifying TRCODE directions against your own live ledger.
  • Enforce four-layer SQL read guards: restrict read connections to a read replica or db_datareader login, block system functions such as OPENROWSET, cap row counts, and mask cost columns by user role.
  • Validate UBL-TR and route writes through human gates: keep e-Fatura and e-Irsaliye checks deterministic, hold every proposed order or slip as a human-reviewed draft, and execute confirmed writes exclusively through Logo Objects REST or official governed ERP connectors. Retailers and hybrid apparel brands apply the same split-lane pattern in Connecting Nebim V3 and Nebim ERA data to AI.

Sources

  1. Logo Group Public Repositories (logous-chatbot), logo-group on GitHub
  2. Logo Tiger and GO SQL Table Descriptions Repository, Open-source SQL reference on GitHub
  3. Logo Objects REST Service TypeScript Client Metadata, npm public registry
  4. GIB e-Fatura and UBL-TR Technical Guidelines, Turkish Revenue Administration (GIB)

More on ERP data for AI: How to get ERP, CRM and plant data into a shape an AI assistant can use: undeclared links, status codes, and data that lives in several systems.

Keep reading

Follow what we ship.

New connectors, product updates and what we learn rolling AI out in enterprises, sent to your inbox.

Book a demo

Tell us where to reach you and we will reply with times.