Skip to content

Conversation

nirinchev
Copy link
Collaborator

Proposed changes

Additionally, adds some docs

@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 11:38
@nirinchev nirinchev requested a review from a team as a code owner October 9, 2025 11:38
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the tool category for collection-indexes and enhances documentation by adding comprehensive JSDoc comments for tool types and operation categories.

  • Adds detailed JSDoc documentation for OperationType, ToolCategory, TelemetryToolMetadata, and formatUntrustedData function
  • Updates README documentation to clarify metadata operation type description

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tools/tool.ts Adds comprehensive JSDoc documentation for tool types and utility functions
README.md Updates metadata operation type description to include indexes

@nirinchev nirinchev enabled auto-merge (squash) October 9, 2025 11:39
- `delete` - Tools that delete resources, such as delete document, drop collection, etc.
- `read` - Tools that read resources, such as find, aggregate, list clusters, etc.
- `metadata` - Tools that read metadata, such as list databases, list collections, collection schema, etc.
- `metadata` - Tools that read metadata, such as list databases/collections/indexes, infer collection schema, etc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can we update the PR title update tool category for collection-indexes from read to metadata to help users find this out in the changelog

@nirinchev nirinchev merged commit bebfd33 into main Oct 9, 2025
16 checks passed
@nirinchev nirinchev deleted the ni/metadata-tools branch October 9, 2025 13:31
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.

4 participants