Skip to main content
Glama
aem-troubleshooting-mcp-server

aem-troubleshooting-mcp-server

by navi00498

query_content

Read-onlyIdempotent

Search AEM content with QueryBuilder to locate pages or assets by path, type, property, or full text. Use read-only, subtree-scoped queries for troubleshooting and triage.

Instructions

Search content with QueryBuilder (read-only). Results are capped at 100 and must be scoped to a subtree.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "query_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSubtree to search, e.g. /content/mysite (required, not '/')
limitNo
fulltextNo
order_byNoProperty to sort by (descending)
node_typeNoe.g. cq:Page, dam:Asset
property_nameNoe.g. jcr:content/cq:template
property_valueNoValue to match; omit to test existence

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered and the description repeats 'read-only'. What it does add is the 100-result cap and the subtree-scoping requirement, which are genuine behavioral facts. It does not say whether exceeding the cap silently truncates results or how to page past them, which matters given the cap is the main behavioral risk.

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 sentences, purpose front-loaded, no filler. Slight waste in restating 'read-only', which the annotations already declare, so no credit for that phrase.

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?

An output schema exists, so return values need not be explained, and the read-only annotations set the safety context. Still, for a 7-parameter query tool the description leaves the query semantics (fulltext vs property matching, ordering behavior, truncation handling) unaddressed, which is a meaningful gap.

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 71%, so the schema already documents path, order_by, node_type, property_name, and property_value. The description adds only the subtree restriction already present in the path description, and says nothing about fulltext behavior or how property_name/property_value combine. Baseline 3 is appropriate given partial schema coverage and minimal compensating detail.

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?

States a specific verb and resource ('Search content with QueryBuilder') plus the read-only nature, which is enough to distinguish it from every listed sibling (connection info, health, log analysis, index inspection). It stops short of naming any sibling it might be confused with, but none of the siblings performs content search, so the purpose is unambiguous.

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?

The only guidance is a constraint ('must be scoped to a subtree'), not a when-to-use rule. There is no statement of which questions this tool answers, no exclusion of alternatives, and no prerequisite description. An agent must infer the use case from the name alone.

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