ChainGPT MCP

MIT License
  • Apple

chaingpt_get_chat_history

Retrieve chat history for a specific chat blob ID or across all chats using a unique identifier, with customizable limits, offsets, and sorting options.

Instructions

Get the chat history for a given chat blob id until the limit is reached retrieve saved chat history. By default, this will retrieve history entries associated with your API key. If you provide a specific sdkUniqueId, it will retrieve history entries associated with that chat blob id.

Args: sdkUniqueId (str): The unique identifier for the chat. limit (int, optional): The maximum number of chat history items to return. Default is 10. offset (int, optional): The offset to start the chat history from. Default is 0. sortBy (str, optional): The field to sort the chat history by. Default is 'createdAt'. sortOrder (str, optional): The order to sort the chat history by. Default is 'ASC'. Returns: The chat history for the given chat blob id until the limit is reached.

Input Schema

NameRequiredDescriptionDefault
limitYesThe maximum number of chat history items to return. Default is 10.
offsetYesThe offset to start the chat history from. Default is 0.
sdkUniqueIdYesThe unique id of the chat blob to get the history for. If not provided, it will return the chat history for all chat blobs until the limit is reached.
sortByYesThe field to sort the chat history by. Default is 'createdAt'.
sortOrderYesThe order to sort the chat history by. Default is 'ASC'.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "limit": { "description": "The maximum number of chat history items to return. Default is 10.", "type": "number" }, "offset": { "description": "The offset to start the chat history from. Default is 0.", "type": "number" }, "sdkUniqueId": { "description": "The unique id of the chat blob to get the history for. If not provided, it will return the chat history for all chat blobs until the limit is reached.", "type": "string" }, "sortBy": { "description": "The field to sort the chat history by. Default is 'createdAt'.", "type": "string" }, "sortOrder": { "description": "The order to sort the chat history by. Default is 'ASC'.", "type": "string" } }, "required": [ "sdkUniqueId", "limit", "offset", "sortBy", "sortOrder" ], "type": "object" }

You must be authenticated.

Other Tools from ChainGPT MCP

Related Tools

ID: x6dq7lxuni