Skip to main content
Glama
1C OData MCP

1C OData MCP

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

read.analytics.get_creditors
Read-only

Retrieves outstanding creditor balances by counterparty from 1C accounting data, showing only amounts owed, with optional aging and overdue filtering.

Instructions

Кому и сколько должна компания: сальдо счёта 60 (расчёты с поставщиками) из регистра бухгалтерии Хозрасчетный по контрагентам. Кредитовое сальдо = наш долг, дебетовое = наши авансы поставщику (вычитаются). Возвращает только долг > 0. asOf=YYYY-MM-DD — на конец даты. aging=true — по срокам: что уже пора платить (просрочено), что в срок, где срок не задан, с документами поступления и датой оплаты по договору; overdueOnly=true — только просроченные. olderThanYear — долг старше года: часто незакрытые взаиморасчёты, а не реальный долг. Расчёты по счёту 76 (аренда, связь и прочие) сюда не входят — для них ОСВ по счёту 76.

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_creditors"
  }
}

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
accountsYes
databaseYes
creditorsYes
organizationNo
totalPayableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only give readOnlyHint and openWorldHint, so the description carries most of the burden and does so well: it discloses the sign semantics, that only debt > 0 is returned, and what the aging output actually contains (buckets by days, document-level detail with contractual payment dates). It does not mention pagination behavior or how large result sets are truncated, which is the main remaining gap.

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?

The content is dense but front-loaded: who/what first, sign convention second, mode switches after. Most sentences earn their place, though the trailing sentence about older-than-a-year debt and the nonexistent olderThanYear flag reads as a leftover note rather than actionable invocation guidance.

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

Completeness4/5

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

For an 8-parameter read tool with an output schema and annotations present, the description covers the things structured fields cannot: computation logic, the meaning of negative/positive balances, and which related need belongs to another report. The only incompleteness is the absent defaultTermDays discussion and the phantom olderThanYear reference.

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?

With 100% schema coverage the baseline is 3, and the description earns extra by explaining what aging and overdueOnly actually compute and how asOf is interpreted (balance at end of the date). However it references an "olderThanYear" flag that does not exist in the schema, and it never mentions defaultTermDays, which the schema itself flags as guess-sensitive — that inconsistency weakens the parameter mapping.

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?

The description names a specific verb and resource ("Кому и сколько должна компания") and pins the data source precisely: balance of account 60 from the Хозрасчетный accounting register, broken down by counterparty. It also distinguishes itself from the receivables sibling by defining the sign convention (credit = our debt, debit = our advances) and explicitly excludes account 76 with a pointer to a different report.

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

Usage Guidelines5/5

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

It tells the agent when each mode applies: aging=true for payment-term breakdown, overdueOnly=true for overdue-only with sorting, olderThanYear for stale debt — and it names the boundary case that a year-plus balance is often unsettled netting rather than real debt. It also states an explicit exclusion (account 76: rent, telecom) and routes that need elsewhere.

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