Skip to main content
Glama

tool_update_rubric_item

Modify rubric item descriptions or point values in Gradescope, with changes applying to all affected submissions after confirmation.

Instructions

Update an existing rubric item's description or weight.

**WARNING**: Changes cascade to ALL submissions with this item applied.

Args:
    course_id: The Gradescope course ID.
    question_id: The question ID.
    rubric_item_id: The rubric item ID to update.
    description: New description, or None to keep unchanged.
    weight: New point value, or None to keep unchanged.
    confirm_write: Must be True to apply the update.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYes
question_idYes
rubric_item_idYes
descriptionNo
weightNo
confirm_writeNo

Implementation Reference

  • The actual logic for updating a rubric item.
    def update_rubric_item(
        course_id: str,
        question_id: str,
        rubric_item_id: str,
        description: str | None = None,
        weight: float | None = None,
        confirm_write: bool = False,
    ) -> str:
        """Update an existing rubric item's description or weight.
    
        **WARNING**: Changes cascade to ALL submissions that have this item applied.
        Updating the weight will immediately change every affected student's score.
    
        Args:
            course_id: The Gradescope course ID.
            question_id: The question ID.
            rubric_item_id: The rubric item ID to update.
            description: New description, or None to keep unchanged.
            weight: New point value, or None to keep unchanged.
            confirm_write: Must be True to apply the update.
        """
        if not course_id or not question_id or not rubric_item_id:
            return "Error: course_id, question_id, and rubric_item_id are required."
    
        if description is None and weight is None:
            return "Error: at least one of description or weight must be provided."
    
        if not confirm_write:
            details = [
  • The MCP tool registration for 'tool_update_rubric_item', which delegates to the 'update_rubric_item' helper function.
    def tool_update_rubric_item(
        course_id: str,
        question_id: str,
        rubric_item_id: str,
        description: str | None = None,
        weight: float | None = None,
        confirm_write: bool = False,
    ) -> str:
        """Update an existing rubric item's description or weight.
    
        **WARNING**: Changes cascade to ALL submissions with this item applied.
    
        Args:
            course_id: The Gradescope course ID.
            question_id: The question ID.
            rubric_item_id: The rubric item ID to update.
            description: New description, or None to keep unchanged.
            weight: New point value, or None to keep unchanged.
            confirm_write: Must be True to apply the update.
        """
        return update_rubric_item(
            course_id, question_id, rubric_item_id, description, weight, confirm_write
        )

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/Yuanpeng-Li/gradescope-mcp'

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