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...

SERVERDialogbrain SOURCEhttps://api.dialogbrain.com/mcp
Low RISK CLASS
Category Read
Parameters 41 required
Recommended Allowedsee the rule below
Registry record Grade F, identity unverified Pull the record →

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.

ParameterTypeRequiredDescription
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).

Questions about kg_get_relationships

What does the kg_get_relationships tool do? +

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.

What parameters does kg_get_relationships accept? +

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.

How do I enforce a policy on kg_get_relationships? +

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.

What risk level is kg_get_relationships? +

kg_get_relationships is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit kg_get_relationships? +

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.

How do I block kg_get_relationships completely? +

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.

What MCP server provides kg_get_relationships? +

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.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Dialogbrain's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.