Skip to main content
Glama

query_dci_components

Search and filter DCI components using a query language with operators like eq, like, contains, and boolean logic to retrieve specific resources.

Instructions

Lookup DCI components with an advanced query language.

Common queries:

  • List OCP/OpenShift components: eq(type,ocp) (filter by type, NOT by name)

  • List all components: ilike(name,%)

  • List GA OCP components: and(eq(type,ocp),contains(tags,build:ga))

The query language is based on this DSL:

eq(<field>,<value>) to lookup resources with a <field> having the value <value>.
IMPORTANT: Values must NOT be quoted. Use eq(type,ocp) not eq(type,'ocp').

You can use the comparison functions gt (greater than), ge (greater or equal),
lt (less than) or le (less or equal) using the same syntax as eq: <op>(<field>,<value>).

like(<field>,<value with percent>) and ilike(<field>,<value with percent>)
to lookup a field with a SQL glob like way. For example, to get the components
with a specific name pattern, use like(name,ocp-%).

contains(<field>,<value1>,...) and not_contains(<field>,<value1>,...)
to lookup elements in an array. This is useful mainly for tags.

and(<op1>(...),<op2>(...)), or(<op1>(...),<op2>(...)) and not(<op>) allow
to build nested boolean queries.

null(<field>) to lookup resources with a field having a NULL value.

Here are all the fields of a DCI component that can be used in the query:

- id: unique identifier

- name: name of the component

- type: type of the component. Use `eq(type,ocp)` to query OpenShift components (do NOT use name for this).

- team_id: The ID of the team that owns the component. Use the `query_dci_teams` tool to get it.

- released_at: The release timestamp. Use `today` tool to compute relative dates.

- topic_id: The ID of the topic associated with the component. Use the `query_dci_topics` tool to get it.

- state: The current state of the component (active, inactive, etc.).

- url: The URL of the component, if applicable.

- tags: list of tags associated with the component. For components of type ocp, it has a build status tag like `build:dev` (also called engineering candidate or ec), `build:candidate` (also called release candidate or rc), `build:ga` or `build:nightly`.

Counting Components: To get the total count of components matching a query, set limit=1 and read the count field in the _meta section of the response.

Example for counting components by type:

{
  "query": "eq(type,ocp)",
  "limit": 1,
  "offset": 0,
  "fields": []
}

This will return a response like:

{
  "components": [],
  "_meta": {"count": 150},
  ...
}

The total count is 150 components.

Returns: JSON string with list of components and pagination info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYessearch criteria (e.g., eq(type,ocp) for OpenShift components, and(eq(type,ocp),contains(tags,build:ga)) for GA builds). To list all, use ilike(name,%)
sortNoSort criteria-created_at
limitNoMaximum number of results to return for pagination (default 20, max 200). Use limit=1 to get count from metadata.
offsetNoOffset for pagination
fieldsNoList of fields to return. Fields are the one listed in the query description and responses. Must be specified as a list of strings. If empty, no fields are returned.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description bears full responsibility. It thoroughly explains the query language, supported fields, counting method, and return format. It does not mention auth or rate limits, but for a read-only lookup tool this is sufficient.

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?

The description is well-structured with clear sections for common queries, DSL syntax, fields, and counting. It is front-loaded with the main purpose. While somewhat lengthy, every section serves a purpose and the structure aids readability.

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 the tool's complexity (custom query language, multiple parameters, output schema present), the description is remarkably complete. It covers query syntax, all fields, examples for counting, and expected output structure. The output schema is described in text, making the tool self-contained.

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

Parameters4/5

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

All 5 parameters have schema descriptions (100% coverage). The description adds significant value by explaining the query syntax, providing common examples, detailing field semantics, and illustrating the counting technique. It goes beyond the schema to clarify usage.

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 clearly states it is for looking up DCI components with an advanced query language. It provides specific examples like listing OCP components and all components, and distinguishes the tool from siblings by focusing on component-specific queries.

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

Usage Guidelines4/5

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

The description offers explicit guidance on when to use specific query patterns (e.g., using eq(type,ocp) instead of name for OpenShift components). It references other tools like query_dci_teams for field values, but does not provide explicit when-not-to-use or exhaustive alternatives.

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/redhat-community-ai-tools/dci-mcp-server'

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