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

aem-troubleshooting-mcp-server

by navi00498

get_index_definition

Read-onlyIdempotent

Returns the full definition of a single Oak index, including index rules, properties, and aggregates, to help diagnose AEM indexing issues.

Instructions

Return the full definition of one Oak index (index rules, properties, aggregates).

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": {
      "name": "<name>"
    },
    "name": "get_index_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesIndex node name under /oak:index, e.g. cqPageLucene

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description's only extra signal is the shape of the returned definition (rules, properties, aggregates), which is modest added value and partly duplicated by the output schema. No auth, size, or performance context is provided.

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?

A single front-loaded sentence that identifies the operation, the scope, and the returned components with zero padding. Nothing could be removed without losing information.

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

Completeness4/5

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

For a one-parameter read tool with full annotation coverage and an output schema, this is essentially complete. The only omission is routing guidance relative to list_oak_indexes, which is helpful but not required for correct invocation.

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 the single 'name' parameter is documented with an example ('cqPageLucene') under /oak:index. The description adds no meaning beyond that, so the baseline 3 for schema-complete definitions applies.

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 ('Return') and resource ('the full definition of one Oak index') and enumerates the contents of that definition (index rules, properties, aggregates). It is clear what the tool does, though it never names list_oak_indexes as the sibling that enumerates indexes, so the distinction is left implicit.

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

Usage Guidelines3/5

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

Usage is only implied: 'one Oak index' suggests a follow-up to an index-listing step, but the description never says to call list_oak_indexes first or states any prerequisite, exclusion, or alternative. An agent can infer the workflow from the name alone, which is the definition of minimally adequate.

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