Skip to main content
Glama

configure_gitea

Configure the Gitea connection at runtime: set base URL, owner, repo, or username to switch instances or identities. Re-discovers credentials from local sources; tokens never pass through.

Instructions

Configure the Gitea connection at runtime (session-scoped, never persisted). Accepts base_url, owner, repo, and/or username — at least one is required. Providing base_url or username triggers credential re-discovery from the existing three sources (git config [gitea] token, GITEA_TOKEN env, git credential helpers). Tokens never pass through this tool; they are always read from the local credential sources. username strictly narrows the git credential lookup to that identity (no fallback to other identities). Use this when the server started unconfigured or when you need to switch instances/identities mid-session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoDefault repository name for tool calls that omit the repo argument.
ownerNoDefault repository owner for tool calls that omit the owner argument.
base_urlNoGitea instance base URL (e.g. https://gitea.example.com). Providing base_url — even unchanged — triggers credential re-discovery for that host. Use this as the 'I just added a git credential, refresh now' idiom.
usernameNoSelects which identity git's credential machinery should use for the host. The lookup is narrowed to this username — no fallback to other identities. Providing username triggers credential re-discovery.
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries full disclosure burden, and it does so exceptionally well. It discloses session-scoping, non-persistence, credential re-discovery triggers, that tokens never pass through this tool (always read from local sources), the three credential sources, and username's strict narrowing behavior with no fallback. This is rich behavioral context for a configuration tool.

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 well-structured and every sentence earns its place. It front-loads the key insight (session-scoped, never persisted) and covers re-discovery triggers, token handling, and username semantics without redundancy or padding. Concise yet information-dense.

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

Completeness4/5

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

For a config tool with no output schema and significant side effects, this is quite complete: it covers state semantics, credential handling, discovery triggers, and usage context. The only minor gap is it doesn't state whether setting one parameter resets or preserves other previously-set values (partial-update semantics), which could matter for an agent reasoning about session state.

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 coverage is 100%, so baseline is 3. The description adds meaning beyond the schema by explaining that providing base_url or username triggers credential re-discovery, listing the three discovery sources, the refresh idiom for base_url, and username's no-fallback narrowing. This is genuine value-add over the schema text, though some parameter details are already well-documented in the schema itself.

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 what the tool does: configures the Gitea connection at runtime with session-scoped, non-persisted semantics. It enumerates the specific parameters (base_url, owner, repo, username) and explicitly distinguishes this from every sibling, which are all resource CRUD operations (issues, comments, releases, etc.) — this has a clearly different purpose.

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 explicit when-to-use guidance: 'Use this when the server started unconfigured or when you need to switch instances/identities mid-session.' It also conveys the 'I just added a git credential, refresh now' idiom in the schema parameter description. It doesn't explicitly name alternatives for when not to use, but no sibling serves the same purpose, so exclusion isn't critical here.

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

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/amonstack/gitea_mcp'

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