Skip to main content
Glama

Upload wiki page attachment

gitlab_upload_wiki_page_attachment

Uploads a file as an attachment to a GitLab project wiki page, returning attachment data for embedding or linking in wiki content.

Instructions

Upload an attachment to a wiki page for a project.

Args: **kwargs: Additional parameters for the request (e.g., project_id, file, branch).

Returns: Response: A wrapper containing the original response and the raw attachment data.

Raises: MissingParameterError: If the project_id, file, or branch is missing. ParameterError: If invalid parameters are provided.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_upload_wiki_page_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
fileNo
slugNo
titleNo
branchNo
contentNo
versionNo
project_idNo
format_typeNo
render_htmlNo
with_contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv27.3.20
    • removedInput schema / properties / api_parameters
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
  2. First observedv27.3.13

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior not in the annotations: it names the error conditions (MissingParameterError for project_id/file/branch, ParameterError for invalid params) and describes that the return wraps the original response plus raw attachment data. It still omits file-size limits, supported formats, and auth requirements, so it adds context but not a full behavioral picture.

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

Conciseness3/5

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

The lead sentence is front-loaded and clear, but the rest is auto-generated docstring boilerplate (Args/Returns/Raises) that spends lines on a **kwargs catch-all rather than on the real parameters. Nothing is badly redundant, yet little of the text earns its place given the 11 concrete parameters available.

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

Completeness2/5

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

This is a mutation tool with 11 parameters, zero schema descriptions, and no output schema. The description does helpfully cover return shape and error conditions, which partly offsets the missing output schema, but it leaves the parameter contract essentially undocumented and gives no guidance on required inputs — especially odd since the schema marks zero params required while the description implies three are mandatory.

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

Parameters2/5

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

Schema description coverage is 0% across 11 parameters, so the description must compensate, and it does not. It mentions only project_id, file and branch as loose 'e.g.' examples inside **kwargs, leaving data, slug, title, content, version, format_type, render_html and with_content entirely unexplained — several of which look like wiki-page-edit fields rather than attachment-upload fields.

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 states a clear verb-plus-resource: 'Upload an attachment to a wiki page for a project.' An agent can tell it is a write to a wiki page's attachment store. It stops short of differentiating from siblings such as gitlab_create_wiki_page, gitlab_update_wiki_page or gitlab_download_release_asset, so no 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no named alternative. The text never says when to choose this over gitlab_update_wiki_page or how it relates to the other wiki tools, so an agent must infer the routing from the tool name alone.

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

Deploy Server

Other Tools