You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 03_guidelines/frameworks/nodejs-cli/mcp-server.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ const server = new Server(
75
75
76
76
Tool names map to an action the AI needs to perform. Use a **verb** that describes the outcome; parameters carry the object and modifiers.
77
77
78
-
```
78
+
```text
79
79
✅ analyze_dimension(dimension: "business" | "ux") — one tool, one verb
80
80
❌ analyze_business / analyze_ux — same verb, proliferates tools
81
81
```
@@ -148,7 +148,7 @@ Tool descriptions are **instruction documents for AI agents**, not human help te
148
148
149
149
### 3.1 Five Required Elements
150
150
151
-
```
151
+
```text
152
152
1. What it does — first sentence, most important
153
153
2. When to use it — its place in the workflow
154
154
3. What it returns — key fields in the response
@@ -283,7 +283,7 @@ return toolResult(
283
283
284
284
For AI-delegated analysis, split the tool into two phases: one that returns the prompt+data, and one that stores the AI's result.
285
285
286
-
```
286
+
```text
287
287
AI → tool(phase="get-prompt") → data + prompt template returned
288
288
AI → (runs inference)
289
289
AI → displays result to user
@@ -353,7 +353,7 @@ Include a `next_step` hint in responses to guide the AI through sequential workf
353
353
354
354
Design multi-step workflows for sequential execution. Parallel execution hides intermediate results from the user and prevents the AI from using earlier results in later steps.
355
355
356
-
```
356
+
```text
357
357
❌ Promise.all([analyze_business(), analyze_ux()])
358
358
→ user sees nothing until all complete; no cross-referencing possible
0 commit comments