Skip to main content
Glama

op_list_projects

List OpenProject projects and subprojects with filters for name, parent, active status, or custom criteria. Return a flat list or hierarchical tree.

Instructions

Получить список проектов и подпроектов в OpenProject.

Поиск по имени (параметр name) выполняется по синонимам: передавайте сразу несколько вариантов формулировки (строка или список). Пример: name=["демо", "тестовый"]. Не добавляйте перевод/транслитерацию автоматически — только если пользователь явно попросил.

Логика поиска по имени:

  1. Ищем по имени проекта (фильтр name ~) по очереди для каждого синонима, результаты объединяем (ИЛИ), дедуплицируем по id.

  2. Если по имени ничего не найдено и include_description_fallback=True — повторяем поиск по описанию проекта (фильтр description ~).

Режимы работы (без учёта name):

  • Без parent_id и as_tree: плоский список всех видимых проектов.

  • С parent_id: подпроекты. direct_children_only=False (по умолчанию) — фильтр ancestor, всё поддерево потомков любой глубины; direct_children_only=True — фильтр parent_id, только прямые дети.

  • as_tree=True: запрашивает все видимые проекты и собирает дерево иерархии в памяти по _links.parent. При as_tree параметр name игнорируется (дерево строится по всем проектам).

Если совпадений по name нет, возвращается пустой список с подсказкой.

Args: parent_id: ID проекта-родителя. Если задан — вернуть его подпроекты. Игнорируется при as_tree=True. direct_children_only: True → только прямые дети parent_id (фильтр parent_id). False → всё поддерево потомков (фильтр ancestor). active: Фильтр по активности: True → только активные, False → только архивированные. None → без фильтра. name: Имя проекта или список синонимов (строка либо список строк). Поиск по части имени (оператор '~'), объединение ИЛИ между синонимами. Пример: "демо" или ["демо", "тест"]. include_description_fallback: True (по умолчанию) — если поиск по имени пуст, повторить по описанию. False — искать только по имени. filters: Произвольный JSON-массив фильтров API, например [{"public":{"operator":"=","values":["t"]}}]. Объединяется (AND) с другими параметрами. page_size: Размер страницы (по умолчанию 50). Игнорируется при as_tree и при поиске по name. offset: Номер страницы, начиная с 1. Игнорируется при as_tree и при поиске по name. sort_by: JSON-массив сортировки, например [["name","asc"]]. Допустимые поля: id, name, typeahead, created_at, public, latest_activity_at, required_disk_space. as_tree: True — вернуть дерево иерархии проектов вместо плоского списка (игнорирует parent_id/name/пагинацию).

Returns: JSON со списком проектов (компактный вид) и сводкой. При поиске по синонимам добавляются поля searched_field, matched_terms, fallback_used. При as_tree — дерево {'projects': [<узел>]}. При пустом результате — список [] и note с подсказкой.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
activeNo
offsetNo
as_treeNo
filtersNo
sort_byNo
page_sizeNo
parent_idNo
direct_children_onlyNo
include_description_fallbackNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavior: synonym OR-merge and dedup by id, fallback to description search, in-memory tree building via _links.parent, pagination constraints, and the empty-result note. It also states that as_tree ignores name and pagination, making side effects explicit.

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

Conciseness5/5

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

The description is long but structured with clear sections and bullets. The one-line summary is front-loaded, and every detail—mode logic, parameter semantics, return format—serves a distinct purpose without fluff.

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?

Given 10 parameters, no schema descriptions, and no annotations, the description comprehensively covers all modes, edge cases (fallback, empty results), and return shapes, including extra fields for synonym search and tree output. It leaves no significant gaps.

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?

The schema has 0% description coverage, but the Args section defines every parameter's meaning, default, and interactions—e.g., parent_id uses 'ancestor' or 'parent_id' filters, filters is an arbitrary JSON array combined with AND, and sort_by lists allowed fields. The description fully compensates for the schema's lack of descriptions.

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?

The description opens with 'Получить список проектов и подпроектов в OpenProject', using a specific verb (get list) and resource (projects/subprojects). It clearly differentiates this list tool from sibling tools focused on work packages, time entries, and users.

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?

The 'Режимы работы' section explicitly explains when to use parent_id, direct_children_only, as_tree, and name search, including parameter interactions like 'Игнорируется при as_tree=True'. It also gives instructions such as not auto-adding translations, providing clear usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sergeyfedyakov/openproject-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server