Skip to main content
Glama

sourcesage

register_entity

Register code entities such as classes, functions, or modules into a knowledge graph. Capture details like name, type, summary, signature, language, and observations to organize and retrieve codebase information efficiently.

Instructions

Register a code entity in the knowledge graph.

Args: name: Name of the entity (e.g., class name, function name) entity_type: Type of entity (class, function, module, etc.) summary: Brief description of the entity signature: Entity signature (e.g., function signature) language: Programming language observations: List of observations about the entity metadata: Additional metadata as key-value pairs

Input Schema

NameRequiredDescriptionDefault
entity_typeYes
languageNo
metadataNo
nameYes
observationsNo
signatureNo
summaryYes

Input Schema (JSON Schema)

{ "properties": { "entity_type": { "title": "Entity Type", "type": "string" }, "language": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Language" }, "metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Metadata" }, "name": { "title": "Name", "type": "string" }, "observations": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Observations" }, "signature": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Signature" }, "summary": { "title": "Summary", "type": "string" } }, "required": [ "name", "entity_type", "summary" ], "title": "register_entityArguments", "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