Skip to content

Conversation

anoushkakumar321
Copy link
Contributor

Adding two tools for opportunity management ("get_opportunity" and "list_opportunities")

"get_opportunity": Get opportunity details (such as account, owner, stage, state, total value, and dates) by ID.

"list_opportunities": For filtering opportunities.

Filters:

  • Owner (DevRev user IDs)
  • Account (account IDs)
  • Stage (opportunity stages)
  • State (open, closed, and in_progress)
  • Date ranges (created, modified, target close)

(+ Pagination support for large results)

Anoushka Kumar added 4 commits July 11, 2025 11:06
- Add get_vistas tool definition with input schema validation - Implement complete handler with error handling and API integration - Add vista namespace to search tool for comprehensive vista support - Clean up leftover commented code - Use existing make_devrev_request utility for consistent API calls This enables users to retrieve vista (filtered view) information by ID, expanding the MCP server's DevRev integration capabilities.
- Add list_vistas tool definition with comprehensive parameter support - Implement list_vistas handler with all filtering options: - type, cursor, created_by, flavor, is_default, limit - members, mode, sort_by, state, skip_items - Support for pagination with cursor and mode parameters - Proper error handling and response formatting - Enables listing and filtering of DevRev vistas with advanced options
- Add get_opportunity tool to retrieve opportunity details by ID - Add list_opportunities tool to list opportunities with filtering options - Support filtering by owner, account, stage, state, and date ranges - Include pagination support for large result sets
@anoushkakumar321 anoushkakumar321 requested a review from a team as a code owner July 14, 2025 05:46
@anoushkakumar321
Copy link
Contributor Author

Closing to create a PR with just opportunity tools

@anoushkakumar321 anoushkakumar321 deleted the add-opportunity-tools branch July 14, 2025 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant