Skip to main content
Glama
1C OData MCP

1C OData MCP

Дебиторская задолженность

read.analytics.get_debtors
Read-only

Retrieve accounts receivable balances by counterparty from 1C accounting data, filtered by organization or as-of date. Use aging and overdue options to identify overdue debts and payment terms.

Instructions

Кто и сколько должен компании: сальдо счёта 62 (расчёты с покупателями) из регистра бухгалтерии Хозрасчетный, сгруппированное по контрагентам. Дебетовое сальдо = долг клиента, кредитовое = полученные авансы (вычитается). Можно ограничить организацией. По умолчанию берётся текущее сальдо; параметром asOf=YYYY-MM-DD можно получить дебиторку на конец указанной даты (для аудита/исторических отчётов). Возвращает только долг > 0. aging=true — по срокам: просрочено / в срок / срок не задан, просрочка по дням, возраст долга от даты документа (byAge — работает и без срока в договоре) и документы расчётов; срок оплаты = дата документа + дни из договора (флаг «Установлен срок оплаты»). overdueOnly=true — «кто просрочил оплату», по убыванию просрочки (без сроков в договорах — долги старше 60 дней, fallback). olderThanYear — долг старше года: часто незакрытые взаиморасчёты, а не реальный долг.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read.analytics.get_debtors"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoДата сальдо — на конец этой даты (без параметра — текущее) (YYYY-MM-DD)
agingNoРазбивка по срокам: просрочено / в срок / срок не задан, просрочка по дням (1-30, 31-60, 61-90, 90+), возраст долга от даты документа (byAge: 0-30 … 90+) и документы расчётов с датой оплаты по договору
limitNoСколько контрагентов вернуть
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
overdueOnlyNoТолько контрагенты с просрочкой, по убыванию просрочки (включает aging)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
defaultTermDaysNoСрок оплаты в днях для договоров, где он не задан. Только если пользователь его назвал — не угадывать

Output Schema

NameRequiredDescriptionDefault
asOfNo
scanYes
countYes
debtorsYes
accountsYes
databaseYes
organizationNo
totalReceivableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover readOnly/openWorld, and the description goes well beyond them: signs of the balance, the fact that advances are subtracted, that rows are only returned when debt > 0, that overdueOnly implicitly enables aging, and the fallback that counterparties without contract terms are flagged overdue past 60 days. It also warns that year-plus debt is usually unclosed settlement rather than real debt, which changes how an agent should present results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core definition ('Кто и сколько должен компании'), then progressively narrows to optional modes. It is dense and run-on in places with heavy comma chaining, and the trailing olderThanYear sentence is both the longest and the one that does not map to a real parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 optional parameters, a full output schema and read-only annotations, the description covers what remains: what the numbers mean, what is filtered out, how each mode alters output, and the caveat about stale debt. The only gap is the phantom olderThanYear flag, which is a mismatch rather than missing coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description adds meaning: asOf is the end of the given date, defaultTermDays must not be guessed, and defaultTermDays only applies where the contract sets no term. One defect: it advertises 'olderThanYear', which does not exist among the 8 schema properties, so an agent may try to pass an unsupported argument.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a concrete verb+resource+scope: balance of account 62 (customer settlements) from the Хозрасчетный register, grouped by counterparty, with debit = customer debt and credit = advances received. An agent can tell this apart from the mirror tool get_creditors and from generic turnover tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit context for the major modes: default is the current balance, asOf=YYYY-MM-DD for audit/historical snapshots, overdueOnly='who is late paying', aging for term buckets and debt age. The database parameter even instructs the agent to ask the user when several bases exist. It stops short of naming sibling alternatives (e.g. get_creditors, get_unpaid_invoices) for adjacent questions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools