Skip to content

Conversation

@jirispilka
Copy link
Collaborator

@jirispilka jirispilka commented Nov 11, 2025

close: #327

Add annotations to all internal and Actor tools:
- title: Short display name (sentence case, Actor/Apify capitalized)
- readOnlyHint: true for read-only tools
- openWorldHint: true only for tools accessing open world (external web/Actors), not Apify platform

Examples: call-actor and get-html-skeleton are openWorld; search-actors and fetch-apify-docs are not
@github-actions github-actions bot added the t-ai Issues owned by the AI team. label Nov 11, 2025
@jirispilka jirispilka requested a review from yfe404 November 11, 2025 10:04
Copy link
Collaborator

@yfe404 yfe404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with full test suite:

  • Build & Type Check: Passed
  • Unit Tests: 146/146 passed
  • Integration Tests: 150/151 passed (1 unrelated timeout)

Question about annotation strategy:

I noticed that openWorldHint is only explicitly set to true for tools that interact with external websites (call-actor, Actor tools, get-html-skeleton), but is omitted for tools that interact with the Apify API (add-actor, search-actors, fetch-actor-details).

Since openWorldHint defaults to true in the MCP spec, this means:

  • Tools with explicit openWorldHint: true → "truly open world" (external websites)
  • Tools without it → default to true anyway (Apify platform)

Is this intentional? Should we consider explicitly setting openWorldHint: false for Apify-platform-only tools to make the distinction clearer, or is the current approach (explicit only for "truly open" tools) the intended design?

Either way, the current implementation works correctly! Just curious about the design rationale.

@jirispilka jirispilka requested a review from yfe404 November 14, 2025 14:17
@jirispilka
Copy link
Collaborator Author

Thanks @yfe404 , good catch. I missed that the openWorldHint is true by default

@jirispilka jirispilka merged commit 149cbbc into master Nov 19, 2025
4 checks passed
@jirispilka jirispilka deleted the feat/add-tool-annotations branch November 19, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP servers must provide all applicable annotations for their tools, in particular readOnlyHint, destructiveHint, and title.

2 participants