Skip to main content
Glama

Search the concepts

search_concepts
Read-onlyIdempotent

Searches concepts by their words and by meaning, across every tree or some. By words: every word must match a word in the concept's title, description, tags, ID, or body, or the start of one (pol finds policy; fund doesn't find refund); case doesn't matter. By meaning: concepts that mean what the query asks, in other words or in another language, so describe what you need in a phrase or a question ("how we recognize revenue") rather than a single word, which matches by meaning poorly. Filter by types, tags, statuses, or trust tiers: a concept passes a filter with any of its values, and must pass every filter given. An empty query lists every concept that passes the filters. To compare concepts by fields of their own (which vendors cost most, by a Vendor's x-cost), find the type's fields in list_types, then search with types and fields: each match comes with its values, without reading each one. More than 50 match: page through them with offset.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoOnly concepts with any of these tags (case-insensitive).
limitNoDefault 10.
queryYesWhat you're looking for, in a phrase or a question (or just words); may be empty when filtering.
treesNoThe trees' slugs, as list_trees gives them (not their names). Only these trees; omit for every tree.
typesNoOnly concepts of any of these types (case-insensitive).
fieldsNoFrontmatter keys to give with each match, as list_types names a type's fields (`x-cost`).
offsetNoHow many of the best matches to skip: the next page. While `offset` plus the results is less than `total`, ask again with `offset` that much higher.
statusesNoOnly concepts with any of these statuses.
trustTiersNoOnly concepts with any of these trust tiers.

Output Schema

NameRequiredDescriptionDefault
urlYesThis search in OKForest, with every match.
totalYesHow many concepts match in all, before `limit` and `offset`.
resultsYesThe best matches, best first.
unindexedTreesYesThe slugs of trees not indexed yet, which aren't searched: try again in a moment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "How many of the best matches to skip: the next page. While `offset` plus the results is less than `total`, ask again with `offset` that much higher.",
      +  "maximum": 100000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / total / description
      Previous value: -"How many concepts match, before `limit`."New value: +"How many concepts match in all, before `limit` and `offset`."
  2. Changed2 schema fields changed
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Frontmatter keys to give with each match, as list_types names a type's fields (`x-cost`).",
      +  "items": {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / fields
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "When `fields` is given: those of them its frontmatter has, as written; a key it doesn't have is left out.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / statuses / items / enum
      Previous value: -[
      -  "draft",
      -  "stable",
      -  "deprecated"
      -]New value: +[
      +  "draft",
      +  "stable",
      +  "deprecated",
      +  "unrecognized"
      +]
    • changedOutput schema / properties / results / items / properties / status / description
      Previous value: -"Its lifecycle status; `stable` when it gives none."New value: +"Its lifecycle status; `stable` when it gives none, `unrecognized` for one OKF doesn't define, which isn't stable."
    • changedOutput schema / properties / results / items / properties / status / enum
      Previous value: -[
      -  "draft",
      -  "stable",
      -  "deprecated"
      -]New value: +[
      +  "draft",
      +  "stable",
      +  "deprecated",
      +  "unrecognized"
      +]
    • addedOutput schema / properties / results / items / properties / statusValue
      Added value: +{
      +  "description": "Its `status` as written, when OKF doesn't define it (`unrecognized`).",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / results / items / properties / snippet / description
      Previous value: -"A line of its body with a word the query matches, when one has."New value: +"A line of its body with a word the query matches, when one has; for a concept found by meaning alone, its body's first line."
  5. Changed4 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Words; may be empty when filtering."New value: +"What you're looking for, in a phrase or a question (or just words); may be empty when filtering."
    • addedOutput schema / properties / results / items / properties / matchedBy
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "How it matched: a concept found by meaning alone uses other words.",
      +  "properties": {
      +    "meaning": {
      +      "description": "It means what the query asks, in whatever words.",
      +      "type": "boolean"
      +    },
      +    "words": {
      +      "description": "It has the query's words.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "words",
      +    "meaning"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / results / items / properties / score / description
      Previous value: -"How well it matches: words in the title count most, then the tags and description, the ID, and the body."New value: +"How well it matches, higher first: by its words (in the title most, then the tags and description, the ID, and the body) and by meaning, mixed."
    • changedOutput schema / properties / results / items / required
      Previous value: -[
      -  "id",
      -  "tree",
      -  "path",
      -  "url",
      -  "tags",
      -  "status",
      -  "stale",
      -  "trustTier",
      -  "score"
      -]New value: +[
      +  "id",
      +  "tree",
      +  "path",
      +  "url",
      +  "tags",
      +  "status",
      +  "stale",
      +  "trustTier",
      +  "score",
      +  "matchedBy"
      +]
  6. Changed6 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Keywords; may be empty when filtering."New value: +"Words; may be empty when filtering."
    • changedOutput schema / properties / results / items / properties / score / description
      Previous value: -"How well it matches: title matches count most, then tags and description."New value: +"How well it matches: words in the title count most, then the tags and description, the ID, and the body."
    • changedOutput schema / properties / results / items / properties / snippet / description
      Previous value: -"A line of its body containing a search term, when one does."New value: +"A line of its body with a word the query matches, when one has."
    • addedOutput schema / properties / unindexedTrees
      Added value: +{
      +  "description": "The slugs of trees not indexed yet, which aren't searched: try again in a moment.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / unreadTrees
      Removed value: -{
      -  "description": "The slugs of trees that couldn't be read, so their concepts are missing.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "total",
      -  "url",
      -  "results",
      -  "unreadTrees"
      -]New value: +[
      +  "total",
      +  "url",
      +  "results",
      +  "unindexedTrees"
      +]
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description is free to add behavior, and it does: prefix-only word matching with concrete examples, OR-within-filter / AND-across-filter semantics, and the fact that results are capped by match count requiring offset paging. It stops short of describing result ordering or ranking, but the output schema covers return shape.

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?

It is front-loaded with the core distinction (words vs. meaning) and every sentence carries operative information; nothing is filler. It is a single dense paragraph with long clauses, which makes it slightly heavier to parse than necessary, but no sentence could be cut without losing semantics.

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?

For a 9-parameter search tool with subtle matching rules, the description covers matching behavior, filter combination logic, empty-query behavior, field-comparison workflow, the 50-result ceiling and paging. An output schema exists and annotations carry the safety profile, so nothing an agent needs to invoke this correctly is missing.

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 description coverage is 100%, so the baseline is 3; the description earns above that by explaining semantics the schema does not — that multiple values within one filter are ORed while separate filters are ANDed, that an empty `query` is legal only for filtering, and that `fields` is populated from list_types naming. It only omits the `limit` default, which the schema already states.

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?

The first sentence names a specific verb and resource ("Searches concepts") and immediately scopes the two retrieval modes (word match vs. meaning match) plus the tree scoping. It is clearly distinguishable from get_concept (single read), list_types (field discovery), and list_changes.

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

Usage Guidelines5/5

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

It gives explicit when-to guidance for each mode: use word search for exact/prefix terms, phrase-or-question form for semantic search, and empty query to just enumerate filtered concepts. It also names the exact alternative workflow — use list_types to find a type's fields, then call this with `types` and `fields` instead of reading each concept — which is real routing guidance agents can act on.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources