Skip to main content
Glama
devrev

DevRev MCP Server

Official
by devrev

add_timeline_entry

Add updates or progress notes to work items and enhancements in DevRev. Use this tool to document changes, track status, and maintain project timelines.

Instructions

Add a timeline entry to a work item (issue, ticket) or part (enhancement)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe DevRev ID of the work item (issue, ticket) or part (enhancement)
timeline_entryYesThe timeline entry about updates to the work item (issue, ticket) or part (enhancement).

Implementation Reference

  • Registration of the 'add_timeline_entry' tool including its description and input schema definition.
        name="add_timeline_entry",
        description="Add a timeline entry to a work item (issue, ticket) or part (enhancement)",
        inputSchema={
            "type": "object",
            "properties": {
                "id": {"type": "string", "description": "The DevRev ID of the work item (issue, ticket) or part (enhancement)"},
                "timeline_entry": {"type": "string", "description": "The timeline entry about updates to the work item (issue, ticket) or part (enhancement)."},
            },
            "required": ["id", "timeline_entry"],
        }
    ),
  • Handler implementation for 'add_timeline_entry' tool that validates input, constructs payload, and calls the DevRev API to create a timeline entry of type 'timeline_comment' on the specified object.
    elif name == "add_timeline_entry":
        if not arguments:
            raise ValueError("Missing arguments")
    
        payload = {"type": "timeline_comment"}
    
        id = arguments.get("id")
        if not id:
            raise ValueError("Missing id parameter")
        payload["object"] = id
    
        timeline_entry = arguments.get("timeline_entry")
        if not timeline_entry:
            raise ValueError("Missing timeline_entry parameter")
        payload["body"] = timeline_entry
        
        timeline_response = make_devrev_request(
            "timeline-entries.create",
            payload
        )
        if timeline_response.status_code != 201:
            error_text = timeline_response.text
            return [
                types.TextContent(
                    type="text",
                    text=f"Create timeline entry failed with status {timeline_response.status_code}: {error_text}"
                )
            ]
        
        return [
            types.TextContent(
                type="text",
                text=f"Timeline entry created successfully: {timeline_response.json()}"
            )
        ]
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool adds an entry, implying a write/mutation operation, but does not disclose any behavioral traits such as permissions required, whether the action is idempotent, rate limits, or what happens on success/failure (e.g., response format). This leaves significant gaps for an agent to understand how to use it safely and effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without any wasted words. It directly states what the tool does, making it easy for an agent to parse quickly. Every part of the sentence earns its place by specifying the action and target resources.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a write operation with no annotations and no output schema, the description is incomplete. It does not address behavioral aspects (e.g., side effects, error handling) or provide context on the return values, leaving the agent with insufficient information to use the tool confidently in a broader context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with clear descriptions for both parameters ('id' and 'timeline_entry'), so the schema does the heavy lifting. The description adds no additional meaning beyond what the schema provides (e.g., it does not explain format constraints or examples for the timeline entry). Thus, it meets the baseline of 3 for high schema coverage without compensating with extra insights.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Add a timeline entry') and the target resource ('to a work item (issue, ticket) or part (enhancement)'), providing a specific verb+resource combination. However, it does not distinguish this tool from potential sibling tools that might also modify timeline entries (e.g., 'update_timeline_entry' or 'delete_timeline_entry'), though no such siblings are listed, so the distinction is implicit rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites (e.g., needing an existing work item or part), exclusions (e.g., not for other resource types), or direct alternatives among the sibling tools (e.g., 'update_work' might also modify timeline entries). Usage is implied by the purpose but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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