Skip to main content
Glama

Analyze knowledge graph

analyze_graph
Read-only

Analyze your Obsidian knowledge graph to find hub notes, orphan notes, and clusters, helping you understand vault structure and identify disconnected content.

Instructions

Analyze the knowledge graph structure: hubs, orphan notes and clusters

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • removedInput schema / required
      Removed value: -[
      -  "vault"
      -]
  2. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. However, the description says nothing about what qualifies as a hub or a cluster, whether the analysis is computed on demand or cached, how large a vault can be before results are truncated, or what the response looks like — and with no output schema, that return-shape burden falls on the description.

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?

A single front-loaded sentence with zero filler; the analysis dimensions are listed immediately after the verb. It is terse to the point of leaving output shape unexplained, but nothing in it is wasted.

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?

The tool is simple (one optional parameter, read-only, closed-world), so little description is needed, but the absence of an output schema means the return structure for hubs/orphans/clusters goes unstated. Adequate for invocation, thin for interpreting results.

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?

The single optional vault parameter is fully documented in the schema (100% coverage), so the baseline of 3 applies. The description adds nothing about vault scoping or cross-vault behavior beyond what the schema already says.

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?

"Analyze the knowledge graph structure" names a specific verb and resource, and the colon list (hubs, orphan notes, clusters) tells the agent exactly what analyses are produced. It does not explicitly distinguish itself from the sibling get_knowledge_graph, so the raw-retrieval vs. computed-analysis split has to be inferred.

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?

There is no explicit when/when-not guidance and no alternative named, so the agent must infer that this tool is for structural insight (finding hubs, orphans, clusters) rather than retrieving a graph or related notes. The enumeration of analyses implies usage but does not state prerequisites or exclusions.

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