---
id: adk-python-loads-resources-by-name
title: ADK Python's resource tool is opt-in and takes resource names, never URIs
kind: idiosyncrasy
summary: With use_mcp_resources=True, McpToolset adds one tool, load_mcp_resource. The model passes resource names, ADK maps each name to a URI through resources/list, and the contents are appended to the next model request as user turns. The default is off.
capabilities:
  - resources
clients:
  - adk-python
specVersions:
  - 2025-11-25
  - 2026-07-28
sources:
  - url: https://github.com/google/adk-python
    title: src/google/adk/tools/load_mcp_resource_tool.py, LoadMcpResourceTool
    commit: 03725e8c
    path: src/google/adk/tools/load_mcp_resource_tool.py:LoadMcpResourceTool
    date: 2026-11-27
  - url: https://github.com/google/adk-python
    title: src/google/adk/tools/mcp_tool/mcp_toolset.py, use_mcp_resources and the three resource methods
    commit: 03725e8c
    path: src/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset.__init__,McpToolset
    date: 2026-11-27
status: current
lastVerified: 2026-11-27
related:
  - model-initiated-resource-read
  - hermes-names-its-resource-tools-a-fifth-way
  - openclaw-names-its-resource-tools-a-fourth-way
canonical: https://canimcp.io/research/adk-python-loads-resources-by-name
last-updated: 2026-11-26
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# ADK Python's resource tool is opt-in and takes resource names, never URIs

Kind: idiosyncrasy · Status: current · Last verified: 2026-11-27 · Clients: [adk-python](/clients/adk-python.md) · Revisions: `2025-11-25`, `2026-07-28`

Read at `c6586f19`.

`McpToolset(use_mcp_resources=True)` appends one tool, `load_mcp_resource`, after the server's own tools. The parameter defaults to `False`, and with the default ADK itself sends no `resources/*` request for that toolset. The constructor docstring says `tool_filter` does not apply to this tool.

## The mechanism

1. Before each model request, `LoadMcpResourceTool.process_llm_request` calls `resources/list` and adds the JSON array of resource names to the instructions, with a sentence telling the model to call `load_mcp_resource` before answering questions about them.
2. The tool takes one argument, `resource_names`, an array of strings. Its result is a status stub: the names, and the text "resource contents temporarily inserted and removed. to access these resources, call load_mcp_resource tool again."
3. When the next model request is built, the same hook finds that function response as the last content, calls `McpToolset.read_resource` for each name, and appends one `user` turn per content item: a text part "Resource <name> is:" followed by the text, or by the decoded blob with its MIME type.

`read_resource` resolves a name through `get_resource_info`, which calls `resources/list` again and returns the first resource whose `name` matches. It then calls `resources/read` with that resource's `uri`.

## What follows from the code

- The model never sees a URI. It sees names in the instructions and passes names back.
- Two resources with the same name cannot both be read. The first match is returned.
- `list_resources` sends no cursor, so a resource on a later page is neither listed to the model nor found by name.
- `resources/templates/list` is never called. A templated resource cannot be read.
- Reading one resource costs a `resources/list` and a `resources/read`, and every model request adds one more `resources/list`.
- The contents are appended to the outgoing request only. The status text tells the model to call the tool again when it needs them later.
- A failure to list or read is logged as a warning and the request goes ahead without the content.

## Against the other reads

Codex and Kilo Code are recorded in this registry with three host tools named `list_mcp_resources`, `list_mcp_resource_templates` and `read_mcp_resource`; opencode now has two, without the templates tool. [[model-initiated-resource-read]] describes the proposal those tools anticipate, which is a way for the model to read a resource by URI. ADK has one tool, under a different name, and it takes names. Its own result carries a status stub, and the contents arrive as separate user turns on the next request.

## Sources

- [src/google/adk/tools/load_mcp_resource_tool.py, LoadMcpResourceTool](https://github.com/google/adk-python), commit `03725e8c`, `src/google/adk/tools/load_mcp_resource_tool.py:LoadMcpResourceTool`, 2026-11-27
- [src/google/adk/tools/mcp_tool/mcp_toolset.py, use_mcp_resources and the three resource methods](https://github.com/google/adk-python), commit `03725e8c`, `src/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset.__init__,McpToolset`, 2026-11-27

## Related notes

- [model-initiated-resource-read](/research/model-initiated-resource-read.md)
- [hermes-names-its-resource-tools-a-fifth-way](/research/hermes-names-its-resource-tools-a-fifth-way.md)
- [openclaw-names-its-resource-tools-a-fourth-way](/research/openclaw-names-its-resource-tools-a-fourth-way.md)
