Skip to main content
Glama

query_concepts

Read-only

Filter vault nodes with a typed predicate DSL to answer questions path search cannot, such as capabilities with zero elements.

Instructions

Typed filter DSL: find vault nodes by predicate, for questions a path search cannot answer, such as capabilities with zero elements. query_ontology match_nodes filters by degree instead. Grammar (case-insensitive): filter := atom (AND|OR atom)* ; atom := NOT? predicate ; predicate := key=value | key!=value | has(key) Keys: kind, domain, slug, title for equality; any graph frontmatter array key for has(...). Example: kind=capability AND domain=auth AND NOT has(elements). No match returns a growthHint.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 100.
filterYese.g. kind=capability AND has(elements). Supports NOT / AND / OR. Wrap values containing whitespace or special characters in quotes.

Output Schema

NameRequiredDescriptionDefault
totalYes
filterYes
limitedYes
matchesYes
parsedAsYes
growthHintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv2.7.5
    • changedInput schema / properties / filter / description
      Previous value: -"Filter expression. Example: kind=capability AND has(elements). Supports NOT / AND / OR. Wrap values containing whitespace or special characters with \"...\" or '...'."New value: +"e.g. kind=capability AND has(elements). Supports NOT / AND / OR. Wrap values containing whitespace or special characters in quotes."
    • removedInput schema / properties / filter / minLength
      Removed value: -1
    • removedInput schema / properties / filter / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • changedInput schema / properties / limit / description
      Previous value: -"Positive integer max rows to return. Defaults to 100, max 500."New value: +"Default 100."
    • removedOutput schema / properties / filter / minLength
      Removed value: -1
    • removedOutput schema / properties / filter / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / growthHint / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / growthHint / description
      Removed value: -"Only present when total=0 — flags a referenced kind/domain with 0 nodes in this vault census, or a generic loosen-the-filter nudge otherwise."
    • removedOutput schema / properties / growthHint / properties
      Removed value: -{
      -  "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"
      -  }
      -}
    • removedOutput schema / properties / growthHint / required
      Removed value: -[
      -  "reason",
      -  "suggestion",
      -  "exampleCall"
      -]
    • removedOutput schema / properties / matches / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "capabilities": {
      -      "items": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "domain": {
      -      "type": "string"
      -    },
      -    "elements": {
      -      "items": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "kind": {
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "mtime": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "slug": {
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "title": {
      -      "minLength": 1,
      -      "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -      "type": "string"
      -    },
      -    "uid": {
      -      "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"
      -    }
      -  },
      -  "required": [
      -    "uid",
      -    "slug",
      -    "kind",
      -    "title",
      -    "mtime"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / parsedAs / minLength
      Removed value: -1
    • removedOutput schema / properties / parsedAs / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / total / minimum
      Removed value: -0
  2. First observedv0.13.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, closed-world and non-idempotent behavior, so the safety profile is covered. The description adds two genuinely useful behavioral facts beyond that: the DSL is case-insensitive, and a zero-match result returns a `growthHint` rather than an empty set. It does not discuss result ordering or how `limit` interacts with the predicate, which keeps it at a solid but not rich 3.

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 purpose and the sibling contrast, then the grammar, then a worked example — a sensible ordering for a DSL tool. The BNF-style grammar line is dense but earns its space; nothing is redundant, though the prose is terse enough to require careful reading.

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?

An output schema exists, so return shape need not be described, and the description covers the hard part — query construction and the key vocabulary. The only shortfall is that the empty-result behavior is mentioned only as a bare `growthHint` reference with no hint of what it contains.

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 would be 3, but the description adds real meaning: the full grammar (NOT/AND/OR precedence, `!=`, `has(key)`) and a closed vocabulary of equality keys (kind, domain, slug, title) versus arbitrary frontmatter array keys for `has(...)`. That is information an agent cannot get from the schema alone.

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 verb and resource ("find vault nodes by predicate") and immediately frames it as the tool for questions a path search cannot answer. It explicitly names the sibling it is not (query_ontology `match_nodes`, which filters by degree), so an agent can choose between them without opening either schema.

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 a concrete use-case trigger ("capabilities with zero elements") and a positive exclusion against the degree-based sibling. It does not spell out when a plain path search or simple listing tool should win instead, but the routing signal it does provide is explicit rather than implied.

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