Skip to main content
Glama

confluence_search

Run raw CQL queries against Confluence to fetch compact search metadata, ideal for filtering by label, space, type, ancestor, or lastmodified.

Instructions

Primitive: search Confluence content with raw CQL when only compact search metadata is needed, or when the query needs fields the high-level tool does not expose (label, space, type, ancestor, lastmodified). For search plus page bodies, and for plain queries that should not be hand-written as CQL, prefer confluence_search_and_fetch. CQL matching: title = "Exact Title" matches the whole title; title ~ "Prefix*" matches a partial title; text ~ "words" searches full text. Full text is tokenized, so an identifier such as AB12-C also matches pages containing only its fragments: when the exact title is known, try title = first, then title ~ "...", and use text ~ only as the fallback. Combine with and/or, for example space = "DOCS" and title ~ "Report".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cqlYes
limitNo
startNo
expandNo
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden. It discloses tokenization behavior, partial-title semantics, the risk of identifier fragmentation, and the recommended search strategy. It does not mention return shape or pagination behavior, but the most important behavioral quirk—CQL matching and tokenization—is clearly explained.

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 every sentence earns its place. It starts with the core purpose, moves to the alternative tool, then explains CQL matching rules, tokenization caveats, fallback strategy, and an example. The structure is logical and front-loaded.

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

Completeness3/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 phrase 'compact search metadata' is vague about what the agent will actually receive. Pagination, expand, and max_chars semantics are also missing. That said, the description is comprehensive for the most important part—constructing and choosing between CQL queries—making it minimally viable but not complete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It adds strong semantics for the cql parameter with exact/partial/text matching examples and combinators. However, it does not explain limit, start, expand, or max_chars at all, leaving 4 of 5 parameters mostly inferred.

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?

States a specific action and resource: 'search Confluence content with raw CQL'. It also distinguishes itself from the sibling confluence_search_and_fetch by saying it returns compact metadata and exposes fields the high-level tool does not. This is far clearer than generic search descriptions.

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?

Gives explicit when-to-use conditions: when compact search metadata is needed, or when the query requires fields the other tool does not expose. It also tells the agent when NOT to use it, naming confluence_search_and_fetch for page bodies or plain queries, and provides concrete CQL matching guidance and fallback order.

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