@mcp-abap-adt/core 6.3.1 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,671 +0,0 @@
1
- # Enrich Tool Descriptions with Operation Context
2
-
3
- > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
4
-
5
- **Goal:** Prepend structured Operation/Subject fields to all CRUD tool descriptions so RAG-based tool selection discovers related tools (e.g., searching "create class" also matches ReadClass and UpdateClass).
6
-
7
- **Architecture:** Each TOOL_DEFINITION.description gets a structured prefix: `Operation: {ops}. Subject: {Type}. Will be useful for {context}.` followed by a unified existing description. 52 files across 13 object types x 4 operations. No logic changes — description strings only.
8
-
9
- **Tech Stack:** TypeScript (string literals in TOOL_DEFINITION objects)
10
-
11
- ---
12
-
13
- ## File Map
14
-
15
- All files are under `src/handlers/`. Directory names vary per object type:
16
-
17
- | Object Type | Dir (Create/Update/Activate) | Dir (Read) |
18
- |---|---|---|
19
- | Class | `class` | `class` |
20
- | Program | `program` | `program` |
21
- | Table | `table` | `table` |
22
- | View | `view` | `view` |
23
- | Domain | `domain` | `domain` |
24
- | DataElement | `data_element` | `data_element` |
25
- | Interface | `interface` | `interface` |
26
- | FunctionModule | `function` | `function_module` |
27
- | BehaviorDefinition | `behavior_definition` | `behavior_definition` |
28
- | MetadataExtension | `ddlx` | `metadata_extension` |
29
- | ServiceDefinition | `service_definition` | `service_definition` |
30
- | ServiceBinding | `service_binding` | `service_binding` |
31
- | Structure | `structure` | `structure` |
32
-
33
- ---
34
-
35
- ## Templates
36
-
37
- ### Create
38
- ```
39
- Operation: Create. Subject: {Type}. Will be useful for creating {type}. Create a new ABAP {type} in SAP system. Creates the {type} object in initial state.
40
- ```
41
-
42
- ### Read (prepend to existing, keep Answers/Returns)
43
- ```
44
- Operation: Read, Create, Update. Subject: {Type}. Will be useful for reading, creating, or updating {type}. {existing description}
45
- ```
46
-
47
- ### Update
48
- ```
49
- Operation: Update, Create. Subject: {Type}. Will be useful for updating or creating {type}. Update {type-specific content} of an existing ABAP {type}. Locks, updates, unlocks, and optionally activates.
50
- ```
51
-
52
- ### Activate (prepend to existing)
53
- ```
54
- Operation: Activate, Create, Update. Subject: {Type}. Will be useful for activating, creating, or updating {type}. {existing description}
55
- ```
56
-
57
- ---
58
-
59
- ## Special Cases
60
-
61
- - **UpdateDomain**: Has multiline workflow description. Replace with one-liner: `Update an existing ABAP domain. Locks, updates with provided parameters (complete replacement), unlocks, and optionally activates.`
62
- - **UpdateDataElement**: Has multiline workflow + type_kind docs. Replace with one-liner: `Update an existing ABAP data element. Locks, updates with provided parameters (complete replacement), unlocks, and optionally activates.`
63
- - **UpdateServiceBinding**: Not source code — keep specific: `Update publication state of an existing ABAP service binding.`
64
- - **CreateServiceBinding**: Keep specific: `Create ABAP service binding via ADT Business Services endpoint. XML is generated from high-level parameters.`
65
- - **CreateDomain/CreateDataElement/CreateStructure**: Remove workflow details ("lock, create, check, unlock, activate, and verify"), unify to standard template.
66
- - **CreateBehaviorDefinition/CreateMetadataExtension/CreateServiceDefinition**: Keep domain-specific details after the standard prefix.
67
-
68
- ---
69
-
70
- ### Task 1: Update Class descriptions (4 files)
71
-
72
- **Files:**
73
- - Modify: `src/handlers/class/high/handleCreateClass.ts`
74
- - Modify: `src/handlers/class/readonly/handleReadClass.ts`
75
- - Modify: `src/handlers/class/high/handleUpdateClass.ts`
76
- - Modify: `src/handlers/class/low/handleActivateClass.ts`
77
-
78
- - [ ] **Step 1: Update CreateClass description**
79
-
80
- In `src/handlers/class/high/handleCreateClass.ts`, replace the description:
81
- ```typescript
82
- // FROM:
83
- description: 'Create a new ABAP class in SAP system. Creates the class object in initial state. Use UpdateClass to set source code afterwards.',
84
- // TO:
85
- description: 'Operation: Create. Subject: Class. Will be useful for creating class. Create a new ABAP class in SAP system. Creates the class object in initial state.',
86
- ```
87
-
88
- - [ ] **Step 2: Update ReadClass description**
89
-
90
- In `src/handlers/class/readonly/handleReadClass.ts`, replace the description:
91
- ```typescript
92
- // FROM:
93
- description: '[read-only] Read ABAP class source code and metadata. Answers: ...',
94
- // TO:
95
- description: 'Operation: Read, Create, Update. Subject: Class. Will be useful for reading, creating, or updating class. [read-only] Read ABAP class source code and metadata. Answers: ...',
96
- ```
97
-
98
- - [ ] **Step 3: Update UpdateClass description**
99
-
100
- In `src/handlers/class/high/handleUpdateClass.ts`, replace the description:
101
- ```typescript
102
- // FROM:
103
- description: 'Update source code of an existing ABAP class. Locks, checks, updates, unlocks, and optionally activates.',
104
- // TO:
105
- description: 'Operation: Update, Create. Subject: Class. Will be useful for updating or creating class. Update source code of an existing ABAP class. Locks, updates, unlocks, and optionally activates.',
106
- ```
107
-
108
- - [ ] **Step 4: Update ActivateClassLow description**
109
-
110
- In `src/handlers/class/low/handleActivateClass.ts`, replace the description:
111
- ```typescript
112
- // FROM:
113
- description: '[low-level] Activate an ABAP class. Returns activation status and any warnings/errors. Can use session_id and session_state from GetSession to maintain the same session.',
114
- // TO:
115
- description: 'Operation: Activate, Create, Update. Subject: Class. Will be useful for activating, creating, or updating class. [low-level] Activate an ABAP class. Returns activation status and any warnings/errors. Can use session_id and session_state from GetSession to maintain the same session.',
116
- ```
117
-
118
- - [ ] **Step 5: Commit**
119
-
120
- ```bash
121
- git add src/handlers/class/high/handleCreateClass.ts src/handlers/class/readonly/handleReadClass.ts src/handlers/class/high/handleUpdateClass.ts src/handlers/class/low/handleActivateClass.ts
122
- git commit -m "feat: enrich Class tool descriptions with operation context (#66)"
123
- ```
124
-
125
- ---
126
-
127
- ### Task 2: Update Program descriptions (4 files)
128
-
129
- **Files:**
130
- - Modify: `src/handlers/program/high/handleCreateProgram.ts`
131
- - Modify: `src/handlers/program/readonly/handleReadProgram.ts`
132
- - Modify: `src/handlers/program/high/handleUpdateProgram.ts`
133
- - Modify: `src/handlers/program/low/handleActivateProgram.ts`
134
-
135
- - [ ] **Step 1: Update CreateProgram description**
136
-
137
- ```typescript
138
- // FROM:
139
- description: 'Create a new ABAP program (report) in SAP system. Creates the program object in initial state. Use UpdateProgram to set source code afterwards.',
140
- // TO:
141
- description: 'Operation: Create. Subject: Program. Will be useful for creating program. Create a new ABAP program (report) in SAP system. Creates the program object in initial state.',
142
- ```
143
-
144
- - [ ] **Step 2: Update ReadProgram description**
145
-
146
- Prepend to existing:
147
- ```typescript
148
- // PREPEND:
149
- 'Operation: Read, Create, Update. Subject: Program. Will be useful for reading, creating, or updating program. '
150
- ```
151
-
152
- - [ ] **Step 3: Update UpdateProgram description**
153
-
154
- ```typescript
155
- // FROM:
156
- description: 'Update source code of an existing ABAP program. Locks the program, checks new code, uploads new source code, and unlocks. Optionally activates after update. Use this to modify existing programs without re-creating metadata.',
157
- // TO:
158
- description: 'Operation: Update, Create. Subject: Program. Will be useful for updating or creating program. Update source code of an existing ABAP program. Locks, updates, unlocks, and optionally activates.',
159
- ```
160
-
161
- - [ ] **Step 4: Update ActivateProgramLow description**
162
-
163
- Prepend to existing:
164
- ```typescript
165
- // PREPEND:
166
- 'Operation: Activate, Create, Update. Subject: Program. Will be useful for activating, creating, or updating program. '
167
- ```
168
-
169
- - [ ] **Step 5: Commit**
170
-
171
- ```bash
172
- git add src/handlers/program/high/handleCreateProgram.ts src/handlers/program/readonly/handleReadProgram.ts src/handlers/program/high/handleUpdateProgram.ts src/handlers/program/low/handleActivateProgram.ts
173
- git commit -m "feat: enrich Program tool descriptions with operation context (#66)"
174
- ```
175
-
176
- ---
177
-
178
- ### Task 3: Update Table descriptions (4 files)
179
-
180
- **Files:**
181
- - Modify: `src/handlers/table/high/handleCreateTable.ts`
182
- - Modify: `src/handlers/table/readonly/handleReadTable.ts`
183
- - Modify: `src/handlers/table/high/handleUpdateTable.ts`
184
- - Modify: `src/handlers/table/low/handleActivateTable.ts`
185
-
186
- - [ ] **Step 1: Update CreateTable description**
187
-
188
- ```typescript
189
- // FROM:
190
- description: 'Create a new ABAP table via the ADT API. Creates the table object in initial state. Use UpdateTable to set DDL code afterwards.',
191
- // TO:
192
- description: 'Operation: Create. Subject: Table. Will be useful for creating table. Create a new ABAP table in SAP system. Creates the table object in initial state.',
193
- ```
194
-
195
- - [ ] **Step 2: Update ReadTable description**
196
-
197
- Prepend: `'Operation: Read, Create, Update. Subject: Table. Will be useful for reading, creating, or updating table. '`
198
-
199
- - [ ] **Step 3: Update UpdateTable description**
200
-
201
- ```typescript
202
- // FROM:
203
- description: 'Update DDL source code of an existing ABAP table. Locks the table, uploads new DDL source, and unlocks. Optionally activates after update. Use this to modify existing tables without re-creating metadata.',
204
- // TO:
205
- description: 'Operation: Update, Create. Subject: Table. Will be useful for updating or creating table. Update DDL source code of an existing ABAP table. Locks, updates, unlocks, and optionally activates.',
206
- ```
207
-
208
- - [ ] **Step 4: Update ActivateTableLow description**
209
-
210
- Prepend: `'Operation: Activate, Create, Update. Subject: Table. Will be useful for activating, creating, or updating table. '`
211
-
212
- - [ ] **Step 5: Commit**
213
-
214
- ```bash
215
- git add src/handlers/table/high/handleCreateTable.ts src/handlers/table/readonly/handleReadTable.ts src/handlers/table/high/handleUpdateTable.ts src/handlers/table/low/handleActivateTable.ts
216
- git commit -m "feat: enrich Table tool descriptions with operation context (#66)"
217
- ```
218
-
219
- ---
220
-
221
- ### Task 4: Update View descriptions (4 files)
222
-
223
- **Files:**
224
- - Modify: `src/handlers/view/high/handleCreateView.ts`
225
- - Modify: `src/handlers/view/readonly/handleReadView.ts`
226
- - Modify: `src/handlers/view/high/handleUpdateView.ts`
227
- - Modify: `src/handlers/view/low/handleActivateView.ts`
228
-
229
- - [ ] **Step 1: Update CreateView description**
230
-
231
- ```typescript
232
- // FROM:
233
- description: 'Create CDS View or Classic View in SAP. Creates the view object in initial state. Use UpdateView to set DDL source code afterwards.',
234
- // TO:
235
- description: 'Operation: Create. Subject: View. Will be useful for creating view. Create a new CDS View or Classic View in SAP system. Creates the view object in initial state.',
236
- ```
237
-
238
- - [ ] **Step 2: Update ReadView description**
239
-
240
- Prepend: `'Operation: Read, Create, Update. Subject: View. Will be useful for reading, creating, or updating view. '`
241
-
242
- - [ ] **Step 3: Update UpdateView description**
243
-
244
- ```typescript
245
- // FROM:
246
- description: 'Update DDL source code of an existing CDS View or Classic View. Locks the view, checks new code, uploads new DDL source, unlocks, and optionally activates.',
247
- // TO:
248
- description: 'Operation: Update, Create. Subject: View. Will be useful for updating or creating view. Update DDL source code of an existing CDS View or Classic View. Locks, updates, unlocks, and optionally activates.',
249
- ```
250
-
251
- - [ ] **Step 4: Update ActivateViewLow description**
252
-
253
- Prepend: `'Operation: Activate, Create, Update. Subject: View. Will be useful for activating, creating, or updating view. '`
254
-
255
- - [ ] **Step 5: Commit**
256
-
257
- ```bash
258
- git add src/handlers/view/high/handleCreateView.ts src/handlers/view/readonly/handleReadView.ts src/handlers/view/high/handleUpdateView.ts src/handlers/view/low/handleActivateView.ts
259
- git commit -m "feat: enrich View tool descriptions with operation context (#66)"
260
- ```
261
-
262
- ---
263
-
264
- ### Task 5: Update Domain descriptions (4 files)
265
-
266
- **Files:**
267
- - Modify: `src/handlers/domain/high/handleCreateDomain.ts`
268
- - Modify: `src/handlers/domain/readonly/handleReadDomain.ts`
269
- - Modify: `src/handlers/domain/high/handleUpdateDomain.ts`
270
- - Modify: `src/handlers/domain/low/handleActivateDomain.ts`
271
-
272
- - [ ] **Step 1: Update CreateDomain description**
273
-
274
- ```typescript
275
- // FROM:
276
- description: 'Create a new ABAP domain in SAP system with all required steps: lock, create, check, unlock, activate, and verify.',
277
- // TO:
278
- description: 'Operation: Create. Subject: Domain. Will be useful for creating domain. Create a new ABAP domain in SAP system. Creates the domain object in initial state.',
279
- ```
280
-
281
- - [ ] **Step 2: Update ReadDomain description**
282
-
283
- Prepend: `'Operation: Read, Create, Update. Subject: Domain. Will be useful for reading, creating, or updating domain. '`
284
-
285
- - [ ] **Step 3: Update UpdateDomain description**
286
-
287
- Replace multiline description with:
288
- ```typescript
289
- description: 'Operation: Update, Create. Subject: Domain. Will be useful for updating or creating domain. Update an existing ABAP domain. Locks, updates with provided parameters (complete replacement), unlocks, and optionally activates.',
290
- ```
291
-
292
- - [ ] **Step 4: Update ActivateDomainLow description**
293
-
294
- Prepend: `'Operation: Activate, Create, Update. Subject: Domain. Will be useful for activating, creating, or updating domain. '`
295
-
296
- - [ ] **Step 5: Commit**
297
-
298
- ```bash
299
- git add src/handlers/domain/high/handleCreateDomain.ts src/handlers/domain/readonly/handleReadDomain.ts src/handlers/domain/high/handleUpdateDomain.ts src/handlers/domain/low/handleActivateDomain.ts
300
- git commit -m "feat: enrich Domain tool descriptions with operation context (#66)"
301
- ```
302
-
303
- ---
304
-
305
- ### Task 6: Update DataElement descriptions (4 files)
306
-
307
- **Files:**
308
- - Modify: `src/handlers/data_element/high/handleCreateDataElement.ts`
309
- - Modify: `src/handlers/data_element/readonly/handleReadDataElement.ts`
310
- - Modify: `src/handlers/data_element/high/handleUpdateDataElement.ts`
311
- - Modify: `src/handlers/data_element/low/handleActivateDataElement.ts`
312
-
313
- - [ ] **Step 1: Update CreateDataElement description**
314
-
315
- ```typescript
316
- // FROM:
317
- description: 'Create a new ABAP data element in SAP system with all required steps: create, activate, and verify.',
318
- // TO:
319
- description: 'Operation: Create. Subject: DataElement. Will be useful for creating data element. Create a new ABAP data element in SAP system. Creates the data element object in initial state.',
320
- ```
321
-
322
- - [ ] **Step 2: Update ReadDataElement description**
323
-
324
- Prepend: `'Operation: Read, Create, Update. Subject: DataElement. Will be useful for reading, creating, or updating data element. '`
325
-
326
- - [ ] **Step 3: Update UpdateDataElement description**
327
-
328
- Replace multiline description with:
329
- ```typescript
330
- description: 'Operation: Update, Create. Subject: DataElement. Will be useful for updating or creating data element. Update an existing ABAP data element. Locks, updates with provided parameters (complete replacement), unlocks, and optionally activates.',
331
- ```
332
-
333
- - [ ] **Step 4: Update ActivateDataElementLow description**
334
-
335
- Prepend: `'Operation: Activate, Create, Update. Subject: DataElement. Will be useful for activating, creating, or updating data element. '`
336
-
337
- - [ ] **Step 5: Commit**
338
-
339
- ```bash
340
- git add src/handlers/data_element/high/handleCreateDataElement.ts src/handlers/data_element/readonly/handleReadDataElement.ts src/handlers/data_element/high/handleUpdateDataElement.ts src/handlers/data_element/low/handleActivateDataElement.ts
341
- git commit -m "feat: enrich DataElement tool descriptions with operation context (#66)"
342
- ```
343
-
344
- ---
345
-
346
- ### Task 7: Update Interface descriptions (4 files)
347
-
348
- **Files:**
349
- - Modify: `src/handlers/interface/high/handleCreateInterface.ts`
350
- - Modify: `src/handlers/interface/readonly/handleReadInterface.ts`
351
- - Modify: `src/handlers/interface/high/handleUpdateInterface.ts`
352
- - Modify: `src/handlers/interface/low/handleActivateInterface.ts`
353
-
354
- - [ ] **Step 1: Update CreateInterface description**
355
-
356
- ```typescript
357
- // FROM:
358
- description: 'Create a new ABAP interface in SAP system. Creates the interface object in initial state. Use UpdateInterface to set source code afterwards.',
359
- // TO:
360
- description: 'Operation: Create. Subject: Interface. Will be useful for creating interface. Create a new ABAP interface in SAP system. Creates the interface object in initial state.',
361
- ```
362
-
363
- - [ ] **Step 2: Update ReadInterface description**
364
-
365
- Prepend: `'Operation: Read, Create, Update. Subject: Interface. Will be useful for reading, creating, or updating interface. '`
366
-
367
- - [ ] **Step 3: Update UpdateInterface description**
368
-
369
- ```typescript
370
- // FROM:
371
- description: 'Update source code of an existing ABAP interface. Uses stateful session with proper lock/unlock mechanism. Lock handle and transport number are passed in URL parameters.',
372
- // TO:
373
- description: 'Operation: Update, Create. Subject: Interface. Will be useful for updating or creating interface. Update source code of an existing ABAP interface. Locks, updates, unlocks, and optionally activates.',
374
- ```
375
-
376
- - [ ] **Step 4: Update ActivateInterfaceLow description**
377
-
378
- Prepend: `'Operation: Activate, Create, Update. Subject: Interface. Will be useful for activating, creating, or updating interface. '`
379
-
380
- - [ ] **Step 5: Commit**
381
-
382
- ```bash
383
- git add src/handlers/interface/high/handleCreateInterface.ts src/handlers/interface/readonly/handleReadInterface.ts src/handlers/interface/high/handleUpdateInterface.ts src/handlers/interface/low/handleActivateInterface.ts
384
- git commit -m "feat: enrich Interface tool descriptions with operation context (#66)"
385
- ```
386
-
387
- ---
388
-
389
- ### Task 8: Update FunctionModule descriptions (4 files)
390
-
391
- **Files:**
392
- - Modify: `src/handlers/function/high/handleCreateFunctionModule.ts`
393
- - Modify: `src/handlers/function_module/readonly/handleReadFunctionModule.ts`
394
- - Modify: `src/handlers/function/high/handleUpdateFunctionModule.ts`
395
- - Modify: `src/handlers/function/low/handleActivateFunctionModule.ts`
396
-
397
- - [ ] **Step 1: Update CreateFunctionModule description**
398
-
399
- ```typescript
400
- // FROM:
401
- description: 'Create a new ABAP function module within an existing function group. Creates the function module in initial state. Use UpdateFunctionModule to set source code afterwards.',
402
- // TO:
403
- description: 'Operation: Create. Subject: FunctionModule. Will be useful for creating function module. Create a new ABAP function module within an existing function group. Creates the function module in initial state.',
404
- ```
405
-
406
- - [ ] **Step 2: Update ReadFunctionModule description**
407
-
408
- Prepend: `'Operation: Read, Create, Update. Subject: FunctionModule. Will be useful for reading, creating, or updating function module. '`
409
-
410
- - [ ] **Step 3: Update UpdateFunctionModule description**
411
-
412
- ```typescript
413
- // FROM:
414
- description: 'Update source code of an existing ABAP function module. Locks the function module, uploads new source code, and unlocks. Optionally activates after update. Use this to modify existing function modules without re-creating metadata.',
415
- // TO:
416
- description: 'Operation: Update, Create. Subject: FunctionModule. Will be useful for updating or creating function module. Update source code of an existing ABAP function module. Locks, updates, unlocks, and optionally activates.',
417
- ```
418
-
419
- - [ ] **Step 4: Update ActivateFunctionModuleLow description**
420
-
421
- Prepend: `'Operation: Activate, Create, Update. Subject: FunctionModule. Will be useful for activating, creating, or updating function module. '`
422
-
423
- - [ ] **Step 5: Commit**
424
-
425
- ```bash
426
- git add src/handlers/function/high/handleCreateFunctionModule.ts src/handlers/function_module/readonly/handleReadFunctionModule.ts src/handlers/function/high/handleUpdateFunctionModule.ts src/handlers/function/low/handleActivateFunctionModule.ts
427
- git commit -m "feat: enrich FunctionModule tool descriptions with operation context (#66)"
428
- ```
429
-
430
- ---
431
-
432
- ### Task 9: Update BehaviorDefinition descriptions (4 files)
433
-
434
- **Files:**
435
- - Modify: `src/handlers/behavior_definition/high/handleCreateBehaviorDefinition.ts`
436
- - Modify: `src/handlers/behavior_definition/readonly/handleReadBehaviorDefinition.ts`
437
- - Modify: `src/handlers/behavior_definition/high/handleUpdateBehaviorDefinition.ts`
438
- - Modify: `src/handlers/behavior_definition/low/handleActivateBehaviorDefinition.ts`
439
-
440
- - [ ] **Step 1: Update CreateBehaviorDefinition description**
441
-
442
- ```typescript
443
- // FROM:
444
- description: 'Create a new ABAP Behavior Definition (BDEF) in SAP system. Defines RAP business object behavior: CRUD operations, validations, determinations, actions, and draft handling.',
445
- // TO:
446
- description: 'Operation: Create. Subject: BehaviorDefinition. Will be useful for creating behavior definition. Create a new ABAP Behavior Definition (BDEF) in SAP system. Creates the behavior definition object in initial state.',
447
- ```
448
-
449
- - [ ] **Step 2: Update ReadBehaviorDefinition description**
450
-
451
- Prepend: `'Operation: Read, Create, Update. Subject: BehaviorDefinition. Will be useful for reading, creating, or updating behavior definition. '`
452
-
453
- - [ ] **Step 3: Update UpdateBehaviorDefinition description**
454
-
455
- ```typescript
456
- // FROM:
457
- description: 'Update source code of an ABAP Behavior Definition (BDEF). Modifies RAP business object behavior: CRUD operations, validations, determinations, actions, and draft handling.',
458
- // TO:
459
- description: 'Operation: Update, Create. Subject: BehaviorDefinition. Will be useful for updating or creating behavior definition. Update source code of an existing ABAP Behavior Definition (BDEF). Locks, updates, unlocks, and optionally activates.',
460
- ```
461
-
462
- - [ ] **Step 4: Update ActivateBehaviorDefinitionLow description**
463
-
464
- Prepend: `'Operation: Activate, Create, Update. Subject: BehaviorDefinition. Will be useful for activating, creating, or updating behavior definition. '`
465
-
466
- - [ ] **Step 5: Commit**
467
-
468
- ```bash
469
- git add src/handlers/behavior_definition/high/handleCreateBehaviorDefinition.ts src/handlers/behavior_definition/readonly/handleReadBehaviorDefinition.ts src/handlers/behavior_definition/high/handleUpdateBehaviorDefinition.ts src/handlers/behavior_definition/low/handleActivateBehaviorDefinition.ts
470
- git commit -m "feat: enrich BehaviorDefinition tool descriptions with operation context (#66)"
471
- ```
472
-
473
- ---
474
-
475
- ### Task 10: Update MetadataExtension descriptions (4 files)
476
-
477
- **Files:**
478
- - Modify: `src/handlers/ddlx/high/handleCreateMetadataExtension.ts`
479
- - Modify: `src/handlers/metadata_extension/readonly/handleReadMetadataExtension.ts`
480
- - Modify: `src/handlers/ddlx/high/handleUpdateMetadataExtension.ts`
481
- - Modify: `src/handlers/ddlx/low/handleActivateMetadataExtension.ts`
482
-
483
- - [ ] **Step 1: Update CreateMetadataExtension description**
484
-
485
- ```typescript
486
- // FROM:
487
- description: 'Create a new ABAP Metadata Extension (DDLX) in SAP system. Defines Fiori UI annotations, field labels, search help, and list/object page layout for CDS views.',
488
- // TO:
489
- description: 'Operation: Create. Subject: MetadataExtension. Will be useful for creating metadata extension. Create a new ABAP Metadata Extension (DDLX) in SAP system. Creates the metadata extension object in initial state.',
490
- ```
491
-
492
- - [ ] **Step 2: Update ReadMetadataExtension description**
493
-
494
- Prepend: `'Operation: Read, Create, Update. Subject: MetadataExtension. Will be useful for reading, creating, or updating metadata extension. '`
495
-
496
- - [ ] **Step 3: Update UpdateMetadataExtension description**
497
-
498
- ```typescript
499
- // FROM:
500
- description: 'Update source code of an ABAP Metadata Extension (DDLX). Modifies Fiori UI annotations, field labels, search help, and list/object page layout for CDS views.',
501
- // TO:
502
- description: 'Operation: Update, Create. Subject: MetadataExtension. Will be useful for updating or creating metadata extension. Update source code of an existing ABAP Metadata Extension (DDLX). Locks, updates, unlocks, and optionally activates.',
503
- ```
504
-
505
- - [ ] **Step 4: Update ActivateMetadataExtensionLow description**
506
-
507
- Prepend: `'Operation: Activate, Create, Update. Subject: MetadataExtension. Will be useful for activating, creating, or updating metadata extension. '`
508
-
509
- - [ ] **Step 5: Commit**
510
-
511
- ```bash
512
- git add src/handlers/ddlx/high/handleCreateMetadataExtension.ts src/handlers/metadata_extension/readonly/handleReadMetadataExtension.ts src/handlers/ddlx/high/handleUpdateMetadataExtension.ts src/handlers/ddlx/low/handleActivateMetadataExtension.ts
513
- git commit -m "feat: enrich MetadataExtension tool descriptions with operation context (#66)"
514
- ```
515
-
516
- ---
517
-
518
- ### Task 11: Update ServiceDefinition descriptions (4 files)
519
-
520
- **Files:**
521
- - Modify: `src/handlers/service_definition/high/handleCreateServiceDefinition.ts`
522
- - Modify: `src/handlers/service_definition/readonly/handleReadServiceDefinition.ts`
523
- - Modify: `src/handlers/service_definition/high/handleUpdateServiceDefinition.ts`
524
- - Modify: `src/handlers/service_definition/low/handleActivateServiceDefinition.ts`
525
-
526
- - [ ] **Step 1: Update CreateServiceDefinition description**
527
-
528
- ```typescript
529
- // FROM:
530
- description: 'Create a new ABAP service definition for OData services. Service definitions define the structure and behavior of OData services. Uses stateful session for proper lock management.',
531
- // TO:
532
- description: 'Operation: Create. Subject: ServiceDefinition. Will be useful for creating service definition. Create a new ABAP service definition in SAP system. Creates the service definition object in initial state.',
533
- ```
534
-
535
- - [ ] **Step 2: Update ReadServiceDefinition description**
536
-
537
- Prepend: `'Operation: Read, Create, Update. Subject: ServiceDefinition. Will be useful for reading, creating, or updating service definition. '`
538
-
539
- - [ ] **Step 3: Update UpdateServiceDefinition description**
540
-
541
- ```typescript
542
- // FROM:
543
- description: 'Update source code of an existing ABAP service definition. Uses stateful session with proper lock/unlock mechanism.',
544
- // TO:
545
- description: 'Operation: Update, Create. Subject: ServiceDefinition. Will be useful for updating or creating service definition. Update source code of an existing ABAP service definition. Locks, updates, unlocks, and optionally activates.',
546
- ```
547
-
548
- - [ ] **Step 4: Update ActivateServiceDefinitionLow description**
549
-
550
- Prepend: `'Operation: Activate, Create, Update. Subject: ServiceDefinition. Will be useful for activating, creating, or updating service definition. '`
551
-
552
- - [ ] **Step 5: Commit**
553
-
554
- ```bash
555
- git add src/handlers/service_definition/high/handleCreateServiceDefinition.ts src/handlers/service_definition/readonly/handleReadServiceDefinition.ts src/handlers/service_definition/high/handleUpdateServiceDefinition.ts src/handlers/service_definition/low/handleActivateServiceDefinition.ts
556
- git commit -m "feat: enrich ServiceDefinition tool descriptions with operation context (#66)"
557
- ```
558
-
559
- ---
560
-
561
- ### Task 12: Update ServiceBinding descriptions (4 files)
562
-
563
- **Files:**
564
- - Modify: `src/handlers/service_binding/high/handleCreateServiceBinding.ts`
565
- - Modify: `src/handlers/service_binding/readonly/handleReadServiceBinding.ts`
566
- - Modify: `src/handlers/service_binding/high/handleUpdateServiceBinding.ts`
567
- - Modify: `src/handlers/service_binding/low/handleActivateServiceBinding.ts`
568
-
569
- - [ ] **Step 1: Update CreateServiceBinding description**
570
-
571
- ```typescript
572
- // FROM:
573
- description: 'Create ABAP service binding via ADT Business Services endpoint. XML is generated from high-level parameters.',
574
- // TO:
575
- description: 'Operation: Create. Subject: ServiceBinding. Will be useful for creating service binding. Create a new ABAP service binding in SAP system. Creates the service binding object in initial state.',
576
- ```
577
-
578
- - [ ] **Step 2: Update ReadServiceBinding description**
579
-
580
- Prepend: `'Operation: Read, Create, Update. Subject: ServiceBinding. Will be useful for reading, creating, or updating service binding. '`
581
-
582
- - [ ] **Step 3: Update UpdateServiceBinding description**
583
-
584
- ```typescript
585
- // FROM:
586
- description: 'Update publication state for ABAP service binding via AdtServiceBinding workflow.',
587
- // TO:
588
- description: 'Operation: Update, Create. Subject: ServiceBinding. Will be useful for updating or creating service binding. Update publication state of an existing ABAP service binding.',
589
- ```
590
-
591
- - [ ] **Step 4: Update ActivateServiceBindingLow description**
592
-
593
- Prepend: `'Operation: Activate, Create, Update. Subject: ServiceBinding. Will be useful for activating, creating, or updating service binding. '`
594
-
595
- - [ ] **Step 5: Commit**
596
-
597
- ```bash
598
- git add src/handlers/service_binding/high/handleCreateServiceBinding.ts src/handlers/service_binding/readonly/handleReadServiceBinding.ts src/handlers/service_binding/high/handleUpdateServiceBinding.ts src/handlers/service_binding/low/handleActivateServiceBinding.ts
599
- git commit -m "feat: enrich ServiceBinding tool descriptions with operation context (#66)"
600
- ```
601
-
602
- ---
603
-
604
- ### Task 13: Update Structure descriptions (4 files)
605
-
606
- **Files:**
607
- - Modify: `src/handlers/structure/high/handleCreateStructure.ts`
608
- - Modify: `src/handlers/structure/readonly/handleReadStructure.ts`
609
- - Modify: `src/handlers/structure/high/handleUpdateStructure.ts`
610
- - Modify: `src/handlers/structure/low/handleActivateStructure.ts`
611
-
612
- - [ ] **Step 1: Update CreateStructure description**
613
-
614
- ```typescript
615
- // FROM:
616
- description: 'Create a new ABAP structure in SAP system with fields and type references. Includes create, activate, and verify steps.',
617
- // TO:
618
- description: 'Operation: Create. Subject: Structure. Will be useful for creating structure. Create a new ABAP structure in SAP system. Creates the structure object in initial state.',
619
- ```
620
-
621
- - [ ] **Step 2: Update ReadStructure description**
622
-
623
- Prepend: `'Operation: Read, Create, Update. Subject: Structure. Will be useful for reading, creating, or updating structure. '`
624
-
625
- - [ ] **Step 3: Update UpdateStructure description**
626
-
627
- ```typescript
628
- // FROM:
629
- description: 'Update DDL source code of an existing ABAP structure. Locks the structure, uploads new DDL source, and unlocks. Optionally activates after update. Use this to modify existing structures without re-creating metadata.',
630
- // TO:
631
- description: 'Operation: Update, Create. Subject: Structure. Will be useful for updating or creating structure. Update DDL source code of an existing ABAP structure. Locks, updates, unlocks, and optionally activates.',
632
- ```
633
-
634
- - [ ] **Step 4: Update ActivateStructureLow description**
635
-
636
- Prepend: `'Operation: Activate, Create, Update. Subject: Structure. Will be useful for activating, creating, or updating structure. '`
637
-
638
- - [ ] **Step 5: Commit**
639
-
640
- ```bash
641
- git add src/handlers/structure/high/handleCreateStructure.ts src/handlers/structure/readonly/handleReadStructure.ts src/handlers/structure/high/handleUpdateStructure.ts src/handlers/structure/low/handleActivateStructure.ts
642
- git commit -m "feat: enrich Structure tool descriptions with operation context (#66)"
643
- ```
644
-
645
- ---
646
-
647
- ### Task 14: Verify build passes
648
-
649
- - [ ] **Step 1: Run TypeScript build**
650
-
651
- ```bash
652
- npm run build
653
- ```
654
-
655
- Expected: No errors. Only description strings changed — no type or logic changes.
656
-
657
- - [ ] **Step 2: Run linter**
658
-
659
- ```bash
660
- npm run lint
661
- ```
662
-
663
- Expected: No new warnings/errors.
664
-
665
- - [ ] **Step 3: Verify description format with grep**
666
-
667
- ```bash
668
- grep -r "Operation:" src/handlers/*/high/handleCreate*.ts src/handlers/*/high/handleUpdate*.ts src/handlers/*/readonly/handleRead*.ts src/handlers/*/low/handleActivate*.ts | wc -l
669
- ```
670
-
671
- Expected: 52 matches (13 types x 4 operations).