Skip to content

Orbit knowledge graph

Orbit is GitLab.com’s experimental knowledge graph of code and project data. Its fifteen actions are served only to a session connected to GitLab.com at Premium or Ultimate, and all of them read: orbit.status checks the service, orbit.schema describes the graph, orbit.dsl serves the query language, orbit.query runs a query and orbit.named_query one of GitLab’s named queries, orbit.grep searches a group or project, orbit.context resolves one reference to its summary, orbit.graph_status reports the indexing of a namespace or a project, and orbit.tools, orbit.command_list, orbit.response_format, orbit.query_templates and the three skill reads describe what Orbit serves. GitLab.com serves a group’s index and its queries only under the top-level group’s Orbit access. The Orbit page explains the workflow.

  • “Is Orbit available for this GitLab.com token?”
  • “Show the knowledge graph schema”
  • “Has gitlab-org/gitlab finished indexing?”
  • “Search gitlab-org/gitlab for merge requests about rate limits”
  • “Summarize this merge request with its changed files and failed jobs”
  • “Run the recent_merges query template”
  • Dynamic, the default surface: call gitlab_execute_action with action set to the action’s ID, such as orbit.command_list, and its parameters in params. gitlab_find_action finds an ID from a description of the task.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): call gitlab_orbit with action set to the action’s name, such as command_list, and its parameters in params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such as gitlab_orbit_command_list, with its parameters as the arguments.

How many of these actions an instance serves at each tier, out of a total of 15:

  • Free: 0
  • Premium: 0 on a self-managed instance, 15 on GitLab.com
  • Ultimate: 0 on a self-managed instance, 15 on GitLab.com

Read-only actions: 15 of 15, the ones a deployment in read-only mode keeps. A token with read_api and not api is served 15 of the 15.

The description of each action, and of each of its parameters, is the text the server serves for it on the default surface, quoted as served. The token lines say what GitLab 19.6.1 requires of a token for the requests each action sends; on an instance with Admin Mode turned on, an action only an administrator may run also needs admin_mode.

Action Individual
orbit.command_list gitlab_orbit_command_list
orbit.context gitlab_orbit_context
orbit.dsl gitlab_orbit_dsl
orbit.graph_status gitlab_orbit_graph_status
orbit.grep gitlab_orbit_grep
orbit.named_query gitlab_orbit_named_query
orbit.query gitlab_orbit_query
orbit.query_templates gitlab_orbit_query_templates
orbit.response_format gitlab_orbit_response_format
orbit.schema gitlab_orbit_schema
orbit.skill_file gitlab_orbit_skill_file
orbit.skill_get gitlab_orbit_skill_get
orbit.skill_list gitlab_orbit_skill_list
orbit.status gitlab_orbit_status
orbit.tools gitlab_orbit_tools

List the commands GitLab’s Orbit (Knowledge Graph) MCP endpoint runs, with the description and input schema of each and the action of this server that runs it: query_graph is orbit.query, get_graph_schema is orbit.schema and get_response_format is orbit.response_format.

  • Meta-tool: gitlab_orbit, action command_list
  • Individual tool: gitlab_orbit_command_list
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
command_names string[] no Names of the Orbit commands to describe (query_graph, get_graph_schema, get_response_format). Empty describes every command.
response_format string no Response format: raw or llm (json is read as raw). When omitted, raw.

Resolve one reference to a work item, merge request, job, pipeline, branch or commit through GitLab Orbit (Knowledge Graph) and read its summary, discussions, changed files and failed jobs’ logs, and with expand the graph neighborhood of one of the first three, one billable query. A reference it cannot resolve is found false with the reason, not_found also for an object the user or token may not read: a fine-grained token needs, beside read_orbit, permission to read on the object’s own project or group. Summary parts it may not read are left out, and a failed expansion carries its reason.

  • Meta-tool: gitlab_orbit, action context
  • Individual tool: gitlab_orbit_context
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
tokens string[] yes Exactly one reference to a GitLab object: Type[id] (WorkItem[1], Job[2]), a GID, an instance URL, path!iid (merge request), path#iid (work item), path&iid (epic) or path@ref (branch or commit). orbit.grep returns the token of a work item, merge request, commit or branch it finds
expand boolean no Attach the graph neighborhood of a work item, merge request or job, which GitLab reads with one graph query billed like orbit.query; false reads the summary alone
response_format string no Response format: raw (structured JSON, the default) or llm (compact text). json is read as raw.

Read the GitLab Orbit (Knowledge Graph) query language GitLab.com compiles queries in, GQL, as Orbit’s query command describes it: its grammar and the JSON Schema of its input, or the same as compact text.

  • Meta-tool: gitlab_orbit, action dsl
  • Individual tool: gitlab_orbit_dsl
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
response_format string no Response format: raw or llm (json is read as raw). When omitted, raw.

Inspect GitLab Orbit (Knowledge Graph) indexing status for one group or project, by namespace_id, project_id or full_path: whether Orbit is on, the indexing state of each area, the project counts and the indexed items of each domain, and for a top-level group its Orbit access and trial, which decide whether GitLab.com serves the index at all.

  • Meta-tool: gitlab_orbit, action graph_status
  • Individual tool: gitlab_orbit_graph_status
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: one of: Group: Read at group; Orbit: Read at user or Project: Read at project; Orbit: Read at user or Group: Read at group; Orbit: Read at user; Project: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
full_path string no Full path of a group or project to inspect, for example gitlab-org/gitlab. Set exactly one scope field.
namespace_id integer no Group ID to inspect. Set exactly one of namespace_id, project_id, or full_path.
project_id integer no Project ID to inspect. Set exactly one of namespace_id, project_id, or full_path.
response_format string no Accepted for compatibility: raw, llm or json. GitLab answers this through GraphQL, which has one structured shape, so every value returns the same output.

Search what one group or project holds through GitLab Orbit (Knowledge Graph): work items, merge requests, code, commits, notes, milestones, users, projects, groups and branches, by namespace_id, project_id or full_path. Every hit but a file carries its token, which orbit.context reads for a work item, merge request, commit or branch, a note also the token of what it is on, and most carry the id orbit.query filters on.

  • Meta-tool: gitlab_orbit, action grep
  • Individual tool: gitlab_orbit_grep
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read, Global Search: Use at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
search string yes What to search for, 2 to 256 bytes once trimmed
full_path string no Full path of the group or project to search. Give exactly one of namespace_id, project_id and full_path
limit integer no Most results to answer, 1 to 50. GitLab answers 20 when omitted
namespace_id integer no ID of the group to search. Give exactly one of namespace_id, project_id and full_path
per_scope integer no Most results of one scope, 1 to 10 and never above limit. When omitted, 5, or limit when that is lower
project_id integer no ID of the project to search. Give exactly one of namespace_id, project_id and full_path
response_format string no Response format: raw (structured JSON, the default) or llm (compact text). json is read as raw.
scopes string[] no What to search: work_items, merge_requests, blobs, commits, notes, milestones, users, projects, groups, branches, an alias (mr, issue, code, comment, branch) or a node name (MergeRequest, File). Every scope but branches when omitted. branches is a project’s alone, for a user who can read its code, and a fine-grained access token needs read_branch there; otherwise it is answered unavailable, not_available_for_target

Also needs exactly one of: namespace_id; project_id; full_path.

Run one of GitLab Orbit’s (Knowledge Graph) named queries by name: a template orbit.query_templates lists, which takes no parameters, or one of the queries that take node ids, an entity, a file path or search text, which the description of parameters lists with what each takes. The answer is the envelope orbit.query returns.

  • Meta-tool: gitlab_orbit, action named_query
  • Individual tool: gitlab_orbit_named_query
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
name string yes Named query to run: a template orbit.query_templates lists (recent_merges) or a query that takes parameters (context_for_job)
parameters object no The named query’s parameters by name, an object. A template takes none (empty or omitted). The others: context_for_issue, context_for_job, context_for_review, expand_merge_request and expand_work_item take node_ids (a list of ids) and limit, both required; expand_neighbors takes entity, node_ids and limit; definition_callees and definition_references take node_id, a string; file_definitions and file_definition_callers take project_id and file_path; list_nodes takes entity; search_nodes takes entity, field and text. Give an id of 2^53 or beyond, such as a definition’s or a file’s, as a decimal string: as a number it is refused.
response_format string no Response format: raw (structured JSON, the default), llm (compact text) or gql (a graph pattern table). json is read as raw.

Execute a read-only GitLab Orbit (Knowledge Graph) query in GQL, the language orbit.dsl describes, naming what orbit.schema lists. A query is one MATCH … RETURN statement sent as text, with at least one node bounded by its id or a literal property, and a refused query is corrected from the message GitLab answers with.

  • Meta-tool: gitlab_orbit, action query
  • Individual tool: gitlab_orbit_query
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
query string yes Orbit query as GQL text, the read-only openCypher 9 based language GitLab.com compiles (orbit.dsl describes it). One statement: MATCH pattern [WHERE predicates] RETURN projections [ORDER BY key [ASC or DESC]] [SKIP n] [LIMIT n]. Label every node and anchor at least one by its id or a literal property, as in MATCH (p:Project {full_path: ‘gitlab-org/gitlab’}) RETURN p.id, p.full_path LIMIT 1; LIMIT is not a filter. A relationship type follows a colon, -[:IN_PROJECT]->, several types are joined by |, -[:IN_PROJECT|CONTAINS*1..3]->, and a repeat is bounded, *1..3 at most. A shortest path, MATCH path = ANY SHORTEST (mr:MergeRequest {id: 1})-[:IN_PROJECT*1..3]->(p:Project {id: 2}) RETURN path, labels and anchors both ends and names its relationship types: GitLab.com refuses the wildcard -[*1..3]-> there. WHERE takes AND and NOT, never OR. count, sum, avg, min and max aggregate, and every other RETURN item groups; alias an aggregate and sort by the alias: RETURN p, count(mr) AS mr_count ORDER BY mr_count DESC. SKIP takes 0 to 10000 and LIMIT 1 to 1000. orbit.schema lists the entities, properties and relationship types a query names. The JSON query DSL GitLab.com read before is gone. GitLab refuses a query it cannot compile with a message naming the fault.
response_format string no Response format: raw (structured JSON, the default here), llm (compact text) or gql (the result as a graph pattern table). json is read as raw.

List the GitLab Orbit (Knowledge Graph) query templates GitLab.com renders for the token’s user: the name, description and GQL text of each. The text binds the user’s own id where a template asks about the user, so it is that user’s alone. The named queries that take parameters are not listed.

  • Meta-tool: gitlab_orbit, action query_templates
  • Individual tool: gitlab_orbit_query_templates
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent

No parameters.

Read the JSON Schema of the raw answer a GitLab Orbit (Knowledge Graph) query returns, with its version, or the same schema as compact text.

  • Meta-tool: gitlab_orbit, action response_format
  • Individual tool: gitlab_orbit_response_format
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
response_format string no Response format: raw or llm (json is read as raw). When omitted, raw.

Inspect the GitLab Orbit (Knowledge Graph) schema: domains, node kinds and edge kinds, with the properties of the node kinds named in expand, or the schema as compact text.

  • Meta-tool: gitlab_orbit, action schema
  • Individual tool: gitlab_orbit_schema
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
expand string[] no Node names whose properties to include, for example Project or MergeRequest. Without it, nodes are listed without properties.
format string no Schema response format: raw (structured, the default) or llm (compact text; json is read as raw).
response_format string no Alias for format. Must match format when both are set.

Read one file of a deployed GitLab Orbit (Knowledge Graph) skill, by skill name and the file’s path relative to the skill root, as GitLab.com serves it.

  • Meta-tool: gitlab_orbit, action skill_file
  • Individual tool: gitlab_orbit_skill_file
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
name string yes Skill name as orbit.skill_list lists it
path string yes File path relative to the skill root, as orbit.skill_get lists it (SKILL.md, references/gql.md)

Inspect one deployed GitLab Orbit (Knowledge Graph) skill by name: its version, compatibility and the files it holds, with the path, digest and size of each. File content is read one file at a time.

  • Meta-tool: gitlab_orbit, action skill_get
  • Individual tool: gitlab_orbit_skill_get
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
name string yes Skill name as orbit.skill_list lists it: lowercase letters, digits and dashes, starting with a letter or digit (orbit, orbit-start)

List the GitLab Orbit (Knowledge Graph) skills GitLab.com has deployed: the name, version, compatibility and description of each.

  • Meta-tool: gitlab_orbit, action skill_list
  • Individual tool: gitlab_orbit_skill_list
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent

No parameters.

Inspect the health of the GitLab Orbit (Knowledge Graph) service on GitLab.com: its state, version and the state of each component.

  • Meta-tool: gitlab_orbit, action status
  • Individual tool: gitlab_orbit_status
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
response_format string no Accepted for compatibility: raw, llm or json. GitLab answers this through GraphQL, which has one structured shape, so every value returns the same output.

List the tools GitLab’s Orbit (Knowledge Graph) MCP endpoint serves and the input schema of each: list_commands and invoke_command, whose commands orbit.command_list describes with the action of this server that runs each.

  • Meta-tool: gitlab_orbit, action tools
  • Individual tool: gitlab_orbit_tools
  • Tier: Premium, GitLab.com only
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Orbit: Read at user (permissions page)
  • Behavior: read-only, idempotent

No parameters.