Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать соглашение (УТ)

write.catalog.create_agreement

Creates a client or supplier agreement in 1C Trade/ERP with a dry-run preview by default; pass confirm=true to save the record.

Instructions

Соглашение с клиентом или поставщиком — условия продаж и закупок в Управлении торговлей, КА и ERP (в Бухгалтерии соглашений нет). Партнёр берётся из контрагента. Сторону (side) НЕ выбирайте сами — уточните у пользователя. По умолчанию предпросмотр (dry-run); создание — при confirm=true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "side": "<side>",
      "counterpartyRef": "<counterpartyRef>",
      "name": "<name>"
    },
    "name": "write.catalog.create_agreement"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата YYYY-MM-DD (по умолчанию — день предпросмотра)
nameYesНаименование соглашения
sideYesС клиентом или с поставщиком — спросить у пользователя
numberNoНомер (необязательно)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
currencyNoВалюта — код или название (по умолчанию рубль)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
priceKindRefNoТолько с клиентом: Ref_Key вида цен продажи (цены в документах — по нему)
useContractsNoРасчёты по договорам контрагентов (по умолчанию да — так почти у всех соглашений)
counterpartyRefYesRef_Key контрагента
pricesIncludeVatNoЦена включает НДС (по умолчанию нет)

Output Schema

NameRequiredDescriptionDefault
refNo
codeNo
noteNo
notesNo
dryRunNo
createdNo
payloadNo
retriedNo
warningNo
databaseNo
replayedNo
entitySetNo
reconciledNo
willCreateNo
descriptionNo
operationIdNo
deletionMarkNo
writableBaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds the crucial behavior that nothing is written by default and that a preview runs first, so an agent knows a confirm=true call is required for mutation. Retry/idempotency and duplicate-avoidance mechanics are present in the schema's confirm/operationId fields rather than the description text, which keeps it from a 5.

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?

Four short sentences with no filler, moving from domain scope to the partner mapping to the mandatory clarification to the dry-run safety model. The side rule overlaps the schema text, a minor redundancy, but nothing is buried or padded.

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

Completeness3/5

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

For a 13-parameter mutation with an output schema and full schema coverage, the description covers the domain restriction, the safety/preview model, and the clarification duties well. It does not help with the conditional parameter priceKindRef (client-only) or with what a successful creation returns beyond what the schema and output schema already state.

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

Parameters3/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 adds one genuinely new semantic link — the partner is derived from counterpartyRef — plus a restatement of the side rule already given in the schema, so added meaning beyond structured data is modest.

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 identifies the resource precisely (agreement with a client or supplier holding sales/purchase terms) and scopes it to УТ/КА/ERP while explicitly excluding Бухгалтерия. The create action is only implied by the later 'создание — при confirm=true' clause rather than stated as a leading verb, and it never contrasts itself with the nearby create_contract sibling.

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 real routing rules: ask the user for side, ask the user when the database is ambiguous, and default to preview until the user confirms. What is missing is a positive rule for choosing this tool over sibling creation tools such as create_contract or create_partner — the 'Партнёр берётся из контрагента' line hints at that boundary but never names an alternative.

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