Skip to main content
Glama
BaniBaushev
by BaniBaushev

Edtb Cfe Init Role

edtb_cfe_init_role

Creates a main extension role in a 1C:EDT project, registering it in metadata and resyncing. Supports dry-run to preview the plan.

Instructions

Создать «основную роль» расширения (GAP-CFE-NOROLE).

Основной путь — create_metadata Role через proxy (композиция после create_project). Fallback — файловый .mdo роли в src/Roles/<roleName>.mdo + регистрация в Configuration.mdo + resync.

Параметры: roleName: имя роли (по умолчанию "ОсновнаяРоль"). extProjectPath: корень проекта расширения (иначе EDTB_PROJECT_PATH). projectName: имя проекта в EDT для create_metadata. dryRun: вернуть план без применения.

Возвращает: dict с полями ok, roleName, via, warnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNo
roleNameNo
projectNameNo
extProjectPathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses that the tool may either create metadata via proxy or fall back to file-based .mdo creation plus Configuration.mdo registration and resync. It also mentions dryRun to return a plan without applying, which gives useful behavioral insight into the operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and efficient: purpose, primary/fallback approach, parameter list, and return value are all covered without excess. The use of labeled sections makes it easy for an agent to parse the relevant details quickly.

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 four-parameter tool with no annotations and an output schema, the description is nearly complete: it explains the goal, method, fallback, parameters, and return shape. It could be improved by mentioning prerequisites, error conditions, or behavior when the role already exists, but nothing critical is missing for basic invocation.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, but the tool description compensates fully by explaining every parameter: roleName with default, extProjectPath with environment fallback, projectName for create_metadata, and dryRun as a plan-only switch. This adds substantial meaning beyond the bare schema.

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 clearly specifies the verb and resource: create the 'main role' for an extension (GAP-CFE-NOROLE), and it explains the primary and fallback mechanisms. This is distinct enough to separate it from the listed sibling tools, none of which specialize in role initialization.

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?

The description states when in the workflow this tool is intended ('composition after create_project') and gives the fallback path if the primary metadata path is unavailable. It does not explicitly list alternative sibling tools or exclusions, but the context is clear enough for an agent to select it appropriately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.