Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать контрагента

write.counterparty.create_counterparty

Creates a new counterparty in the 1C catalog with a dry-run preview by default; call again with confirm=true after approval to write it to the live database.

Instructions

Создаёт нового контрагента в справочнике. ПО УМОЛЧАНИЮ это предпросмотр (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": {
      "name": "<name>"
    },
    "name": "write.counterparty.create_counterparty"
  }
}

Input Schema

NameRequiredDescriptionDefault
innNoИНН
kppNoКПП
nameYesНаименование контрагента (Description)
ogrnNoОГРН (пишется, если в базе настроен доп.реквизит «ОГРН»)
emailNoEmail (в контактную информацию)
phoneNoТелефон (в контактную информацию)
addressNoАдрес текстом (в контактную информацию, юр. адрес)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
fullNameNoПолное наименование
legalTypeNoЮридическое лицо, физическое лицо или ИП. В Бухгалтерии ИП записывается как физическое лицо. В Управлении торговлей без legalType — юрлицо при ИНН из 10 цифр, иначе отказ с просьбой указать.
partnerRefNoУправление торговлей, обязательно: Ref_Key партнёра (Catalog_Партнеры), которому принадлежит контрагент. Нового партнёра сначала создайте write.counterparty.create_partner.
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.

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.9/5.0
Behavior4/5

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

Annotations only declare non-read-only and open-world; the description adds the critical behavior that the default is a dry-run and that real writes hit the production database, which an agent could not infer from annotations or schema alone. It does not cover permission requirements or failure modes beyond timeouts, so it falls short of 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?

Three short sentences, front-loaded with purpose and then the safety-critical dry-run rule; every sentence carries weight. The all-caps emphasis is slightly noisy but effective for a hazard warning.

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?

With an output schema present and 100% schema coverage on 13 parameters, the description only needs to convey the write hazard and the confirmation workflow, which it does. Minor omissions (which database is targeted when unspecified, required vs optional arguments) are handled in the schema rather than the description.

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% and the confirm/operationId semantics are already spelled out in the schema, including the retry-after-timeout rule. The description repeats the preview/confirm pattern but adds no parameter meaning beyond that, so the 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?

The first sentence names a specific verb and resource ("Создаёт нового контрагента в справочнике"), which is unambiguous and clearly distinct from siblings like update_counterparty or create_partner. It stops short of explicitly contrasting itself with those siblings, so it is clear but not maximally differentiating.

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 an explicit two-step usage protocol: call once for a preview, show the user, then re-call with confirm=true only after explicit consent. It does not mention when to prefer a different sibling tool (e.g. update_counterparty for existing records), so usage guidance on alternatives 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