Skip to content

MCP: tools, resources and prompts

The Model Context Protocol in reference form: host, client, server, capabilities and trust boundaries.

8 MIN READUPDATED 2026-11-18Agents & agentic AI
ORIGINAL DIAGRAM · AI STACKAPPLICATIONinterface + workflowsPOLICY & EVALUATIONguardrails, auditsAGENT + TOOLSplanning, tool callsFOUNDATION MODELreasoning

Original stack diagram — not a copied image

§ 00Notes & rules
Protocol, not an agent
MCP standardises how a client discovers and calls tools/resources/prompts on a server. It does not decide goals or autonomy — that remains in the host/agent design.
Servers are privileged boundaries
Treat every MCP server as a security boundary. Scope credentials to the server, validate inputs server-side, and log caller identity and outcomes for audit.
§ 01Key concepts
MCP hostThe AI application that wants context or actions.
MCP clientThe component in the host that maintains a connection to a server.
MCP serverA service exposing tools, resources and prompts with declared schemas.
Capability negotiationThe handshake where client and server agree on supported features.
§ 02When to use
  • Multiple models or clients need the same tool access.
  • You want auditable, permission-aware tool exposure.
  • Third parties should extend your AI application.
§ 03How it works
  1. 01Client connects to server and negotiates capabilities.
  2. 02Server advertises tools, resources and prompt templates.
  3. 03Host calls a tool with typed arguments; server executes with its own permissions.
  4. 04Results and diagnostics return to the model as context.
§ 04Use cases & scenarios

One order tool for several clients

Context
Multiple AI clients need to look up order status.
Problem
Each client would otherwise need a bespoke integration.
Approach
Wrap the order API in an MCP server with a declared input schema and capability negotiation.
Outcome
Consistent, discoverable tool access across clients.

Third-party extension with least privilege

Context
An external partner may read selected order resources.
Problem
Broad credentials would expose far more than the partner needs.
Approach
Expose read-only resources through a server with scoped credentials and audited calls.
Outcome
The partner gets useful access without an over-privileged integration.
§ 05Examples

Tool definition (illustrative)

json
{
  "name": "search_docs",
  "description": "Search internal documentation by query.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "query": { "type": "string", "minLength": 2 },
      "limit": { "type": "integer", "minimum": 1, "maximum": 20 }
    },
    "required": ["query"]
  }
}

Clients discover tools via capability negotiation; execution and permissions are enforced by the server.

Server config for an order-lookup tool

yaml
transport: http
credentials: { scope: "orders:read", owner: "server" }
allowed_tools: [lookup_order]
timeout_ms: 2000
audit: { caller_identity: true, outcome: true }

Credentials belong to the server, not the model. Validate arguments and log each call as an audit record.

§ 06Trade-offs

MCP servers

Up: Standard interface across clients

Down: Another service to operate and secure

Direct API calls

Up: Fewer components

Down: Custom integration per model/client

Broad tool surface

Up: Flexible

Down: Harder to audit and secure

§ 07Implementation checklist
  • Treat an MCP server as a privileged integration point.
  • Scope credentials to the server, not the model.
  • Validate all tool arguments server-side.
  • Log tool calls with caller identity and outcome.
§ 08Configuration reference
KeyTypical valueNote
transportstdio / HTTPChoose by deployment.
allowed_toolsexplicit listDeny by default.
timeoutper toolPrevent long-running calls.
§ 09Troubleshooting
SymptomCauseFix
Client cannot see toolsFailed capability negotiationCheck version compatibility and handshake logs.
Tool call deniedServer-side permission scopeReview server credentials, not the prompt.
§ 10Frequently asked questions

Is MCP an API?

No. It is a protocol for exposing tools, resources and prompts to AI clients; servers often wrap existing APIs.

Does MCP grant autonomy?

No. It provides controlled access. Autonomy comes from the agent design around it.

More in Agents & agentic AI