Read Resource
read_resourceRead a resource from the connected MCP server using its URI, returning content and metadata.
Instructions
Read a specific resource from the connected MCP server.
Reads a resource by URI and returns its content along with metadata.
Returns: Dictionary with resource content including: - success: True if resource was read successfully - resource: Object with uri, mimeType, and content - metadata: Content size and request timing
Raises: Returns error dict for various failure scenarios: - not_connected: No active connection - resource_not_found: Resource doesn't exist on server - execution_error: Resource read failed
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uri": "<uri>"
},
"name": "read_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | URI of the resource to read (e.g., 'config://settings') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||