# mcp_tool_is_coherently_read_only

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/auto_mode/mcp_tool_is_coherently_read_only)

Return whether an MCP tool has coherent read-only annotations.

## Signature

```python
mcp_tool_is_coherently_read_only(
    tool: object,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `tool` | `object` | Yes | Wrapped MCP tool. |

## Returns

`bool`

`True` only for literal `readOnlyHint=true` without a destructive hint.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/auto_mode.py#L683)