Skip to main content
Glama

get_user_context

Read-onlyIdempotent

Load the user's role, expertise, current project, and recent memory themes at conversation start to tailor AI responses and avoid repetitive context-setting.

Instructions

Get the current user's cognitive identity and active session context.

Call this at the START of a conversation to understand who you're talking to — their role, expertise, current project, and recent memory themes.

This is the core of Purmemo's identity layer: once set in the dashboard, your identity travels silently to every AI session so you're never explaining yourself from scratch again.

WHAT IT RETURNS:

  • identity: role, expertise areas, primary domain, work style, preferred tools

  • current_session: what the user is working on right now (project, focus)

  • memory_summary: 2-3 sentence synthesis of the user's most recent memory themes

WHEN TO CALL:

  • At the start of every new session (add to Claude system prompt)

  • When user says "load my context" or "what do you know about me?"

  • Before making recommendations that depend on knowing the user's background

EXAMPLE USAGE: → User starts new Claude session → Claude calls get_user_context automatically → Response: { role: "founder", expertise: ["product", "fullstack"], project: "purmemo", focus: "identity layer", memory_summary: "Chris has been building Purmemo's..." } → Claude responds with full context already loaded — no re-explaining needed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds behavioral context by explaining the tool returns identity, session, and memory summary, and illustrates this with an example. It reinforces the safe, read-only nature without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (WHAT IT RETURNS, WHEN TO CALL, EXAMPLE USAGE) and front-loads the purpose in the first sentence. It is somewhat lengthy but each section adds value, especially given the absence of an output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With zero parameters, no output schema, and informative annotations, the description fully compensates by detailing the return payload, usage timing, and an example. It provides complete context for an agent to use this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so schema coverage is complete. The description does not need to add parameter semantics, and the baseline of 4 is appropriate since no parameters exist to elaborate on.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Get the current user's cognitive identity and active session context.' It clearly distinguishes this tool from siblings by focusing on identity and session context, and further clarifies it is 'the core of Purmemo's identity layer.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'WHEN TO CALL' section provides explicit usage scenarios: at the start of a new session, when the user requests context, and before making recommendations. It does not explicitly mention when not to use or alternatives, but given the tool's unique role among siblings, this is sufficient guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/purmemo-ai/purmemo-mcp'

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