99 "github.com/render-oss/render-mcp-server/pkg/client"
1010 "github.com/render-oss/render-mcp-server/pkg/config"
1111 "github.com/render-oss/render-mcp-server/pkg/mcpserver"
12+ "github.com/render-oss/render-mcp-server/pkg/pointers"
1213 "github.com/render-oss/render-mcp-server/pkg/validate"
1314)
1415
@@ -32,8 +33,8 @@ func listServices(serviceRepo *Repo) server.ServerTool {
3233 mcp .WithDescription ("List all services in your Render account" ),
3334 mcp .WithToolAnnotation (mcp.ToolAnnotation {
3435 Title : "List services" ,
35- ReadOnlyHint : true ,
36- OpenWorldHint : true ,
36+ ReadOnlyHint : pointers . From ( true ) ,
37+ OpenWorldHint : pointers . From ( true ) ,
3738 }),
3839 mcp .WithBoolean ("includePreviews" ,
3940 mcp .Description ("Whether to include preview services in the response. Defaults to false." ),
@@ -70,8 +71,8 @@ func getService(serviceRepo *Repo) server.ServerTool {
7071 mcp .WithDescription ("Get details about a specific service" ),
7172 mcp .WithToolAnnotation (mcp.ToolAnnotation {
7273 Title : "Get service details" ,
73- ReadOnlyHint : true ,
74- OpenWorldHint : true ,
74+ ReadOnlyHint : pointers . From ( true ) ,
75+ OpenWorldHint : pointers . From ( true ) ,
7576 }),
7677 mcp .WithString ("serviceId" ,
7778 mcp .Required (),
@@ -111,9 +112,9 @@ func createWebService(serviceRepo *Repo) server.ServerTool {
111112 "To create a service without those limitations, please use the dashboard at: " + config .DashboardURL ()+ "/web/new" ),
112113 mcp .WithToolAnnotation (mcp.ToolAnnotation {
113114 Title : "Create web service" ,
114- ReadOnlyHint : false ,
115- IdempotentHint : false ,
116- OpenWorldHint : true ,
115+ ReadOnlyHint : pointers . From ( false ) ,
116+ IdempotentHint : pointers . From ( false ) ,
117+ OpenWorldHint : pointers . From ( true ) ,
117118 }),
118119 mcp .WithString ("name" ,
119120 mcp .Required (),
@@ -305,9 +306,9 @@ func createStaticSite(serviceRepo *Repo) server.ServerTool {
305306 "To create a static site without those limitations, please use the dashboard at: " + config .DashboardURL ()+ "/static/new" ),
306307 mcp .WithToolAnnotation (mcp.ToolAnnotation {
307308 Title : "Create static site" ,
308- ReadOnlyHint : false ,
309- IdempotentHint : false ,
310- OpenWorldHint : true ,
309+ ReadOnlyHint : pointers . From ( false ) ,
310+ IdempotentHint : pointers . From ( false ) ,
311+ OpenWorldHint : pointers . From ( true ) ,
311312 }),
312313 mcp .WithString ("name" ,
313314 mcp .Required (),
@@ -404,8 +405,8 @@ func updateWebService() server.ServerTool {
404405 mcp .WithDescription ("Update an existing web service in your Render account." ),
405406 mcp .WithToolAnnotation (mcp.ToolAnnotation {
406407 Title : "Update web service" ,
407- ReadOnlyHint : true ,
408- IdempotentHint : true ,
408+ ReadOnlyHint : pointers . From ( true ) ,
409+ IdempotentHint : pointers . From ( true ) ,
409410 }),
410411 mcp .WithString ("serviceId" ,
411412 mcp .Required (),
@@ -432,8 +433,8 @@ func updateStaticSite() server.ServerTool {
432433 mcp .WithDescription ("Update an existing static site in your Render account." ),
433434 mcp .WithToolAnnotation (mcp.ToolAnnotation {
434435 Title : "Update static site" ,
435- ReadOnlyHint : true ,
436- IdempotentHint : true ,
436+ ReadOnlyHint : pointers . From ( true ) ,
437+ IdempotentHint : pointers . From ( true ) ,
437438 }),
438439 mcp .WithString ("serviceId" ,
439440 mcp .Required (),
@@ -464,8 +465,8 @@ func updateEnvVars(serviceRepo *Repo) server.ServerTool {
464465 "To replace all existing environment variables, set the 'replace' parameter to 'true'." ),
465466 mcp .WithToolAnnotation (mcp.ToolAnnotation {
466467 Title : "Update environment variables" ,
467- DestructiveHint : true ,
468- OpenWorldHint : true ,
468+ DestructiveHint : pointers . From ( true ) ,
469+ OpenWorldHint : pointers . From ( true ) ,
469470 }),
470471 mcp .WithString ("serviceId" ,
471472 mcp .Required (),
0 commit comments