kg_get_relationships
Get relationships for a specific entity from Knowledge Graph. USE WHEN: - 'Кто работает над X?' - filter by works_on - 'С кем общался Y?' - filter by discussed_with - 'Кто из компании Z?' - filter by member_of - 'Что связано с W?' - no filter, get all REQUIRES: entity_id from previous kg.find_ent...
This record as markdown: /tools/io-github-saloprj-dialogbrain/kg-get-relationships.md
What kg_get_relationships does on Dialogbrain
AI agents call kg_get_relationships to retrieve information from Dialogbrain without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | — | Maximum relationships to return (1-50). Default: 20 |
direction | string | — | Relationship direction: - 'outgoing': Entity → Others - 'incoming': Others → Entity - 'both': All relationships (default) |
entity_id | string | Yes | Entity ID from kg.find_entity step. Use {{step_N.entity_id}} reference. |
relation_types | array | — | Filter by relationship types (optional): People: works_on, works_for, member_of, manages, knows, client_of, provides_service Communication: discussed_with, part |
Parameters from the server's own tool schema.
Why kg_get_relationships is rated Low
This is a pure data retrieval operation that queries a Knowledge Graph to fetch relationship information based on an entity_id. It has no side effects, cannot modify data, and returns filtered relationship data. It falls squarely into the Read category with low severity since it merely retrieves existing information without capability to alter system state or cause harm through misuse.
From the tool's definition Tool retrieves relationships for a specific entity from Knowledge Graph with filtering options (works_on, discussed_with, member_of).
Attacks that exploit this kind of access
The rule that runs kg_get_relationships safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Dialogbrain, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For kg_get_relationships, this is the rule to start with:
kg_get_relationships is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Dialogbrain, apply this rule, and every kg_get_relationships call is checked against it from then on.
Questions about kg_get_relationships
Get relationships for a specific entity from Knowledge Graph. USE WHEN: - 'Кто работает над X?' - filter by works_on - 'С кем общался Y?' - filter by discussed_with - 'Кто из компании Z?' - filter by member_of - 'Что связано с W?' - no filter, get all REQUIRES: entity_id from previous kg.find_entity step. Use: {{step_N.entity_id}} where N is the find_entity step number. It is categorised as a Read tool in the Dialogbrain MCP Server, which means it retrieves data without modifying state.
kg_get_relationships accepts 4 parameters: limit, direction, entity_id, relation_types. Required: entity_id. The full parameter table on this page comes from the server's own tool schema.
Register the Dialogbrain MCP server in PolicyLayer and add a rule for kg_get_relationships: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Dialogbrain. Nothing to install.
kg_get_relationships is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the kg_get_relationships rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for kg_get_relationships. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
kg_get_relationships is provided by the Dialogbrain MCP server (https://api.dialogbrain.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Dialogbrain, and thousands of servers like it.
This server
Across the catalogue