Based on the MCP documentation, the two notable types were CallToolRequestSchema
and ReadResourceRequestSchema
. CallToolRequestSchema
clarly says that when a tool execution is called, the logic within that tool function gets executed. It can talk to any Http server or fetch data from database or any other IO operations.
But, what's exact use of ReadResourceRequestSchema
? Why it's important and what's the exact use of it? Is it only to set the initial context for LLM to know what sort of data we are talking about and what's initial data?