LearnNewsExamplesServices
Frontmatter
id7496
titleAdd Annotations to MCP Tool Definitions
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 15, 2025, 1:45 PM
updatedAtOct 15, 2025, 1:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/7496
authortobiu
commentsCount0
parentIssue7477
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 15, 2025, 1:55 PM

Add Annotations to MCP Tool Definitions

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 15, 2025, 1:45 PM

The MCP tool specification allows for optional annotations to describe tool behavior (e.g., whether an operation is mutating or safe). This metadata is valuable for AI agents to make more intelligent and safer decisions, for example by requiring stricter user confirmation for mutating actions.

This ticket covers adding support for these annotations.

Acceptance Criteria

  1. A convention for defining annotations in openapi.yaml is established (e.g., a custom x-annotations field).
  2. At least one mutating tool (e.g., checkout_pull_request) is updated in openapi.yaml with an annotation like {"mutating": true}.
  3. toolService.mjs is refactored to parse these annotations and include them in the tool definitions.
  4. The tools/list response is verified to include the new annotations property for relevant tools.
tobiu assigned to @tobiu on Oct 15, 2025, 1:45 PM
tobiu added the enhancement label on Oct 15, 2025, 1:45 PM
tobiu added parent issue #7477 on Oct 15, 2025, 1:45 PM
tobiu added the ai label on Oct 15, 2025, 1:45 PM
tobiu referenced in commit f2a5af5 - "Add Annotations to MCP Tool Definitions #7496" on Oct 15, 2025, 1:55 PM
tobiu closed this issue on Oct 15, 2025, 1:55 PM