Skip to content

Conversation

@triepod-ai
Copy link

Summary

Add MCP tool annotations to both tools to help LLM clients understand tool safety characteristics.

Changes

Added annotations field to each tool:

Tool Annotations
getApiOverview readOnlyHint: true, openWorldHint: true
getApiOperation readOnlyHint: true, openWorldHint: true

Why These Annotations

  • readOnlyHint: true: Both tools only read/fetch data, they don't modify anything
  • openWorldHint: true: Both tools fetch OpenAPI specifications from external sources (openapisearch.com and user-provided URLs)

Test Plan

  • Minimal change (1 file, 10 lines added)
  • Follows MCP specification for tool annotations
  • No functional changes to tool behavior

🤖 Generated with Claude Code

Add annotations to improve LLM decision-making about tool safety:

- getApiOverview: readOnlyHint=true, openWorldHint=true
- getApiOperation: readOnlyHint=true, openWorldHint=true

Both tools are read-only operations that fetch and parse OpenAPI
specifications from external sources (openapisearch.com), hence
the openWorldHint annotation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

2 participants