Skip to main content
Glama

sourcesage

register_relationship

Define and store relationships between code entities, such as calls, inherits, or imports, to maintain structured connections and metadata within a codebase.

Instructions

Register a relationship between entities.

Args: from_entity: Name of the source entity to_entity: Name of the target entity relationship_type: Type of relationship (calls, inherits, imports, etc.) metadata: Additional metadata as key-value pairs

Input Schema

NameRequiredDescriptionDefault
from_entityYes
metadataNo
relationship_typeYes
to_entityYes

Input Schema (JSON Schema)

{ "properties": { "from_entity": { "title": "From Entity", "type": "string" }, "metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Metadata" }, "relationship_type": { "title": "Relationship Type", "type": "string" }, "to_entity": { "title": "To Entity", "type": "string" } }, "required": [ "from_entity", "to_entity", "relationship_type" ], "title": "register_relationshipArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sarathsp06/sourcesage'

If you have feedback or need assistance with the MCP directory API, please join our Discord server