Skip to main content
Glama
devops-mcp-server-extension

devops-mcp-server-extension

by hakunova

update_file

Updates an existing file in a Codeup repository by applying new content and committing the change to a specified branch.

Instructions

[Code Management] Update an existing file in a Codeup repository

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": {
      "organizationId": "<organizationId>",
      "repositoryId": "<repositoryId>",
      "filePath": "<filePath>",
      "content": "<content>",
      "commitMessage": "<commitMessage>",
      "branch": "<branch>"
    },
    "name": "update_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchYesBranch name
contentYesFile content
encodingNoEncoding rule, options {text, base64}, default is texttext
filePathYesFile path, needs to be URL encoded, for example: /src/main/java/com/aliyun/test.java
repositoryIdYesRepository ID or a combination of organization ID and repository name, for example: 2835387 or organizationId%2Frepo-name (Note: slashes need to be URL encoded as %2F)
commitMessageYesCommit message, not empty, no more than 102400 characters
organizationIdYesOrganization ID, can be found in the basic information page of the organization admin console

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations provided; description only states 'Update an existing file' without disclosing behaviors like error handling, permission requirements, or idempotency.

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?

Single sentence with category prefix; no wasted words, though could include more detail without sacrificing conciseness.

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?

Given 7 parameters (6 required), no output schema, and complexity (encoding, URL encoding), the description is too minimal; lacks information about return values, errors, or workflow.

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 covers 100% of parameters with descriptions; the description adds no extra meaning beyond the schema, but baseline 3 is appropriate given coverage.

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 clearly states the verb 'Update' and resource 'file' within a 'Codeup repository', distinguishing it from sibling tools like create_file and delete_file.

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?

No guidance on when to use this tool versus alternatives (e.g., create_file for new files). Lacks context on prerequisites or exclusionary conditions.

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