Skip to main content
Glama

gitee_repo

Retrieve metadata, README, languages, commits, file contents, or branches for any Gitee repository by specifying the owner and repo name.

Instructions

Gitee repository intel - metadata, README, languages, commits, file tree and branches.

[RATIONALE] A single repo has many read surfaces; one portmanteau keeps the tool registry small while exposing all of them with a shared owner/repo contract.

Return Format

{"success": bool, "operation": str, "data": {...}} on success. On failure: {"success": false, "error": str, "error_type": str, "suggestions": [...]}

Examples

gitee_repo(operation="details", owner="dromara", repo="hutool") gitee_repo(operation="readme", owner="apache", repo="dubbo") gitee_repo(operation="commits", owner="macrozheng", repo="mall", limit=5) gitee_repo(operation="contents", owner="snailclimb", repo="JavaGuide", path="docs")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoPath within the repo (contents only).
repoYesRepo name.
limitNoMax rows (commits 1-100).
ownerYesRepo owner (user or org path on gitee.com).
operationYesOperation: 'details' full metadata; 'readme' decoded README markdown (None when absent); 'languages' byte/percent breakdown; 'commits' recent commit list; 'contents' file/dir listing for a path; 'branches' branch list.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the return format (success/error with suggestions) and notes that the 'readme' operation returns None when absent. It does not mention authentication requirements, rate limits, or any side effects. For a read-only tool, this is good but could be improved by stating that all operations are read-only and safe.

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?

The description is concise and well-structured with a rationale, a clear return format section, and multiple examples. Every sentence adds value, and the information is front-loaded. The examples are effective and easy to parse. No wasted words.

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

Completeness5/5

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

Given the tool's complexity (5 parameters, 6 operations, output schema present), the description is complete. It covers the purpose, each operation, return format, and failure behavior. The output schema exists, so return values are not needed in the description. The only minor gap is authentication, but overall it provides sufficient context for an agent to use the tool correctly.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds value by providing examples that show how parameters are used together (e.g., 'path' in contents operation, 'limit' in commits). The detailed enum descriptions for 'operation' in the schema are supplemented by the examples. The description contributes beyond the schema, hence a 4.

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 tool's purpose as 'Gitee repository intel' and lists the specific operations (metadata, README, languages, commits, file tree, branches). The rationale explains the design choice of a single portmanteau, and the examples and input schema reinforce the purpose. It effectively distinguishes from sibling tools like gitee_explore which are for broader exploration.

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 provides a rationale and examples showing typical usage scenarios (e.g., owner/repo contract). It implies when to use this tool (for reading repository data) but does not explicitly state when not to use it or how it compares to siblings like gitee_search or show_gitee_status_card. The examples are clear enough for an agent to infer usage, but formal guidance is missing.

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/sandraschi/gitee-mcp'

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