Skip to main content
Glama

x402_gitlab_get_v1_project_id_tree

Retrieves the repository tree for a GitLab project by ID, listing files and directories so you can browse and navigate the project structure.

Instructions

gitlab — GitLab.com public API: project search, project details, repository tree, and issues [GET /v1/project/{id}/tree] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/project/278964/tree?per_page=5

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_gitlab_get_v1_project_id_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose genuinely useful behavior beyond the schema: the endpoint is a paid call costing $0.005 USDC and settled on four listed EVM chains, which an agent needs before invoking. However, it says nothing about pagination behavior, whether tree traversal is recursive, or what a tree entry looks like, so the disclosure is partial for a read operation with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short and the endpoint is bracketed, which helps scanning. But the leading enumeration of unrelated API capabilities is boilerplate shared across sibling tools and does not earn its place here, and the chain list "eip155:8453+137+42161+480" is dense without explanation.

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

Completeness2/5

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

There is no output schema, so the description should convey what the tree call returns (entry names, paths, types, ids) and how large responses are paged. Instead it stops at the URL and a single example, leaving an agent unable to predict the response shape for a nested-object, paginated listing.

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 description coverage is 100% and all four parameters (body, query, restart, operationId) carry their own descriptions, so the schema does the heavy lifting. The description adds only a concrete query example (`?per_page=5`) showing how per_page is passed, which is marginal but real added meaning.

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

Purpose3/5

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

The bracketed endpoint "[GET /v1/project/{id}/tree]" and the example path do identify this as the repository-tree endpoint, but the opening clause lists four distinct capabilities (project search, project details, repository tree, issues), so the agent must parse the bracket to know which one this tool performs. There is no natural-language statement of the operation, e.g. 'list files/directories in a project repository'.

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

Usage Guidelines2/5

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

No when-to-use guidance is given relative to siblings such as x402_gitlab_get_v1_project_id (project details) or x402_gitlab_get_v1_project_id_issues. The example URL hints at usage but there are no exclusions, prerequisites, or criteria for choosing this endpoint over the others named in the same sentence.

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

Deploy Server

Other Tools