Skip to main content
Glama
devrev

DevRev MCP Server

Official
by devrev

get_sprints

Retrieve active or planned sprints for a specific part ID to manage and track issue progress within DevRev MCP Server efficiently.

Instructions

Get active or planned sprints for a given part ID. Use this to get the sprints for an issue based on its part.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ancestor_part_idYesThe ID of the part to get the sprints for.
stateNoThe state of the sprints to get. When the state is not provided in query, the tool will get the active sprints.

Implementation Reference

  • Handler implementation for the 'get_sprints' tool. Parses arguments, builds payload for DevRev 'vistas.groups.list' API, handles response, and returns sprint details.
    elif name == "get_sprints": if not arguments: raise ValueError("Missing arguments") payload = {"group_object_type": ["work"]} ancestor_part_id = arguments.get("ancestor_part_id") if not ancestor_part_id: raise ValueError("Missing ancestor_part_id parameter") payload["ancestor_part"] = [ancestor_part_id] state = arguments.get("state") if not state: state = "active" payload["state"] = [state] response = make_devrev_request( "vistas.groups.list", payload ) if response.status_code != 200: error_text = response.text return [ types.TextContent( type="text", text=f"Get sprints failed with status {response.status_code}: {error_text}" ) ] sprints = response.json().get("vista_group", []) return [ types.TextContent( type="text", text=f"Sprints for '{ancestor_part_id}':\n{sprints}" ) ]
  • Registration of the 'get_sprints' tool in the list_tools() function, including name, description, and input schema definition.
    name="get_sprints", description="Get active or planned sprints for a given part ID. Use this to get the sprints for an issue based on its part.", inputSchema={ "type": "object", "properties": { "ancestor_part_id": {"type": "string", "description": "The ID of the part to get the sprints for."}, "state": { "type": "string", "enum": ["active", "planned"], "description": "The state of the sprints to get. When the state is not provided in query, the tool will get the active sprints." }, }, "required": ["ancestor_part_id"], }, ),

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devrev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server