Skip to content

add readOnlyHint annotation for query#21

Open
king-11 wants to merge 1 commit intoperforce:mainfrom
askscio:king-11/readonly-annotations
Open

add readOnlyHint annotation for query#21
king-11 wants to merge 1 commit intoperforce:mainfrom
askscio:king-11/readonly-annotations

Conversation

@king-11
Copy link
Copy Markdown

@king-11 king-11 commented Mar 24, 2026

readOnlyHint annotations is useful for MCP hosts which ask for users to approve tool calls in absence of missing intent.

by setting readOnlyHint they can prevent requiring user action and allow such actions to proceed without human in the loop.

as per mcp protocol guidelines

readOnlyHint?: boolean;    // If true, the tool does not modify its environment

Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant