Skip to main content
Glama

sourcesage

register_pattern

Register code patterns with detailed metadata to catalog reusable logic, style, and standards. Specify name, description, language, example, and metadata for efficient retrieval on the SourceSage MCP server.

Instructions

Register a code pattern.

Args: name: Name of the pattern description: Description of the pattern language: Programming language example: Example code demonstrating the pattern metadata: Additional metadata as key-value pairs

Input Schema

NameRequiredDescriptionDefault
descriptionYes
exampleNo
languageNo
metadataNo
nameYes

Input Schema (JSON Schema)

{ "properties": { "description": { "title": "Description", "type": "string" }, "example": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Example" }, "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" } }, "required": [ "name", "description" ], "title": "register_patternArguments", "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