Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать договор

write.catalog.create_contract

Creates a counterparty contract in 1C with required contract kind, number, date, currency, and price type; previews changes by default and writes only after confirmation.

Instructions

Заводит договор контрагента (подчинённый справочник): владелец — контрагент, организация, ВИД договора, номер/дата, валюта/тип цен и (опц.) руководитель/подписант. ВАЖНО: вид договора (kind) обязателен и его НЕЛЬЗЯ выбирать самостоятельно — уточните у пользователя, т.к. один контрагент может быть и покупателем, и поставщиком. Номер по умолчанию «б/н», дата — момент предпросмотра. По умолчанию предпросмотр (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": {
      "counterpartyRef": "<counterpartyRef>",
      "kind": "<kind>"
    },
    "name": "write.catalog.create_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата договора YYYY-MM-DD (по умолчанию — момент предпросмотра)
kindYesВид договора — ОБЯЗАТЕЛЬНО спросить у пользователя, не выбирать самому
nameNoНаименование договора (по умолчанию «Договор <номер>»)
numberNoНомер договора (по умолчанию «б/н»)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
currencyNoВалюта взаиморасчётов — код (напр. 643/840) или название (RUB/USD)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
headNameNoФИО руководителя/подписанта контрагента (реквизит договора)
priceTypeNoТип цен — название или код (из справочника Типы цен номенклатуры)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
headPositionNoДолжность руководителя контрагента (напр. «Генеральный директор»)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefYesRef_Key контрагента (владелец договора)
settlementOrderNoТолько Управление торговлей: порядок расчётов — по договорам (по умолчанию), по накладным, по заказам.

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

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false), the description discloses that nothing is written by default, that confirm=true is required to persist, and that the preview's operationId must be reused after a timeout to avoid duplicates. It also discloses defaults for number ("б/н") and date (preview moment), which materially affect the resulting record.

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 resource and owner, then the critical kind constraint, then the dry-run rule; the capitalized warning makes the highest-risk requirement scannable. It is dense but nearly every clause carries operational weight, with only minor repetition of schema-level defaults.

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 a 14-parameter mutation tool with annotations and an output schema, the description covers the risky parts: mandatory user-supplied kind and the preview/confirm idempotency protocol. Return values are covered by the output schema, though the closely related create_agreement sibling is never addressed.

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 every parameter is already documented, including the kind enum and the dry-run confirm logic. The description mostly restates that kind is mandatory and that number/date have defaults, adding little meaning beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ("Заводит договор контрагента") and scopes it as a subordinate catalog record with its owner and main attributes. It does not, however, differentiate itself from the similarly named sibling write.catalog.create_agreement, which an agent could easily confuse with this tool.

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 concrete operating instructions: kind must be obtained from the user rather than guessed, and the default flow is dry-run followed by confirm=true reusing the operationId. It lacks any explicit statement about when to prefer this over create_agreement or set_contract_settlement_settings, so the alternative-selection guidance is absent.

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