Skip to content

Orbit knowledge graph

Orbit is GitLab.com’s experimental knowledge graph of code and project data. Its six 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, orbit.tools lists Orbit’s own MCP tools, and orbit.graph_status reports the indexing of a namespace or a project. GitLab answers 404 while its knowledge_graph feature flag is off for the caller. 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?”
  • Dynamic, the default surface: call gitlab_execute_action with action set to the action’s ID, such as orbit.dsl, 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 dsl, and its parameters in params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such as gitlab_orbit_dsl, with its parameters as the arguments.

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

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

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

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.5.0 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.

ActionIndividual
orbit.dslgitlab_orbit_dsl
orbit.graph_statusgitlab_orbit_graph_status
orbit.querygitlab_orbit_query
orbit.schemagitlab_orbit_schema
orbit.statusgitlab_orbit_status
orbit.toolsgitlab_orbit_tools

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
ParameterTypeMandatoryDescription
response_formatstringnoResponse 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
ParameterTypeMandatoryDescription
full_pathstringnoFull path of a group or project to inspect, for example gitlab-org/gitlab. Set exactly one scope field.
namespace_idintegernoGroup ID to inspect. Set exactly one of namespace_id, project_id, or full_path.
project_idintegernoProject ID to inspect. Set exactly one of namespace_id, project_id, or full_path.
response_formatstringnoAccepted for compatibility: raw, llm or json. GitLab answers this through GraphQL, which has one structured shape, so every value returns the same output.

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
ParameterTypeMandatoryDescription
querystringyesOrbit 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_formatstringnoResponse format: raw (structured JSON, the default here), llm (compact text) or gql (the result as a graph pattern table). json is read as 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: one of: Orbit: Read at user or no permission (permissions page)
  • Behavior: read-only, idempotent
ParameterTypeMandatoryDescription
expandstring[]noNode names whose properties to include, for example Project or MergeRequest. Without it, nodes are listed without properties.
formatstringnoSchema response format: raw (structured, the default) or llm (compact text; json is read as raw).
response_formatstringnoAlias for format. Must match format when both are set.

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: no permission (permissions page)
  • Behavior: read-only, idempotent
ParameterTypeMandatoryDescription
response_formatstringnoAccepted 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.

  • 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.