Skip to main content
Glama

get_project_context

Retrieve project-specific and global developer memories to provide context for coding tasks. Loads relevant information from previous sessions to inform current work.

Instructions

Load top memories for the current project plus relevant global memories. Use at the start of a session to get full context from previous sessions. Optionally pass context to get memories most relevant to your current task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject identifier (auto-detected from git remote if omitted)
include_globalNoInclude global developer preferences
contextNoOptional context to improve relevance ranking (e.g., current task or topic)
context_typeNoOptional context type that shifts scoring weights. debugging = boost bug/pattern memories, planning = boost architecture/decision, reviewing = boost pattern/preference.
compactNoWhen true (default), returns only formatted_context text instead of full JSON arrays. Saves ~60% tokens.
limitNoMax total memories to return (default 25). Lower values save context tokens.
team_idNoOptional override. Team memories are automatically included for team/enterprise users.

Latest Blog Posts

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/hifriendbot/cogmemai-mcp'

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