الانتقال إلى المحتوى
Claude وأدوات الـ AI للبرمجةMCP Servers· 6 دقائق للقراءة

MCP Is More Than Tools: Resources, Prompts and Who Controls Each

Tools are for the model, resources for the application, prompts for the user. Pick the primitive by who should decide.

ReadIn

مقال كل يوم يفرق معاك

21 نوفمبر 2026
  • كاتب موثّق
  • MCP
محتويات المقال

Your platform team ships an MCP server for on-call work, and every capability is a tool: get_orders_schema, incident_review_template, restart_worker. A month later, the feedback is oddly specific. Engineers can't start the official incident review on demand: they ask for it, and Claude sometimes calls the template tool and sometimes writes a review in its own format. Meanwhile, the long orders schema shows up in conversations where nobody asked for it, because Claude decided it might help.

The common misconception

"An server only exposes tools, and the model decides when to use everything it offers." It's what most people see first:

  • Tutorials usually start with a tool or two, and many never get further.
  • Tool calls are the visible part: you watch Claude call a tool and read the result in the transcript.
  • Some integrations really are tools-only. Of the MCP feature set, the Claude API's MCP connector says "only tool calls are currently supported."
  • The protocol's name puts the model first, so it's natural to assume the model drives every part of it.

The half-truth: tools are model-controlled. But MCP defines three server primitives, and two of them are deliberately kept out of the model's hands.

What actually happens

Three primitives, three deciders

The docs summarize the server side in one table, with a column for who controls each primitive:

PrimitiveWho decidesProtocol methodsIn Claude Code
ToolsThe modeltools/list, tools/callClaude calls them; you approve or deny
ResourcesThe applicationresources/list, resources/templates/list, resources/readYou attach them with @server:uri
PromptsThe userprompts/list, prompts/getYou run them as /mcp__server__prompt

The useful question when you design a server isn't "what can it do?" but "who should decide when this happens?" Get it wrong one way and the model pulls in context nobody asked for, or skips a workflow a person wanted to start. Get it wrong the other way and people have to trigger, by hand, actions the model could have handled on its own.

Tools: the model decides, a human can say no

The docs call tools model-controlled, "meaning AI models can discover and invoke them automatically." They pair that with human oversight: hosts can show which tools are available, ask for approval before individual calls and keep a log of every execution. Tools fit actions and live queries: restarting a worker, searching tickets, creating a calendar event.

Resources: the application decides what becomes context

An is data identified by a URI, such as file:///project/src/main.rs or schema://orders. Clients list fixed resources with resources/list, discover parameterized ones such as travel://activities/{city}/{category} with resources/templates/list, fetch contents with resources/read, and can watch for changes through subscriptions/listen. In the docs' words, applications "can access this information directly and decide how to use it", whether by selecting parts, searching with embeddings or passing everything to the model. Each resource can also declare a MIME type and annotations, such as an audience of user or assistant and a priority from 0.0 to 1.0: hints the client can use when it decides what to include.

Claude Code shows what that looks like. Type @ and resources appear next to your files; a reference like @ops:schema://orders is fetched and "included as attachments" in your message. Claude Code also gives Claude tools to list and read resources when a server supports them. That's still the application's call: application-controlled means the host sets the policy, and a host may choose to let the model read.

Prompts: the user decides when a workflow starts

An is a named template with arguments. The client lists them with prompts/list, and prompts/get with argument values returns ready-made messages for the conversation. The spec is precise about what "user-controlled" means: "This refers to who decides when the prompt is used, not who authors its content. Prompt content is defined by the server."

In Claude Code, prompts become commands. Type / and each one appears as /servername:promptname (MCP), or run it directly as /mcp__servername__promptname, with arguments separated by spaces. The docs add that "prompt results are injected directly into the conversation", so the review format comes from your server every time instead of from Claude's improvisation. The flip side is trust: the server writes that text, so running a prompt is like pasting the server's words into your chat. Give prompt-bearing servers the same scrutiny as any code you install.

The ops server, reorganized

Same capabilities, each given to the right decider. With the Python SDK, that's three decorators:

Python ops_server.py
from mcp.server import MCPServermcp = MCPServer("ops")@mcp.tool()  # Claude decides when the whole DDL enters the chatdef get_orders_schema() -> str:    """Get the orders database schema."""    return read_doc("schemas/orders.sql")@mcp.tool()  # the user can't start the review: Claude must choose todef incident_review_template(incident_id: str) -> str:    """Get the incident review template for an incident."""    return render_review(incident_id)@mcp.tool()async def restart_worker(name: str) -> str:    """Restart one queue worker by name."""    return await ops_api.restart(name)

Nothing about the underlying functions changed. What changed is who triggers each one. The on-call engineer starts the review with the incident ID and gets the same structure every time. The schema enters context when someone attaches it. And restart_worker stays a tool, because acting on the world is exactly the decision MCP leaves to the model, under the host's approval rules.

How to apply it in your project

  1. Sort capabilities by deciderFor each thing your server offers, ask who should trigger it: the model, the application or a person. Only the first group should be tools.
  2. Turn read-only context into resourcesSchemas, runbooks, configs and docs get stable URIs. Use resource templates for families of records, such as orders://{order_id}.
  3. Turn repeatable workflows into promptsReviews, reports and checklists that a person starts on purpose become prompts with a few clear arguments.
  4. Keep tools for actions and live queriesGive them precise descriptions and let the host's approval flow guard anything with side effects.
  5. Test in every host you supportTry @ and / in Claude Code, and plan a fallback where a host, like the API's MCP connector, only speaks tools.

Key takeaways

  • MCP servers expose tools, resources and prompts, not just tools.
  • Tools are model-controlled, resources application-controlled, and prompts user-controlled.
  • Resources are URI-addressed context the host decides to load; Claude Code attaches them with @.
  • Prompts are server-authored templates a person runs, such as /mcp__ops__incident_review in Claude Code.
  • Host support varies: the Claude API's MCP connector currently handles only tool calls.

📚 المصادر

  1. Understanding MCP servers — Model Context Protocol
  2. Resources — MCP Specification 2026-07-28
  3. Prompts — MCP Specification 2026-07-28
  4. Connect Claude Code to tools via MCP — Claude Code Docs
  5. MCP connector — Claude API Docs

التعليقات (0)