Skip to main content
Glama

OpenFactory

submit_obs_package

Submit an attached internal repository to OBS as a package build.

build_dependencies optionally names source packages already submitted for this same authorized build. Their matching target repositories are and their declared transitive dependencies are searched before the base distro archive, with explicit providers first. Every transitive provider keeps the same owner/build/revision/target checks. Repeat the dependency list on each submission; omitting it restores base-only dependency search. It accepts no project paths or URLs, refuses self/cyclic dependencies, and preserves native version checks.

build_preferences selects at most 16 positive binary-package providers when native dependency resolution is ambiguous. Literal names only; version floors, repositories, targets and native tests remain unchanged. Repeat the list on each submission; omission clears this tool's previous preferences.

rebuild_policy="local" opts an immutable Debian source with archive-only build dependencies out of automatic external dependency rebuilds. Every source submission still compiles/tests natively; publication and exact-source checks remain required. Omission leaves existing native policy unchanged. Custom source dependency graphs cannot use this fixed-source policy.

This is the "build on OBS" hop of the goal: you generate software, keep it in its own git repository, build it here, and then point the live-build archives at the resulting OBS repository (via os.custom_obs_packages in config/recipe.json + build_image -- never by hand-writing config/archives/*).

This tool returns as soon as OBS has accepted the source. It does not wait for the build. That is on purpose, and it is not a limitation you should work around: wait_for_app_build can block for up to 1800 s of compile plus 3600 s of publish, which would pin an MCP worker for over an hour and lose the call outright across a deploy swap. More importantly, waiting is your decision, not the platform's -- while OBS compiles you can keep authoring config/, run validation, or prepare the next package. Poll get_obs_package_status when you want the fact, and read get_obs_package_log when that fact is a failure. (The short local step inside this call -- packing your tree into a Debian source package and uploading it -- stays inline with a bounded source-only deadline (large offline payloads can take longer than ten minutes), because until it finishes there is nothing for OBS to report on.)

The revision is resolved against the published bare repository, not your working checkout, so uncommitted or unpublished work is refused: OBS clones what your tenant has published, and a build of code nobody can fetch is not reproducible. The host path of that repository is never accepted from you and never returned to you -- it comes from the authorization record for the repositories attached to this harness session.

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": {
      "repository": "<repository>",
      "package": "<package>"
    },
    "name": "submit_obs_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesSource-package name to build it as. Becomes the OBS package name and the last segment of the project path; use the Debian source package name from your debian/control.
targetsNoPackage target ids such as debian-13, ubuntu-24.04, fedora-44. Defaults to the target implied by the build's base image.
build_idNoBuild this package is being made for. Scopes the OBS project to that build, picks the default target from its base image, and records the submission on the build row.
revisionNoBranch, tag, or SHA that must already exist in the published repository. Call publish_internal_repository first.main
repositoryYesAttached internal repository id, checkout name, or label -- the one holding the source you want built, as returned by list_internal_repositories.
rebuild_policyNo
build_preferencesNo
build_dependenciesNo
retry_stalled_failed_sourceNoOpt in to one failed-only native retry per selected target after confirming this exact Debian source revision; ordinary ownership and package allowance checks remain required.
reconcile_stalled_publicationNoReconcile only stale successful Debian publication through native project metadata, without resubmitting source; preserves explicit disables, ownership, admission and signature checks.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses the async return contract ('returns as soon as OBS has accepted the source'), the inline bounded source-only deadline and why large offline payloads can exceed ten minutes, the rejection of uncommitted/unpublished revisions, the refusal of self/cyclic dependencies, and that the host path is neither accepted nor returned. These are non-obvious constraints an agent could not infer from the schema.

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?

Purpose is front-loaded and each parameter paragraph is well-scoped, but the definition runs long and includes motivational asides ('That is on purpose, and it is not a limitation you should work around') and workflow framing that, while useful for preventing agent workarounds, cost some density. Not wasteful enough to be a problem, but tighter than this is achievable.

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?

For a 10-parameter, annotation-free, mutation-and-upload tool this is appropriately thorough: it covers prerequisites, failure recovery paths, async expectations, and stateful parameter omission semantics, while the output schema handles return-value documentation. Nothing an agent needs in order to call it correctly appears to be missing.

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

Parameters5/5

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

Adds meaning well beyond the 70%-covered schema for the least-documented parameters: build_dependencies is explained as source packages whose matching target repos and transitive providers are searched first, build_preferences is capped at 16 literal names with native resolution unchanged, and rebuild_policy="local" opts an immutable Debian source out of external rebuilds. Critically, it documents the stateful gotchas the schema omits entirely ('omission clears this tool's previous preferences', 'omitting it restores base-only dependency search').

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?

Opens with a specific verb+resource+destination: 'Submit an attached internal repository to OBS as a package build.' It also frames the tool's place in a larger workflow ('the build on OBS hop'), which distinguishes it from the read-side siblings get_obs_package_status and get_obs_package_log that it explicitly names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use it and what to do instead of waiting: 'Poll get_obs_package_status when you want the fact, and read get_obs_package_log when that fact is a failure,' and explains why wait_for_app_build is the wrong choice (up to 1800s compile + 3600s publish). It also routes the user to os.custom_obs_packages + build_image rather than hand-writing config/archives/*, and states the prerequisite 'Call publish_internal_repository first.'

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.