Skip to main content
Glama

update_journal

Edit comments on Redmine issues by updating journal entries with new content. Modify existing issue notes to reflect changes or corrections.

Instructions

Edits a journal (comment) on an issue. Requires Redmine 5.0+.

Args:
    journal_id: Comment ID (journals[].id from get_issue response)
    notes: New comment content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
journal_idYes
notesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The core implementation of the update_journal logic using the requests library.
    def update_journal(self, journal_id: int, notes: str) -> Dict[str, Any]:
        """Edit a journal (comment). Requires Redmine 5.0+."""
        try:
            url = f"{self._url}/journals/{journal_id}.json"
            resp = requests.put(
                url,
                json={"journal": {"notes": notes}},
                headers={"X-Redmine-API-Key": self._api_key},
                timeout=30,
            )
            if resp.status_code == 200:
                return resp.json().get("journal", {"id": journal_id, "notes": notes})
            elif resp.status_code == 204:
                return {"id": journal_id, "notes": notes}
            else:
                raise RedmineError(
                    f"update_journal failed: HTTP {resp.status_code} {resp.text}"
                )
        except RedmineError:
            raise
        except Exception as e:
            raise RedmineError(f"update_journal failed: {e}") from e
  • Tool registration and wrapper function for update_journal.
    @mcp.tool()
    def update_journal(journal_id: int, notes: str) -> Dict[str, Any]:
        """Edits a journal (comment) on an issue. Requires Redmine 5.0+.
    
        Args:
            journal_id: Comment ID (journals[].id from get_issue response)
            notes: New comment content
        """
        logger.info(f"tool=update_journal journal_id={journal_id}")
        try:
            return _client().update_journal(journal_id=journal_id, notes=notes)
        except RedmineError as e:
            logger.error(f"update_journal error: {e}")
            raise
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 mentions the Redmine version requirement, which is useful context. However, it doesn't describe key behavioral traits such as whether this is a mutation (implied by 'Edits'), what permissions are needed, if changes are reversible, or any rate limits. This leaves significant gaps for an agent to understand the tool's behavior.

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 front-loaded with the core purpose in the first sentence, followed by prerequisite and parameter details in a structured format. Every sentence adds value without redundancy, making it efficient and easy to parse for an agent.

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

Completeness3/5

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

Given that there is an output schema (which reduces the need to describe return values) and no annotations, the description provides basic purpose and parameter semantics. However, as a mutation tool with no annotations, it lacks details on behavioral aspects like error handling or side effects, making it minimally adequate but incomplete for safe invocation.

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

Parameters4/5

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

The description adds meaningful semantics beyond the input schema, which has 0% description coverage. It explains that 'journal_id' is a 'Comment ID (journals[].id from get_issue response)', clarifying its source and format, and 'notes' is 'New comment content', defining its purpose. This compensates well for the lack of schema descriptions, though it doesn't cover all potential nuances like character limits.

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 tool's purpose: 'Edits a journal (comment) on an issue.' It specifies the verb ('Edits'), resource ('journal'), and clarifies that a journal is a comment. However, it doesn't explicitly differentiate from sibling tools like update_issue, which might also modify issue-related data, leaving room for ambiguity.

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

Usage Guidelines3/5

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

The description provides some usage context by stating 'Requires Redmine 5.0+', which indicates a prerequisite. It doesn't explicitly say when to use this tool versus alternatives like update_issue or how it relates to other journal-related operations, so usage is implied rather than clearly defined.

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/daiji-sshr/redmine-mcp-stateless'

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