Skip to main content
Glama

create_or_update_file

Create or update a file in an existing GitHub repository. Specify owner, repo, path, content, and commit message to add or modify files, with optional SHA and branch for version control.

Instructions

Create or update a file in a repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNo
pathYes
repoYes
ownerYes
branchNo
contentYes
messageYes
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only restates the action. It does not mention side effects (e.g., overwriting existing files), required permissions, or error behavior, providing no additional transparency beyond the tool's name.

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

Conciseness2/5

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

The description is a single sentence, but it is under-specified rather than concise. It omits critical information needed for correct invocation, so the brevity is detrimental rather than useful.

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

Completeness1/5

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

For a tool with 7 parameters, no annotations, and no output schema, this description is far too thin to enable correct use. It lacks any mention of parameter relationships, default branch behavior, return values, or side effects, making it wholly incomplete for the tool's complexity.

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

Parameters1/5

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

The schema has 7 parameters with 0% description coverage, and the description does not explain any of them. The meaning of parameters like 'sha', 'branch', and 'message' is left entirely to the agent, with no compensation for the schema's lack of detail.

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 clearly states the verb 'Create or update' and the resource 'a file in a repository', which is specific and distinct from sibling tools like get_file or delete_file. However, it lacks any qualifiers about scope or conditions, so it does not fully differentiate from all possible alternatives.

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?

The description provides no guidance on when to use this tool versus alternatives such as get_file or delete_file. It does not mention prerequisites like branch existence or the need to supply a SHA for updates, leaving the agent to infer usage from the tool's name alone.

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/JessicaTemplet/github-mcp'

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