Skip to main content
Glama
1C OData MCP

1C OData MCP

Неоплаченные счета покупателям

read.analytics.get_unpaid_invoices
Read-only

Retrieve customer invoices for a period with payment, shipment, balance, and unpaid/partial/paid status to track receivables and reconcile open balances.

Instructions

Счета на оплату покупателям за период и их оплата: сумма счёта, оплачено (по регистру «Оплата счетов» — платежи со ссылкой на счёт), остаток, отгружено по счёту (реализации со ссылкой на счёт), статус unpaid / partial / paid / overpaid, сколько дней счёту. status=open (по умолчанию) — неоплаченные и частично оплаченные, с текущим сальдо покупателя по 62 (customerBalance) для сверки; all — все. Счета старше 90 дней видны только с явным from. Период — по дате счёта; без from — последние 90 дней.

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

Input Schema

NameRequiredDescriptionDefault
toNoСчета по дату (без параметра — сегодня) (YYYY-MM-DD)
fromNoСчета с даты (без параметра — 90 дней назад) (YYYY-MM-DD)
limitNoСколько счетов вернуть
offsetNoС какой строки начать (0 — с начала); значение из nextOffset прошлого ответа
statusNoopen | allopen
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.

Output Schema

NameRequiredDescriptionDefault
scanYes
countYes
periodYes
statusYes
databaseYes
invoicesYes
totalPaidYes
totalAmountYes
totalUnpaidYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the read-only nature is covered; the description adds substantive context beyond that — which register supplies the paid amount, that customerBalance comes from account 62, and the 90-day visibility rule that silently truncates results. It does not describe paging behavior beyond the offset parameter or any performance limits, so it is strong but not exhaustive.

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 definition is a single dense but well-ordered paragraph: purpose and returned fields first, then status semantics, then the 90-day and period defaults. Every clause carries information, though the listing of fields is somewhat compressed and could be split for readability.

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?

For a 7-parameter read-only analytics tool with an output schema, the description covers what the rows contain, how paid and shipped amounts are derived, how status is classified, and the default date window. Nothing an agent needs to invoke it correctly or interpret the result appears to be missing.

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 description coverage is 100%, so the baseline is 3; the description earns above that by explaining that status=open means unpaid plus partially paid and adds customerBalance, that the period is taken by invoice date, and that from defaults to 90 days back. It does not elaborate on limit/offset or the organization filter, but the schema already covers those.

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

Purpose4/5

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

The description states a specific resource (customer payment invoices for a period) and enumerates the exact fields returned: invoice amount, paid amount from the «Оплата счетов» register, remainder, shipped amount from realizations, status unpaid/partial/paid/overpaid, and invoice age. It is clearly distinct from the sibling read.analytics.get_debtors / get_partner_settlements, though it never names an alternative tool, so it falls just short of a 5.

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?

It gives clear conditions for the two main usage modes: status=open (default) returns unpaid and partially paid invoices with customerBalance for reconciliation, status=all returns everything, and invoices older than 90 days require an explicit from. It does not state when to prefer a sibling tool (e.g. get_debtors or get_partner_settlements) instead, so there is no explicit exclusion guidance.

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