Skip to main content
Glama

get_concepts

Read-only

Fetch ontology nodes by slug or UID to read frontmatter, body, neighbors, edges, and timestamps; use full-body mode to inspect definitions and context.

Instructions

Fetch one or more nodes to read what they say, by exactly one selector array: slugs (canonical slugs or unique aliases) or immutable uids; one node is a one-item array. Each row, in input order, holds frontmatter, body, neighbours, outgoingEdges and mtime, with permanent uid plus current canonical slug; a bad row returns {ok:false, error} so later valid slugs still resolve. The default excerpt is the first paragraph: pass body: "full" to answer from the node, since its definition, Includes, Excludes and Uncertainty live there. Graph-operation inputs remain slug-based. Replaces get_concept.

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": "get_concepts"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo`excerpt` (default) or `full` for every row; `full` caps the batch at 20.
uidsNoPermanent node UIDs; never together with `slugs`. Max 50, 20 with body `full`.
slugsNoSlugs, unique tail slugs or frontmatter `slug` aliases; omit .md. Max 50 per call, 20 with body `full`.

Output Schema

NameRequiredDescriptionDefault
conceptsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.7.5
    • changedInput schema / properties / body / description
      Previous value: -"Applies to every row. `excerpt` (default) returns the first prose paragraph per row; `full` returns the entire markdown body per row and caps the batch at 20 slugs."New value: +"`excerpt` (default) or `full` for every row; `full` caps the batch at 20."
    • changedInput schema / properties / slugs / description
      Previous value: -"Vault-relative slugs, unique tail slugs, or frontmatter `slug` aliases (e.g. [\"capabilities/x\", \"elements/y\"]). Omit the .md extension. Max 50 per call (max 20 when body is `full`)."New value: +"Slugs, unique tail slugs or frontmatter `slug` aliases; omit .md. Max 50 per call, 20 with body `full`."
    • changedInput schema / properties / uids / description
      Previous value: -"Exact permanent node UIDs. Use instead of `slugs`, never together with it. Max 50 (max 20 with body `full`)."New value: +"Permanent node UIDs; never together with `slugs`. Max 50, 20 with body `full`."
    • removedOutput schema / properties / concepts / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "body": {
      -      "description": "Entire markdown body — successful rows in `full` mode.",
      -      "type": "string"
      -    },
      -    "bodyInfo": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "hint": {
      -          "description": "Only present when truncated — the exact call that returns the rest.",
      -          "type": "string"
      -        },
      -        "mode": {
      -          "enum": [
      -            "excerpt",
      -            "full"
      -          ],
      -          "type": "string"
      -        },
      -        "omittedChars": {
      -          "description": "Only present when truncated.",
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "returnedChars": {
      -          "description": "Characters actually returned in this response.",
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "totalChars": {
      -          "description": "Full markdown body length in characters.",
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "truncated": {
      -          "description": "True when part of the body was not returned.",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "mode",
      -        "totalChars",
      -        "returnedChars",
      -        "truncated"
      -      ],
      -      "type": "object"
      -    },
      -    "createTool": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "description": "Human-readable error for partial rows.",
      -      "type": "string"
      -    },
      -    "errorCode": {
      -      "type": "string"
      -    },
      -    "excerpt": {
      -      "description": "First prose paragraph — successful rows in `excerpt` mode (the default).",
      -      "type": "string"
      -    },
      -    "frontmatter": {
      -      "additionalProperties": true,
      -      "description": "Resolved markdown frontmatter for successful rows.",
      -      "type": "object"
      -    },
      -    "growthHint": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "exampleCall": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "args": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "tool": {
      -              "minLength": 1,
      -              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "tool",
      -            "args"
      -          ],
      -          "type": "object"
      -        },
      -        "reason": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "suggestion": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "reason",
      -        "suggestion",
      -        "exampleCall"
      -      ],
      -      "type": "object"
      -    },
      -    "isNode": {
      -      "type": "boolean"
      -    },
      -    "missingSlug": {
      -      "type": "string"
      -    },
      -    "missingSubject": {
      -      "type": "string"
      -    },
      -    "missingUid": {
      -      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
      -      "type": "string"
      -    },
      -    "mtime": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "neighbors": {
      -      "additionalProperties": false,
      -      "description": "Direct graph neighbor buckets for successful rows.",
      -      "properties": {
      -        "capabilities": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "contains": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "dependencies": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "describes": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "domain": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "domains": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "elements": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "relates": {
      -          "items": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "domains",
      -        "domain",
      -        "capabilities",
      -        "elements",
      -        "dependencies",
      -        "relates",
      -        "contains",
      -        "describes"
      -      ],
      -      "type": "object"
      -    },
      -    "ok": {
      -      "description": "True for resolved concept rows; false for missing or invalid input rows.",
      -      "type": "boolean"
      -    },
      -    "outgoingEdges": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "rationale": {
      -            "description": "One-line rationale stored with this relation in the source document's `relation_notes` map (written by `add_relation(why)`). Omitted when no note is stored for the target.",
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "to": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "via": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "to",
      -          "via"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "recoveryTools": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "review": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "agentGuidance": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "currentness": {
      -          "enum": [
      -            "not-confirmed",
      -            "unknown",
      -            "current",
      -            "changed-since-review"
      -          ],
      -          "type": "string"
      -        },
      -        "note": {},
      -        "reviewedAt": {},
      -        "reviewedBy": {},
      -        "state": {}
      -      },
      -      "required": [
      -        "state",
      -        "currentness"
      -      ],
      -      "type": "object"
      -    },
      -    "similarSlugs": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "slug": {
      -      "description": "Canonical slug for successful rows; the original input value for invalid partial rows.",
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "uid": {
      -      "description": "Canonical permanent UID for successful rows; requested UID for UID-selector error rows.",
      -      "minLength": 1,
      -      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
      -      "type": "string"
      -    },
      -    "warnings": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "enum": [
      -              "unclosed-frontmatter",
      -              "parse-zero-keys",
      -              "malformed-frontmatter-line",
      -              "malformed-quoted-scalar",
      -              "missing-kind",
      -              "empty-kind",
      -              "unknown-kind",
      -              "missing-uid",
      -              "invalid-uid",
      -              "invalid-merged-uids",
      -              "non-canonical-merged-uids",
      -              "missing-expected-field",
      -              "non-canonical-graph-array",
      -              "dangling-graph-reference",
      -              "duplicate-slug",
      -              "duplicate-uid",
      -              "definition-missing",
      -              "boundary-missing",
      -              "epistemic-exclusion",
      -              "uncertainty-missing",
      -              "slug-outside-kind-folder",
      -              "folder-only-evidence",
      -              "dependency-unwitnessed",
      -              "dependency-unjudged",
      -              "starter-example-node",
      -              "kind-under-sources",
      -              "relation-note-on-unread",
      -              "rule-without-read-lines",
      -              "dependency-both-ways",
      -              "path-without-code",
      -              "path-shared"
      -            ],
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "message": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "severity": {
      -            "enum": [
      -              "error",
      -              "warning"
      -            ],
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "severity",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "ok"
      -  ],
      -  "type": "object"
      -}
  2. Changed1 schema field changedv2.4.0
    • changedOutput schema / properties / concepts / items / properties / warnings / items / properties / code / enum
      Previous value: -[
      -  "unclosed-frontmatter",
      -  "parse-zero-keys",
      -  "malformed-frontmatter-line",
      -  "malformed-quoted-scalar",
      -  "missing-kind",
      -  "empty-kind",
      -  "unknown-kind",
      -  "missing-uid",
      -  "invalid-uid",
      -  "invalid-merged-uids",
      -  "non-canonical-merged-uids",
      -  "missing-expected-field",
      -  "non-canonical-graph-array",
      -  "dangling-graph-reference",
      -  "duplicate-slug",
      -  "duplicate-uid",
      -  "definition-missing",
      -  "boundary-missing",
      -  "epistemic-exclusion",
      -  "uncertainty-missing",
      -  "slug-outside-kind-folder",
      -  "folder-only-evidence",
      -  "dependency-unwitnessed",
      -  "dependency-unjudged",
      -  "starter-example-node",
      -  "kind-under-sources"
      -]New value: +[
      +  "unclosed-frontmatter",
      +  "parse-zero-keys",
      +  "malformed-frontmatter-line",
      +  "malformed-quoted-scalar",
      +  "missing-kind",
      +  "empty-kind",
      +  "unknown-kind",
      +  "missing-uid",
      +  "invalid-uid",
      +  "invalid-merged-uids",
      +  "non-canonical-merged-uids",
      +  "missing-expected-field",
      +  "non-canonical-graph-array",
      +  "dangling-graph-reference",
      +  "duplicate-slug",
      +  "duplicate-uid",
      +  "definition-missing",
      +  "boundary-missing",
      +  "epistemic-exclusion",
      +  "uncertainty-missing",
      +  "slug-outside-kind-folder",
      +  "folder-only-evidence",
      +  "dependency-unwitnessed",
      +  "dependency-unjudged",
      +  "starter-example-node",
      +  "kind-under-sources",
      +  "relation-note-on-unread",
      +  "rule-without-read-lines",
      +  "dependency-both-ways",
      +  "path-without-code",
      +  "path-shared"
      +]
  3. Changed1 schema field changedv1.4.0
    • changedOutput schema / properties / concepts / items / properties / warnings / items / properties / code / enum
      Previous value: -[
      -  "unclosed-frontmatter",
      -  "parse-zero-keys",
      -  "malformed-frontmatter-line",
      -  "malformed-quoted-scalar",
      -  "missing-kind",
      -  "empty-kind",
      -  "unknown-kind",
      -  "missing-uid",
      -  "invalid-uid",
      -  "invalid-merged-uids",
      -  "non-canonical-merged-uids",
      -  "missing-expected-field",
      -  "non-canonical-graph-array",
      -  "dangling-graph-reference",
      -  "duplicate-slug",
      -  "duplicate-uid",
      -  "definition-missing",
      -  "boundary-missing",
      -  "epistemic-exclusion",
      -  "uncertainty-missing",
      -  "slug-outside-kind-folder",
      -  "folder-only-evidence",
      -  "dependency-unwitnessed",
      -  "starter-example-node"
      -]New value: +[
      +  "unclosed-frontmatter",
      +  "parse-zero-keys",
      +  "malformed-frontmatter-line",
      +  "malformed-quoted-scalar",
      +  "missing-kind",
      +  "empty-kind",
      +  "unknown-kind",
      +  "missing-uid",
      +  "invalid-uid",
      +  "invalid-merged-uids",
      +  "non-canonical-merged-uids",
      +  "missing-expected-field",
      +  "non-canonical-graph-array",
      +  "dangling-graph-reference",
      +  "duplicate-slug",
      +  "duplicate-uid",
      +  "definition-missing",
      +  "boundary-missing",
      +  "epistemic-exclusion",
      +  "uncertainty-missing",
      +  "slug-outside-kind-folder",
      +  "folder-only-evidence",
      +  "dependency-unwitnessed",
      +  "dependency-unjudged",
      +  "starter-example-node",
      +  "kind-under-sources"
      +]
  4. Changed1 schema field changedv1.3.0
    • changedOutput schema / properties / concepts / items / properties / warnings / items / properties / code / enum
      Previous value: -[
      -  "unclosed-frontmatter",
      -  "parse-zero-keys",
      -  "malformed-frontmatter-line",
      -  "malformed-quoted-scalar",
      -  "missing-kind",
      -  "empty-kind",
      -  "unknown-kind",
      -  "missing-uid",
      -  "invalid-uid",
      -  "invalid-merged-uids",
      -  "non-canonical-merged-uids",
      -  "missing-expected-field",
      -  "non-canonical-graph-array",
      -  "dangling-graph-reference",
      -  "duplicate-slug",
      -  "duplicate-uid"
      -]New value: +[
      +  "unclosed-frontmatter",
      +  "parse-zero-keys",
      +  "malformed-frontmatter-line",
      +  "malformed-quoted-scalar",
      +  "missing-kind",
      +  "empty-kind",
      +  "unknown-kind",
      +  "missing-uid",
      +  "invalid-uid",
      +  "invalid-merged-uids",
      +  "non-canonical-merged-uids",
      +  "missing-expected-field",
      +  "non-canonical-graph-array",
      +  "dangling-graph-reference",
      +  "duplicate-slug",
      +  "duplicate-uid",
      +  "definition-missing",
      +  "boundary-missing",
      +  "epistemic-exclusion",
      +  "uncertainty-missing",
      +  "slug-outside-kind-folder",
      +  "folder-only-evidence",
      +  "dependency-unwitnessed",
      +  "starter-example-node"
      +]
  5. Changed2 schema fields changedv1.2.5
    • addedOutput schema / properties / concepts / items / properties / isNode
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / concepts / items / properties / review
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "agentGuidance": {
      +      "minLength": 1,
      +      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +      "type": "string"
      +    },
      +    "currentness": {
      +      "enum": [
      +        "not-confirmed",
      +        "unknown",
      +        "current",
      +        "changed-since-review"
      +      ],
      +      "type": "string"
      +    },
      +    "note": {},
      +    "reviewedAt": {},
      +    "reviewedBy": {},
      +    "state": {}
      +  },
      +  "required": [
      +    "state",
      +    "currentness"
      +  ],
      +  "type": "object"
      +}
  6. First observedv0.13.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and closed-world, so the safety profile is covered; the description adds genuinely new behavior: rows come back in input order, a failed row yields {ok:false, error} without aborting later valid slugs, and each row carries permanent uid plus current canonical slug. It does not explain why idempotentHint is false for a read tool (presumably slug/alias resolution can shift), which is the one behavioral oddity left unaddressed.

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?

Front-loaded with the core action and selector constraint, then row shape, then failure semantics, then the body-mode advice. Dense but nearly every clause carries information. It is one long run-on paragraph, so the structure could be tightened with separation between selector rules and return-shape rules.

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?

An output schema exists, yet the description still tells the agent what each row contains and how partial failure surfaces, plus batch caps and uid/slug semantics. Combined with the annotations, an agent has everything needed to call this correctly without opening the schema.

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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by defining slugs as canonical slugs or unique aliases (omit .md), uids as immutable identifiers, and by explaining what the excerpt/full switch actually returns (first paragraph vs. the node's definition, Includes, Excludes, Uncertainty). The 20-item cap under full is repeated from the schema rather than added, but the semantic payoff of the mode is new information.

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 concrete verb and resource: fetch one or more nodes to read their content, keyed by exactly one selector array. It also notes it 'Replaces get_concept' and that 'Graph-operation inputs remain slug-based', which sketches its boundary against the graph-mutation siblings. It never names the read-side alternatives (query_concepts, list_concepts, get_constellation), so differentiation from those is left to inference.

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?

Gives clear operational guidance: use exactly one selector array, a single node is a one-item array, and use body:"full" when you need to answer from the node's definition/Includes/Excludes/Uncertainty rather than the first paragraph. That is a real when-to-use rule for the body mode. It stops short of saying when to reach for this tool instead of the other read/query tools.

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