Build a Scripted REST API for MCP: The GET Resource
ServiceNow Dev Program
·
Aug 26, 2026
·
video
Previous: https://youtu.be/JfD\_hk2N28g Next: https://youtu.be/2aWfFCewdOA Full written series: https://devlink.sn/mcp-server-console-series Every MCP tool needs something to actually call. Here I build a Scripted REST API with a GET resource that pulls incident details, and explain why a path parameter is no longer just for your own REST client. 📘 Step-by-step directions and scripts to copy and paste: https://devlink.sn/mcp-server-console-series ## In this video - Creating the Incident API record and setting a default ACL - Building the Get Incident resource with a path parameter - Why that path parameter becomes a tool input the model can see and fill on its own - Designing REST resources as an interface for an AI, not just a person - The GlideRecord script and a sensible ACL ## Timestamps 00:00 - Every MCP tool needs something to call 00:17 - Creating the Scripted REST API 00:31 - The Get Incident resource 00:43 - Path parameters become tool inputs 00:59 - Designing for an AI, not just a person 01:29 - The script and the ACL 01:45 - What's next #ServiceNow #MCP #RESTAPI #AI #Claude
https://www.youtube.com/watch?v=H4SgKjIvWjQ