Skip to main content
Glama

Upload Markdown

gitlab_upload_markdown

Upload a Markdown file or attachment to a GitLab project from content or a local file path, enabling project documentation or asset storage.

Instructions

Upload markdown file/attachment to project.

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_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNo
filenameNoupload.md
file_pathNo
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.0
    • removedInput schema / properties / content / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / content / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / file_path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / file_path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the framework tells the agent this is a non-destructive but non-idempotent write with external effects. The description adds nothing beyond that: it does not say what is returned (a file URL or markdown link would be expected), what happens on re-upload with the same filename, or whether an existing attachment is replaced.

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?

One short, front-loaded sentence with no filler, which is structurally fine. But the brevity comes at the cost of substance rather than from efficiency — there is essentially nothing to trim and nothing informative left.

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 no output schema, zero parameter documentation, and only annotation-level behavior disclosure. For a four-parameter upload operation whose return value (URL/reference) is likely the point of calling it, the definition is materially incomplete.

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?

All four parameters have 0% schema description coverage, so the description carries the full burden and fails it. It never explains the relationship between 'content' and 'file_path' (are they alternatives? which wins?), what 'filename' defaults to or where it is used, or why 'project_id' is nullable despite being the target context.

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 specific verb and resource: 'Upload markdown file/attachment to project.' An agent can tell this writes a file into a project. It does not, however, distinguish the tool from near-neighbours such as gitlab_create_or_update_file or wiki-page creation, leaving the scope boundary (attachment vs. repository file) implicit.

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 prerequisite (project access, branch), and no named alternative for uploading file content. The agent must infer entirely from the tool name that this is for attachments/markdown rather than repository files.

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