Skip to content

Commit c8ff8c1

Browse files
committed
refactor: Simplify tool descriptions - remove client implementation details
The server tool descriptions now just mention that widgets are interactive and can be controlled, without teaching the model about list_widget_tools (which is the client's responsibility to teach). Before: 'The widget exposes tools: X, Y, Z. Use list_widget_tools to discover...' After: 'The widget is interactive and exposes tools for X and Y.'
1 parent ae4157b commit c8ff8c1

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

examples/budget-allocator-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function createServer(): McpServer {
269269
{
270270
title: "Get Budget Data",
271271
description:
272-
"Returns budget configuration with 24 months of historical allocations and industry benchmarks by company stage. The widget exposes tools: get-allocations (current allocations), set-allocation (adjust a category), set-total-budget (change budget), set-company-stage (change benchmark stage), get-benchmark-comparison (compare to industry). Use list_widget_tools to discover available actions.",
272+
"Returns budget configuration with 24 months of historical allocations and industry benchmarks by company stage. The widget is interactive and exposes tools for reading/modifying allocations, adjusting budgets, and comparing against industry benchmarks.",
273273
inputSchema: {},
274274
outputSchema: BudgetDataResponseSchema,
275275
_meta: { ui: { resourceUri } },

examples/map-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function createServer(): McpServer {
148148
{
149149
title: "Show Map",
150150
description:
151-
"Display an interactive world map zoomed to a specific bounding box. Use the GeoCode tool to find the bounding box of a location. The widget exposes tools: navigate-to (fly to a new location), get-current-view (get camera position and visible bounds). Use list_widget_tools to discover available actions.",
151+
"Display an interactive world map zoomed to a specific bounding box. Use the GeoCode tool to find the bounding box of a location. The widget is interactive and exposes tools for navigation (fly to locations) and querying the current view.",
152152
inputSchema: {
153153
west: z
154154
.number()

examples/pdf-server/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ Use this tool when the user asks to view, display, read, or open a PDF. Accepts:
136136
- URLs from list_pdfs (preloaded PDFs)
137137
- Any arxiv.org URL (loaded dynamically)
138138
139-
The viewer supports zoom, navigation, text selection, and fullscreen mode.
140-
141-
The widget exposes tools: go-to-page (navigate to a page), get-page-text (extract text), search-text (find text in document), set-zoom (adjust zoom level), get-document-info (get metadata). Use list_widget_tools to discover available actions.`,
139+
The viewer supports zoom, navigation, text selection, and fullscreen mode. The widget is interactive and exposes tools for page navigation, text extraction, searching, and zoom control.`,
142140
inputSchema: {
143141
url: z
144142
.string()

examples/shadertoy-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LIMITATIONS - Do NOT use:
5151
For procedural noise:
5252
float hash(vec2 p) { return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453); }
5353
54-
The widget exposes tools: set-shader-source (update shader code), get-shader-info (get source and errors). Compilation errors are also sent to model context. Use list_widget_tools to discover available actions.`;
54+
The widget is interactive and exposes tools for updating shader source code and querying compilation status. Compilation errors are sent to model context automatically.`;
5555

5656
const DEFAULT_FRAGMENT_SHADER = `void mainImage(out vec4 fragColor, in vec2 fragCoord) {
5757
vec2 uv = fragCoord / iResolution.xy;

examples/wiki-explorer-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function createServer(): McpServer {
8686
{
8787
title: "Get First-Degree Links",
8888
description:
89-
"Returns all Wikipedia pages that the given page links to directly. The widget exposes tools: expand-node (explore a node's links - the key interaction!), search-article (find articles), get-current-article (get displayed article), highlight-node (highlight a graph node), get-visible-nodes (list visible nodes). Use list_widget_tools to discover available actions.",
89+
"Returns all Wikipedia pages that the given page links to directly. The widget is interactive and exposes tools for exploring the graph (expanding nodes to see their links), searching for articles, and querying visible nodes.",
9090
inputSchema: z.object({
9191
url: z
9292
.string()

0 commit comments

Comments
 (0)