The Model Context Protocol is an open protocol for connecting AI applications to tools and data.
A server exposes tools, resources and prompts. A client inside the application discovers them and calls them. It lets one integration work with many applications instead of one custom connector per pair.
An MCP server is code that you or someone else runs, and its tool descriptions enter the model’s context. That makes third-party servers part of your supply chain and part of your attack surface.
Common mistake. Connecting a server you have not read, with broad credentials, to an agent that also reads untrusted content.
In practice. Review servers like dependencies, grant scoped credentials, pin versions, log every call, and require approval for tools that change anything.
Tool calling, also called function calling, lets a model request that your code run a named function with structured arguments. The model never executes anything itself. It returns a request, your code validates and runs it, and the result goes back into the conversation for the next step.
Least privilege means giving a system only the permissions it needs for its task and nothing more. For agents it applies to each tool and credential: narrow scopes, separate read and write access, short-lived tokens. If a model is manipulated, the damage is limited to what its tools are allowed to do.
Prompt injection is an attack in which text the model reads, typed by a user or hidden in an email, web page or document, contains instructions that override the developer's intent. Indirect injection arrives through retrieved or tool-supplied content. It cannot be fully filtered out, so defences have to limit what a persuaded model can do.