Skip to main content
Glama

Gitlab Get Project

gitlab_get_project
Read-onlyIdempotent

Get details for a specific GitLab project (e.g., project ID "123" or path "group/project"). Returns name, description, visibility, stars, forks, and default branch.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "123",
      "_apiKey": "your-gitlab-api-key"
    },
    "name": "gitlab_get_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProject ID (numeric, e.g. "278964") or full path "namespace/project" (e.g. "gitlab-org/gitlab"). Pass the plain path, do NOT URL-encode it; the pack encodes it.
_apiKeyYesGitLab personal access token

Output Schema

NameRequiredDescriptionDefault
idYesProject ID
urlYesProject web URL
nameYesProject name
forksYesFork count
starsYesStar count
topicsYesProject topics/tags
archivedYesWhether project is archived
full_pathYesFull path with namespace
namespaceYesNamespace full path
created_atYesProject creation timestamp
visibilityYesProject visibility (public/private/internal)
descriptionYesProject description
open_issuesYesOpen issues count
last_activityYesLast activity timestamp
default_branchYesDefault branch name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Project ID (numeric, e.g. \"278964\") or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\"). Pass the plain path — do NOT URL-encode it; the pack encodes it."New value: +"Project ID (numeric, e.g. \"278964\") or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\"). Pass the plain path, do NOT URL-encode it; the pack encodes it."
  2. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-gitlab-api-key",
      -    "id": "123"
      -  },
      -  {
      -    "_apiKey": "your-gitlab-api-key",
      -    "id": "group%2Fproject"
      -  }
      -]New value: +[
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "id": "123"
      +  },
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "id": "gitlab-org/gitlab"
      +  }
      +]
    • changedInput schema / properties / id / description
      Previous value: -"Project ID (numeric) or URL-encoded path (e.g., \"group%2Fproject\")"New value: +"Project ID (numeric, e.g. \"278964\") or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\"). Pass the plain path — do NOT URL-encode it; the pack encodes it."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "archived": {
      +      "description": "Whether project is archived",
      +      "type": "boolean"
      +    },
      +    "created_at": {
      +      "description": "Project creation timestamp",
      +      "type": "string"
      +    },
      +    "default_branch": {
      +      "description": "Default branch name",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Project description",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "forks": {
      +      "description": "Fork count",
      +      "type": "number"
      +    },
      +    "full_path": {
      +      "description": "Full path with namespace",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Project ID",
      +      "type": "number"
      +    },
      +    "last_activity": {
      +      "description": "Last activity timestamp",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "Project name",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "description": "Namespace full path",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "open_issues": {
      +      "description": "Open issues count",
      +      "type": "number"
      +    },
      +    "stars": {
      +      "description": "Star count",
      +      "type": "number"
      +    },
      +    "topics": {
      +      "description": "Project topics/tags",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "url": {
      +      "description": "Project web URL",
      +      "type": "string"
      +    },
      +    "visibility": {
      +      "description": "Project visibility (public/private/internal)",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "full_path",
      +    "description",
      +    "url",
      +    "stars",
      +    "forks",
      +    "open_issues",
      +    "default_branch",
      +    "visibility",
      +    "archived",
      +    "namespace",
      +    "topics",
      +    "created_at",
      +    "last_activity"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "id": "123"
      +  },
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "id": "group%2Fproject"
      +  }
      +]
  5. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is fully supplied by structured data. The description's only additional content is a list of returned fields, which duplicates the output schema rather than adding behavioral context such as the error returned for a nonexistent project or permission-related visibility limits.

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?

Two short sentences, front-loaded with the purpose and followed by the return contents; nothing is padded. The return-field enumeration is mildly redundant given an output schema exists, but it is compact enough to be tolerable.

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?

This is a simple two-parameter read tool with an output schema, so the description need not explain return values or pagination. What is present covers identity and result shape adequately; only the absence of sibling routing guidance keeps it from being fully complete.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents both the ID-or-path format and the API key, including the 'do not URL-encode' caveat. The description's example formats ("123", "group/project") restate what the schema says, so the baseline of 3 applies with no meaningful value added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get details for a specific GitLab project" states a specific verb and resource, and the enumerated return fields (name, description, visibility, stars, forks, default branch) make the scope concrete. It is implicitly distinguishable from gitlab_list_projects (single project vs. listing), but it never names that sibling, so the differentiation is left to inference.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for fetching one project once it has an ID or path. There is no statement of when to prefer it over gitlab_list_projects, no prerequisite notes, and no guidance on what to do if only a project name is known.

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.