Skip to main content
Glama

Analytics Legends — SAP AI & Analytics MCP Server

Traverse the learning knowledge graph

query_knowledge_graph
Read-only

Relations between concepts, Academy modules, studies and vendors: list nodes (node_type, query) or one node's edges (node_id). The only tool that serves edges. Public.

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

Input Schema

NameRequiredDescriptionDefault
langNoen, fr or de.en
limitNo
queryNoSubstring of a node label (node listing only).
cursorNo
node_idNo<type>:<id>; returns its edges.
directionNoWhich side of the edge `node_id` must sit on.both
edge_typeNoLive list: _meta.available_edge_types.
node_typeNoconcept, module, study or vendor.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / edge_type / description
      Previous value: -"One relation; live list in _meta.available_edge_types."New value: +"Live list: _meta.available_edge_types."
    • changedInput schema / properties / node_id / description
      Previous value: -"<type>:<id>, e.g. concept:C001 or module:M178; returns its edges."New value: +"<type>:<id>; returns its edges."
    • removedOutput schema / properties
      Removed value: -{
      -  "rows": {
      -    "type": "array"
      -  }
      -}
  2. Changed22 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / cursor / description
      Removed value: -"Opaque token from a previous response's `_meta.next_cursor`. Pass it back with the SAME filter arguments; `null` means the last page. Changing a filter refuses the cursor."
    • removedInput schema / properties / cursor / maxLength
      Removed value: -512
    • addedInput schema / properties / direction / default
      Added value: +"both"
    • changedInput schema / properties / direction / description
      Previous value: -"Which side of the edge `node_id` must sit on. Default `both`. Ignored without `node_id`, and the response says so rather than pretending it applied."New value: +"Which side of the edge `node_id` must sit on."
    • changedInput schema / properties / edge_type / description
      Previous value: -"Restrict a walk to one relation. The authority is `_meta.available_edge_types`, computed on every call — no list is kept here: a four-name list once stood here while the projection served five, then a five-name list while it served six (`broader`)."New value: +"One relation; live list in _meta.available_edge_types."
    • addedInput schema / properties / lang / default
      Added value: +"en"
    • changedInput schema / properties / lang / description
      Previous value: -"ISO-639-1 language for the LABELS — en, fr or de. Defaults to en. The fallback is declared and never silent: the language asked for, then English, then French, and `_meta.label_language_coverage` says on how many nodes each language is actually filled. Concept and module titles carry French; German arrives as the corpus is translated, and an untranslated node falls back rather than being hidden."New value: +"en, fr or de."
    • removedInput schema / properties / lang / pattern
      Removed value: -"^[A-Za-z]{2}$"
    • removedInput schema / properties / limit / description
      Removed value: -"Max rows (hard cap 50)."
    • removedInput schema / properties / limit / maximum
      Removed value: -50
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • changedInput schema / properties / node_id / description
      Previous value: -"Fully-qualified node id, `<type>:<id>` — `module:M178`, `concept:C001`, `study:ai-impact-2026-EN`, `vendor:alteryx`. With it, rows are that node's EDGES (one row per neighbour). Without it, rows are NODES."New value: +"<type>:<id>, e.g. concept:C001 or module:M178; returns its edges."
    • addedInput schema / properties / node_id / examples
      Added value: +[
      +  "concept:C001"
      +]
    • changedInput schema / properties / node_type / description
      Previous value: -"Restrict to one carried node type: concept · module · study · vendor. Read `_meta.available_node_types`."New value: +"concept, module, study or vendor."
    • changedInput schema / properties / query / description
      Previous value: -"Case-insensitive substring of a node's label. Applies to the NODE listing, not to a walk. Matched against the label SERVED, so it follows `lang`."New value: +"Substring of a node label (node listing only)."
    • removedOutput schema / properties / _attribution
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta
      Removed value: -{
      -  "type": "object"
      -}
    • removedOutput schema / properties / result_count
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / properties / rows / items
      Removed value: -{
      -  "properties": {
      -    "citation_scope": {
      -      "enum": [
      -        "record",
      -        "section_hub"
      -      ],
      -      "type": "string"
      -    },
      -    "citation_url": {
      -      "type": "string"
      -    },
      -    "direction": {
      -      "description": "`out` = node_id → neighbour, `in` = neighbour → node_id, `both` = the relation is stored in both directions (served once — see `_meta.symmetric_edges_folded`). Walk rows only.",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "edge_type": {
      -      "description": "Present only on a walk (when `node_id` was given).",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "label": {
      -      "description": "In the language asked for when the node carries it, else the declared fallback — see `label_lang`.",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "label_lang": {
      -      "description": "The language the served `label` is actually written in. It differs from the requested `lang` exactly when that translation does not exist.",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "node_id": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "node_type": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / tool
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "tool",
      -  "result_count",
      -  "rows",
      -  "_attribution"
      -]New value: +[
      +  "rows"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / edge_type / description
      Previous value: -"Restrict a walk to one relation. The served projection carries FIVE — teaches · taught_by · covers · related · mentions — and this list is a HINT, not the authority: read `_meta.available_edge_types`, computed on every call. A four-name list stood here while the projection served five, so `mentions` was reachable and undocumented."New value: +"Restrict a walk to one relation. The authority is `_meta.available_edge_types`, computed on every call — no list is kept here: a four-name list once stood here while the projection served five, then a five-name list while it served six (`broader`)."
  4. Changed1 schema field changed
    • changedOutput schema / properties / rows / items / properties / direction / description
      Previous value: -"`out` = node_id → neighbour, `in` = neighbour → node_id. Walk rows only."New value: +"`out` = node_id → neighbour, `in` = neighbour → node_id, `both` = the relation is stored in both directions (served once — see `_meta.symmetric_edges_folded`). Walk rows only."
  5. Changed4 schema fields changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "ISO-639-1 language for the LABELS — en, fr or de. Defaults to en. The fallback is declared and never silent: the language asked for, then English, then French, and `_meta.label_language_coverage` says on how many nodes each language is actually filled. Concept and module titles carry French; German arrives as the corpus is translated, and an untranslated node falls back rather than being hidden.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Case-insensitive substring of a node's label. Applies to the NODE listing, not to a walk."New value: +"Case-insensitive substring of a node's label. Applies to the NODE listing, not to a walk. Matched against the label SERVED, so it follows `lang`."
    • addedOutput schema / properties / rows / items / properties / label / description
      Added value: +"In the language asked for when the node carries it, else the declared fallback — see `label_lang`."
    • addedOutput schema / properties / rows / items / properties / label_lang
      Added value: +{
      +  "description": "The language the served `label` is actually written in. It differs from the requested `lang` exactly when that translation does not exist.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / edge_type / description
      Previous value: -"Restrict a walk to one relation (teaches · taught_by · covers · related). Read `_meta.available_edge_types` — it is computed, never written here."New value: +"Restrict a walk to one relation. The served projection carries FIVE — teaches · taught_by · covers · related · mentions — and this list is a HINT, not the authority: read `_meta.available_edge_types`, computed on every call. A four-name list stood here while the projection served five, so `mentions` was reachable and undocumented."
  7. Changed1 schema field changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque token from a previous response's `_meta.next_cursor`. Pass it back with the SAME filter arguments to read the next page; a null `next_cursor` means you have reached the end. It is bound to those filters and refused if they change — a cursor names a POSITION in one ordering, and applying it to another query would start the page in the wrong place."New value: +"Opaque token from a previous response's `_meta.next_cursor`. Pass it back with the SAME filter arguments; `null` means the last page. Changing a filter refuses the cursor."
  8. Added

TDQS

B3.4/5.0
Behavior3/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. The description adds useful framing ('Public', read-only relation traversal, sole source of edges) but says nothing about pagination behavior despite a cursor parameter, nor about result volume or what an edge record contains. Some added value beyond annotations, but not rich.

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?

Three compact clauses, front-loaded with the subject domain and immediately followed by the two usage modes. Nearly every fragment carries information, though 'Public.' is an isolated trailing word whose placement obscures whether it is an access note or a caveat.

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?

An output schema exists, so return values need not be explained, and the two-mode structure is conveyed. But for an 8-parameter traversal tool, the description is silent on limit/cursor pagination semantics and on how direction and edge_type interact with node_id. Adequate but with clear gaps an agent may have to discover by trial.

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 75%, so the schema already documents lang, query, node_id, direction, edge_type and node_type. The description restates the node_type/query and node_id roles without adding format or constraint detail beyond the schema. With coverage this high, baseline 3 is appropriate.

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 and resource ('Relations between concepts, Academy modules, studies and vendors') and cleanly distinguishes its two modes: node listing via (node_type, query) versus edge retrieval via (node_id). It also claims differentiation from siblings with 'The only tool that serves edges,' which an agent can act on directly. The telegraphic phrasing and the trailing 'Public.' slightly blunt the clarity, but the purpose is unambiguous.

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?

The two operating modes are named with their selecting parameters, so an agent can infer when to pass node_id versus node_type/query. However, there is no explicit guidance on when to prefer this over siblings like search_concepts, get_concept or get_concept_card, nor any stated exclusion. Usage is implied rather than prescribed.

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.