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: docs/docs/learn/architecture.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ Now that the connection is established, the client can discover available tools
256
256
"result": {
257
257
"tools": [
258
258
{
259
-
"name": "com.example.calculator/arithmetic",
259
+
"name": "calculator_arithmetic",
260
260
"title": "Calculator",
261
261
"description": "Perform mathematical calculations including basic arithmetic, trigonometric functions, and algebraic operations",
262
262
"inputSchema": {
@@ -271,7 +271,7 @@ Now that the connection is established, the client can discover available tools
271
271
}
272
272
},
273
273
{
274
-
"name": "com.example.weather/current",
274
+
"name": "weather_current",
275
275
"title": "Weather Information",
276
276
"description": "Get current weather information for any location worldwide",
277
277
"inputSchema": {
@@ -307,7 +307,7 @@ The response contains a `tools` array that provides comprehensive metadata about
307
307
308
308
Each tool object in the response includes several key fields:
309
309
310
-
-**`name`**: A unique identifier for the tool within the server's namespace. This serves as the primary key for tool execution and should be URI-like for better namespacing (e.g., `com.example.calculator/arithmetic` rather than just `calculate`)
310
+
-**`name`**: A unique identifier for the tool within the server's namespace. This serves as the primary key for tool execution and should follow a clear naming pattern (e.g., `calculator_arithmetic` rather than just `calculate`)
311
311
-**`title`**: A human-readable display name for the tool that clients can show to users
312
312
-**`description`**: Detailed explanation of what the tool does and when to use it
313
313
-**`inputSchema`**: A JSON Schema that defines the expected input parameters, enabling type validation and providing clear documentation about required and optional parameters
@@ -332,7 +332,7 @@ The client can now execute a tool using the `tools/call` method. This demonstrat
332
332
333
333
#### Understanding the Tool Execution Request
334
334
335
-
The `tools/call` request follows a structured format that ensures type safety and clear communication between client and server. Note that we're using the proper tool name from the discovery response (`com.example.weather/current`) rather than a simplified name:
335
+
The `tools/call` request follows a structured format that ensures type safety and clear communication between client and server. Note that we're using the proper tool name from the discovery response (`weather_current`) rather than a simplified name:
336
336
337
337
<CodeGroup>
338
338
```json Request
@@ -341,7 +341,7 @@ The `tools/call` request follows a structured format that ensures type safety an
341
341
"id": 3,
342
342
"method": "tools/call",
343
343
"params": {
344
-
"name": "com.example.weather/current",
344
+
"name": "weather_current",
345
345
"arguments": {
346
346
"location": "San Francisco",
347
347
"units": "imperial"
@@ -369,7 +369,7 @@ The `tools/call` request follows a structured format that ensures type safety an
369
369
370
370
The request structure includes several important components:
371
371
372
-
1.**`name`**: Must match exactly the tool name from the discovery response (`com.example.weather/current`). This ensures the server can correctly identify which tool to execute.
372
+
1.**`name`**: Must match exactly the tool name from the discovery response (`weather_current`). This ensures the server can correctly identify which tool to execute.
373
373
374
374
2.**`arguments`**: Contains the input parameters as defined by the tool's `inputSchema`. In this example:
0 commit comments