
MCP Is More Than Tools: Resources, Prompts and Who Controls Each
- كاتب موثّق
- MCP
محتويات المقال
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
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.
What actually happens
Three primitives, three deciders
tools/list, tools/call | |||
resources/list, resources/templates/list, resources/read | @server:uri | ||
prompts/list, prompts/get | /mcp__server__prompt |
Tools: the model decides, a human can say no
Resources: the application decides what becomes context
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.
@ 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
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."
/ 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
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)from mcp.server import MCPServermcp = MCPServer("ops")@mcp.resource("schema://orders") # attached on purpose: @ops:schema://ordersdef orders_schema() -> str: """The orders database schema, as SQL DDL.""" return read_doc("schemas/orders.sql")@mcp.prompt() # run by a person: /mcp__ops__incident_review INC-2041def incident_review(incident_id: str) -> str: """Start a blameless incident review in the team's format.""" return render_review(incident_id)@mcp.tool() # an action: the model decides, the host asks for approvalasync def restart_worker(name: str) -> str: """Restart one queue worker by name.""" return await ops_api.restart(name)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
Sort capabilities by decider For each thing your server offers, ask who should trigger it: the model, the application or a person. Only the first group should be tools. Turn read-only context into resources Schemas, runbooks, configs and docs get stable URIs. Use resource templates for families of records, such as orders://{order_id}.Turn repeatable workflows into prompts Reviews, reports and checklists that a person starts on purpose become prompts with a few clear arguments. Keep tools for actions and live queries Give them precise descriptions and let the host's approval flow guard anything with side effects. Test in every host you support Try @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_reviewin Claude Code.Host support varies: the Claude API's MCP connector currently handles only tool calls.
التعليقات (0)