Skip to main content
Glama

Add comment

gitlab_create_note

Add comments to GitLab issues, merge requests, snippets, epics, or commits. Embed uploaded screenshots using markdown.

Instructions

Posts a comment on an issue, merge request, snippet, epic or commit. Embed uploaded screenshots with the markdown returned by gitlab_upload_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iidYesIssue/MR iid, snippet id, epic iid, or commit SHA
bodyYesMarkdown comment body
group_idNoRequired for epics
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
target_typeYes
Behavior3/5

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

Annotations indicate a non-read-only but non-destructive operation, which aligns with the description's 'Posts a comment'. The description adds a useful behavioral tip about embedding screenshots via gitlab_upload_file, but does not disclose return behavior or side effects beyond the obvious write action.

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?

Two sentences, front-loaded with the primary action and supported target types. The second sentence is an actionable usage tip. No redundancy or wasted words.

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?

The tool has moderate complexity with 5 parameters and no output schema, but the description covers the main purpose and a useful cross-tool workflow. It does not explicitly mention required group_id for epics or project_id fallback, but those are present in the schema, so the description is adequately complete.

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?

Schema coverage is 80%, so the schema already documents most parameters. The description adds slight value by mentioning markdown from gitlab_upload_file for the body parameter, but it does not compensate for the undocumented group_id or project_id fallback details, which remain in the schema.

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?

The description uses a specific verb 'Posts' and clearly identifies the resource as 'a comment' on various target types (issue, merge request, snippet, epic, commit). This distinguishes it from sibling tools like gitlab_update_note or gitlab_reply_to_discussion.

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?

The description gives clear context on what targets it applies to, which helps the agent choose this tool for generic comment creation. However, it does not explicitly mention alternatives or when not to use it compared to discussion-thread tools, so it lacks exclusions.

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/amalychev/gitlab-mcp'

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