# add_comment (/docs/reference/mcp-tools/add_comment)



{/* Generated by apps/docs/scripts/generate-mcp-pages.mjs — do not edit by hand. */}

Post a markdown comment (@mentions notify + grant context access).

|                     |                   |
| ------------------- | ----------------- |
| Required permission | `work:write`      |
| Capability ID       | `comments.create` |
| Destructive         | No                |

## Parameters [#parameters]

| Parameter    | Type          | Required | Notes |
| ------------ | ------------- | -------- | ----- |
| `body`       | string        | yes      |       |
| `parentId`   | string (uuid) | no       |       |
| `workItemId` | string (uuid) | yes      |       |

## Input schema (JSON Schema) [#input-schema-json-schema]

```json
{
  "type": "object",
  "properties": {
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000
    },
    "parentId": {
      "type": "string",
      "format": "uuid"
    },
    "workItemId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "body",
    "workItemId"
  ],
  "additionalProperties": false
}
```

## Access control [#access-control]

A call succeeds only when the personal access token's scopes **and** the holder's role both allow `work:write` (effective permission = scope ∩ role, default-deny). The tool runs inside the token owner's organization — tenancy is never a parameter.
