[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-786463-105":59,"doc-detail-786463-en":129,"doc-similar-786463":165},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","lecture-04-notes","Lecture 04 - Notes","","Tool use and function calling in agentic software engineering examines how coding agents connect to development tools. It contrasts team-built tools with third-party tools discovered at runtime, showing how shared protocols reduce integration work but do not settle design or privilege risks. The lecture distinguishes ACP for editor–agent communication from MCP for agent–tool communication, then compares compiler, test runner, linter, version-control, and debugger needs, highlighting state, recoverability, reliability, and security.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lecture-04-notes/786463/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/lecture-04-notes/786463.png","ImageObject",300,407,{"name":92,"@type":93},"QWQ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-04",true,{"@type":101,"interactionType":102,"userInteractionCount":4},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What problem do shared tool protocols address?","Question",{"text":111,"@type":112},"They reduce the number of integrations needed between agents and tools by letting each connect through a shared protocol.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How do MCP and ACP differ?",{"text":116,"@type":112},"MCP connects agents with tools, while ACP connects editors or IDEs with coding agents. They address different integration layers and can be used together.",{"name":118,"@type":109,"acceptedAnswer":119},"Why are debuggers challenging for agent tool use?",{"text":120,"@type":112},"Debugger answers depend on earlier calls and the current frame, so their state is unrecoverable and cannot be handled like simpler tool outputs.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},786463,1796426888,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":4,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":143,"preview_page_count":24,"preview_urls":144},962094510011,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","TOOL USE AND FUNCTION CALLING  \nPart II of II · Agentic Software Engineering  \nLecture 4  \nCourse structure  \nFrom agent challenges to solutions across the software lifecycle  \nFoundations  \nwhat we start from  \nGenerative core  \nwhat an agent is built from  \nCorrective layer  \nwhat keeps it correct and safe  \nBack to practice  \nwhat it means for SE  \n✓  \nFundamentals of generative AI  \nconcise recap  \nKnowledge & memory  \nRAG vs. agents  \nContext engineering for SE Long-and short-term memory  \n✓  \nFeedback & verification  \ntesting, static analysis  \nSolutions across the SDLC  \nrequirements to testing  \nContinuation   \nTools & protocols  \nTool use & function calling  \nInterfaces to dev tools MCP, ACP  \nReliability & limitations  \nhallucination, unfamiliar code  \nEconomics  \nproductivity, cost, latency  \nAgent architectures  \nReAct, Plan-and-Execute, Reflexion  \nMulti-agent systems, A2A  \nSecurity  \nprompt injection, supply chain  \nHuman in the loop  \naccountability, code ownership  \nFROM ONE TOOL TO A WHOLE ECOSYSTEM  \n1. Stateful tools break stateless tool calls  \n2. Protocols standardise the connection, not the design — then a five-minute break  \n3. More tools, worse agents  \n4. Descriptions as attack surface  \n3  © Heinz Nixdorf Institute / Fraunhofer IEM CC BY-NC-SA 4.0  \nSTATEFUL TOOLS BREAK STATELESS TOOL CALLS  \n4  © Heinz Nixdorf Institute / Fraunhofer IEM CC BY-NC-SA 4.0  \n1  \n\n| Three claims we already established\u003Cbr>\u003Cbr>01 02 03\u003Cbr>The model proposes; your A tool call’s form can be A tool interface is a schema\u003Cbr>orchestrator executes. Every guaranteed mechanically. Its plus a privilege. Designing\u003Cbr>control you have lives on appropriateness cannot. the first and ignoring the\u003Cbr>your side of that line. second is how the GitHub\u003Cbr>incident happened. |  |  |  |\n| --- | --- | --- | --- |\n| 5 | © Heinz Nixdorf Institute / Fraunhofer IEM CC BY-NC-SA 4.0 | | |\n\nThree points from the previous lecture that we build on today. First, the model only proposes a tool call; your orchestrator executes it, so every control you have sits on your side of that line. Second, a tool call's form can be guaranteed mechanically, but whether the call is appropriate cannot. Third, a tool interface is a schema plus a privilege: the GitHub incident from last time happened because the schema was designed and the privilege was ignored.  \nIn the previous lecture we assumed that you wrote the tool  \ndef run_tests (path: str) -> dict :  \nr = pytest_json(path, timeout=120) return {  \n\"passed\": r .passed,  \n\"failed\": r . failed,  \n\"failures\": r . first(3),  \n\"failures_omitted\": [r.rest](r.rest) ,}  \nYou wrote this .  \nThe tool, the shape of its output, the privileges it runs with—every claim from the previous slide depended on that.  \nToday: dozens of tools, written by strangers, discovered at runtime.  \nIn the previous lecture you wrote the tool yourself. You chose what it returns, how the output is shaped and which privileges it runs with, and all three claims on the previous slide depended on that.  \nToday the situation is different: an agent uses dozens of tools, written by other people and discovered at runtime. Two of the three claims survive that change and one does not. Finding out which one is the work of the rest of this lecture.  \nM agents × N tools means M·N integrations  \nLanguage Server Protocol (LSP) replaced editors × languages the same way  \nWithout a standard With one  \ncompiler  \ntests  \nlinter  \ngit  \ndebugger  \nClaude Code  \nCursor  \nOpenHands  \nYour script  \none protocol  \n4 × 5 = 20 integrations 4 + 5 = 9 integrations  \nWithout a standard, every agent needs its own integration with every tool. Four agents and five tools give 4 × 5 = 20 integrations. With one shared protocol, each agent and each tool is integrated once, which gives 4 + 5 = 9.  \nThe Language Server Protocol (LSP, Microsoft, 2016) did the same for editors and programming languages: one contract replaced an editors × languages matrix. Both protocols in this lecture","cbCaifLe9wNZu3Eq","https://ap.wps.com/l/cbCaifLe9wNZu3Eq","pdf",4775427,49,"English","# Tool Ecosystems and Integration\n## Stateful tools and tool requirements\n## Agent and tool integration protocols\n# Reliability and Security\n## Tool state and recoverability\n## Tool design, privileges, and risks","[{\"question\":\"What problem do shared tool protocols address?\",\"answer\":\"They reduce the number of integrations needed between agents and tools by letting each connect through a shared protocol.\"},{\"question\":\"How do MCP and ACP differ?\",\"answer\":\"MCP connects agents with tools, while ACP connects editors or IDEs with coding agents. They address different integration layers and can be used together.\"},{\"question\":\"Why are debuggers challenging for agent tool use?\",\"answer\":\"Debugger answers depend on earlier calls and the current frame, so their state is unrecoverable and cannot be handled like simpler tool outputs.\"}]","Lecture 04 - Notes | PDF",123,[145,149,153,157,161],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/50d9c31d9cde7f4bfe85e2e1fb2761a5.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/a2c54371e96239f5ace9f4ee85a53332.webp",982,1388,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/d0b86437287f6e280f320179a43d6082.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/d1a8ce4ade275f07a947f607c6a1b31b.webp",980,1385,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/430d6b48b5370479cf5399ef5889adab.webp",979,1384,{"list":166,"token":66},[167,174,181,188,194,201,207,214,219,225],{"doc_id":168,"doc_title":169,"file_type":136,"home_preview_img_url":170,"slug":171,"view_count":172,"category_name":30,"create_tm":173},84297,"Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809159640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=NyH3ErYFp7Ds7A3QE0%2BP3Lsf%2Bpg%3D","tool-making-and-self-evolving-llm-agents-in-low-latency-systems",25,1784194643,{"doc_id":175,"doc_title":176,"file_type":136,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":30,"create_tm":180},678095,"Build Agent in ServiceNow - A practical guide to getting started - Updated for the Australia general availability release - May 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994793065/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=kJlrV5AhTNjBV7kZ%2FchnO2hLGsY%3D","build-agent-in-servicenow-a-practical-guide-to-getting-started-updated-for-the-australia-general-availability-release-may-2026",12,1793784205,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":30,"create_tm":187},559651,"MPLAB® ICD 3 In-Circuit Debugger User’s Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947454253/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=6o%2Blbai%2BnqbrK6hNfHu951YHH9M%3D","mplab-icd-3-in-circuit-debugger-users-guide",13,1791800862,{"doc_id":189,"doc_title":190,"file_type":136,"home_preview_img_url":191,"slug":192,"view_count":4,"category_name":30,"create_tm":193},786465,"Beyond Local Tools - Deep Dive into MCP with Spring AI - SpringIO26","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057394311/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=aiJmr0EW%2BopFlvxo%2Brv5ofze%2B1E%3D","beyond-local-tools-deep-dive-into-mcp-with-spring-ai-springio26",1796427087,{"doc_id":195,"doc_title":196,"file_type":136,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},84039,"MCP Enabled Agentic AI for Autonomous IPoDWDM Network Lifecycle Automation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809126618/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=g1Bd7bIkXvVebSCMgXKbmOVVqZA%3D","mcp-enabled-agentic-ai-for-autonomous-ipodwdm-network-lifecycle-automation",34,1784192177,{"doc_id":202,"doc_title":203,"file_type":136,"home_preview_img_url":204,"slug":205,"view_count":14,"category_name":30,"create_tm":206},735362,"Volume VII - Utilities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034115364/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=kJ6RNS6bXQhoimAjcBeWBc2f2pc%3D","volume-vii-utilities",1795460519,{"doc_id":208,"doc_title":209,"file_type":136,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":30,"create_tm":213},83718,"Securing Multi-Tool AI Agent Chains With Dynamic Real-Time Compositional Policies","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808997461/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=n7sXFrY%2BOh6Up8YHN212mVg58eg%3D","securing-multi-tool-ai-agent-chains-with-dynamic-real-time-compositional-policies",24,1784189958,{"doc_id":215,"doc_title":216,"file_type":136,"home_preview_img_url":217,"slug":216,"view_count":4,"category_name":30,"create_tm":218},786482,"debugging-microkernel-with-ai-agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057395294/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=0CE6vWSjhhNEaPXAWkjXBi2clWc%3D",1796427244,{"doc_id":220,"doc_title":221,"file_type":136,"home_preview_img_url":222,"slug":223,"view_count":24,"category_name":30,"create_tm":224},690326,"Infineon TriCore™ Software Development Toolset Highlights - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002625533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=pqvLt8DpVS7fTSCT8trRHjCXnTI%3D","infineon-tricore-software-development-toolset-highlights-overview",1794163194,{"doc_id":226,"doc_title":227,"file_type":136,"home_preview_img_url":228,"slug":229,"view_count":4,"category_name":30,"create_tm":230},786468,"2026-10-14 - Talk to the Map 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057394414/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796431799&Signature=xDsNvrrwgTzeOAGO3VxlldMVYjY%3D","2026-10-14-talk-to-the-map-1",1796427100]