Join our Newsletter — 33% off our NHI Course

Why does function calling keep credentials tied to the app?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: Function calling keeps tool definitions and credentials close to the application, which Descope says raises the trust boundary as environments grow. That coupling makes governance harder because permissions, auditability, and reuse stay embedded in code.

Editorial analysis by NHI Mgmt Group, based on content published by Descope: “MCP vs. Function Calling: How They Differ and Which to Use”.

Key questions

Q: When does MCP make more sense than function calling?

A: MCP makes more sense when tool reuse, access scoping, and auditability matter more than fast prototyping.

Q: How do you know whether an AI integration is too tightly coupled?

A: If changing a tool means editing the main application, duplicating schemas, or reworking secrets handling in multiple places, the integration is too tightly coupled.

Q: What breaks when tool access stays embedded in the application layer?

A: When tool definitions, credentials, and execution logic sit inside the same application, compromise or misconfiguration of that app can expose every function the model can reach.

Practitioner guidance

  • Define the trust boundary for tool execution Map which credentials, data sources, and approval paths remain inside the application and which should move behind a separate MCP server boundary.
  • Separate credentials from client code Keep backend secrets in the server process rather than in the model-facing application so compromise of the client does not expose every downstream permission.
  • Standardise reusable tool servers Package shared integrations as protocol-based servers so multiple agents and multiple models can reuse the same governed capability set.

Bottom line: MCP and function calling differ most at the trust boundary, not just in developer ergonomics.

Glossary terms: Function Calling, Model Context Protocol, Server-Side Trust Isolation, Agentic Tool Execution

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
Topic Tags
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 20712
 

Tool integration becomes an identity design decision once AI systems reach production scale. The article’s core comparison is not really about developer convenience. It is about whether trust, permissions, and auditability remain inside the app or move to an integration layer that can be governed independently. For identity programmes, that means tool integration patterns now belong in the same conversation as privilege model design and access boundary definition.

A few things that frame the scale:

A question worth separating out:

Q: What is the difference between application-level and server-level access control for agents?

A: Application-level access control ties tool use to the code that invokes it, so the app holds both the instructions and the credentials. Server-level access control puts the sensitive permissions behind a separate component that exposes only the approved capability. The second model is easier to scope, monitor, and retire.

👉 Read our full editorial: MCP versus function calling: security and scale trade-offs



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.