Skip to main content
Glama

context_get

Retrieve complete details of a specific context by its ID to access saved information across sessions.

Instructions

Get full details of a specific context by ID

Input Schema

NameRequiredDescriptionDefault
context_idYesContext ID

Input Schema (JSON Schema)

{ "properties": { "context_id": { "description": "Context ID", "type": "string" } }, "required": [ "context_id" ], "type": "object" }

Implementation Reference

  • The handler implementation for the 'context_get' tool. It extracts the context_id from arguments, fetches the context from storage, returns a not found message if missing, otherwise formats the context details and returns as TextContent.
    if name == "context_get": context_id = arguments["context_id"] context = self.storage.get_context(context_id) if not context: return [TextContent(type="text", text=f"Context {context_id} not found")] result = self._format_context_detail(context) return [TextContent(type="text", text=result)]
  • The input schema defining the required 'context_id' parameter for the 'context_get' tool.
    inputSchema={ "type": "object", "properties": { "context_id": {"type": "string", "description": "Context ID"}, }, "required": ["context_id"], },
  • The registration of the 'context_get' tool in the list_tools method, which defines its name, description, and input schema.
    Tool( name="context_get", description="Get full details of a specific context by ID", inputSchema={ "type": "object", "properties": { "context_id": {"type": "string", "description": "Context ID"}, }, "required": ["context_id"], }, ),

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/taylorleese/mcp-toolz'

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