Skip to main content
Glama

Import a comment (import)

import_comment
Idempotent

Creates a comment on an imported page with its original author and dates; re-imports are idempotent by source_id, and parent_comment_id attaches replies.

Instructions

Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Only works in a space created with import_create_space (otherwise 403 IMPORT_SPACE_NOT_IMPORTED). Create a comment on an imported page with its original author and dates. Idempotent by source_id. Replies use parent_comment_id = the Sophia id, or the Confluence id, of a comment you imported before; the API flattens threads to ONE level: a reply to a reply attaches to the first comment of the thread. Comments cannot carry files. Markdown rules are the same as pages (mentions, ticket keys, links); raw HTML is not rendered.

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": {
      "page_id": "<page_id>",
      "source_id": "<source_id>",
      "body": "<body>",
      "author_user_id": "<author_user_id>",
      "created_at": "<created_at>"
    },
    "name": "import_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
page_idYesSophia page id (uuid), from get_page_tree, search_pages or recent_pages.
edited_atNoISO 8601 date-time, e.g. 2023-05-02T10:11:12.000Z.
source_idYesThe id of this comment in Confluence. Importing the same source id again changes nothing.
created_atYesISO 8601 date-time, e.g. 2023-05-02T10:11:12.000Z.
author_user_idYesSophia user id (uuid) from import_find_users or import_ensure_user.
parent_comment_idNoParent comment: its Sophia id (uuid) or its Confluence id (resolved through the import map; it must be imported already).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (which already cover idempotentHint and destructiveHint), the description discloses that nothing is emailed or notified, that no per-row audit events are written, the specific 403 error code for a non-imported space, and the non-obvious thread-flattening rule where a reply to a reply reattaches to the first comment. The only notable omission is any hint about the response payload, which is minor for an import write.

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

Conciseness4/5

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

It is dense but nearly every clause carries operational information, with no filler. The main structural weakness is that auth prerequisites lead and the actual purpose statement arrives third, so the core verb+resource is not fully front-loaded.

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

Completeness5/5

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

For a 7-parameter import mutation with no output schema, the description covers auth, preconditions, error codes, idempotency key, threading behavior, content-format constraints and attachment limitations. An agent has everything needed to call it correctly on the first attempt.

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?

Schema coverage is already 86%, so the baseline is 3, but the description adds genuine meaning: source_id drives idempotency ("importing the same source id again changes nothing"), parent_comment_id accepts either a Sophia uuid or a Confluence id resolved through the import map, and the one-level flattening constraint constrains what a caller may pass. body semantics are also extended via the Markdown/raw-HTML rule.

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?

"Create a comment on an imported page with its original author and dates" gives a specific verb, resource and scope, and the import framing plus the import_create_space prerequisite cleanly separates it from the sibling add_comment. An agent can identify the operation and its domain without opening the schema.

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

Usage Guidelines5/5

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

It states the exact precondition (space created by import_create_space, otherwise 403 IMPORT_SPACE_NOT_IMPORTED), the auth requirement (import:write token owned by a global admin), and the keying rule for idempotency (source_id). It also tells the agent how to build a reply (parent_comment_id by Sophia or Confluence id, parent must already be imported) and what the tool cannot do (no attachments).

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