Skip to main content
Glama

Add chart comment

add_comment

Post comments or replies on Datawrapper charts under your name so collaborators with chart access see feedback in the editor; supports Markdown and @mentions.

Instructions

Datawrapper: post a comment (or a reply to one) on a chart under the user's name; everyone with access to the chart sees it in the editor. Comments support Markdown; @mentions of team members notify them. Requires confirmation: a client dialog, or user_confirmed: true after the user agreed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chart_id": "<chart_id>",
      "text": "<text>"
    },
    "name": "add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesComment text.
chart_idYes
reply_toNoComment id to reply to (see get_comments).
user_confirmedNotrue means the user explicitly approved this exact action in the conversation; it then counts as the confirmation and no client dialog is shown. Without it, clients with elicitation show a confirmation dialog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • changedInput schema / properties / user_confirmed / description
      Previous value: -"Confirmation flag for clients without a confirmation dialog: true means the user approved this exact action in the conversation. Ignored when the client shows its own dialog."New value: +"true means the user explicitly approved this exact action in the conversation; it then counts as the confirmation and no client dialog is shown. Without it, clients with elicitation show a confirmation dialog."
  2. Addedv1.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (non-read-only, non-idempotent, open-world), the description discloses real behavior: audience/visibility in the editor, Markdown formatting, @mention notifications to teammates, and a confirmation protocol via client dialog or user_confirmed: true. That is exactly the extra context the annotations do not carry.

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?

A single dense sentence with the side-effect and audience information front-loaded, followed by the confirmation constraint. Every clause carries actionable information and nothing is redundant.

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

Completeness4/5

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

Covers the mutation's side effects, audience, and the confirmation gate, which is the main risk for an open-world write tool. The one remaining gap is that, with no output schema, it never hints at what comes back (e.g., a created comment id) that a caller might need for a follow-up reply.

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?

With 75% schema coverage the baseline is 3, and the description adds genuine meaning: it explains the confirmation mechanism that user_confirmed controls and the Markdown/@mention semantics of text, which the schema only labels as 'Comment text.' It does not explain chart_id or reply_to beyond what the schema already documents.

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

Purpose5/5

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

States a specific verb and resource — 'post a comment (or a reply to one) on a chart' — plus the effect ('everyone with access to the chart sees it in the editor'). This distinguishes it cleanly from read-side siblings such as get_comments without needing to name them.

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

Usage Guidelines4/5

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

Makes clear this is the path for both new comments and replies, and the schema's reply_to hint ('see get_comments') implicitly routes the read step to a sibling. It lacks an explicit when-not or an alternative named in the description itself, so it stops short of a 5.

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