Area: API Issues
Sub-Area: MCP Server / AI Integration
Applies to: OSS + Cloud
Issue
You ask an AI assistant (Claude, Cursor, ChatGPT and others) about a DataHub entity through the DataHub MCP server. The answer has a cut-off description, or the assistant says it can't see the full documentation. Column descriptions come back as one short line that ends in a marker like … [+403 chars].
You Might Be Asking
- Why does the DataHub MCP server cut off my entity or column descriptions?
- What are the limits, and can I change them?
- How do I get the full description into my AI assistant?
- Do the limits differ between the DataHub Cloud MCP server and the self-hosted
mcp-server-datahub?
Cause
The MCP server caps description text on purpose. A tool call can return many entities at once, and long descriptions would fill the AI assistant's context window.
On the DataHub Cloud MCP server (v2.3.1 and later), these limits apply:
- Entity descriptions inside tool results are capped at 5,000 characters. This includes the descriptions of related entities, such as domains. Cloud releases before v1.1.0 used a 1,000 character cap.
-
get_entitiesreturns only an entity's identity andpropertiesunless the tool call names other fields. It leaves the entity's own description out. The response lists the description underomittedFieldswith its size, so the assistant can ask for it. - When the tool call names
descriptioninfields, the description comes back at up to 20,000 characters. If it is longer, the text ends in a… [+N chars]marker that shows how many characters were cut. - In a whole-schema result, each column description is a preview of up to 120 characters. A cut preview ends in a
… [+N chars]marker. The 5,000 character entity limit does not change this preview length. - A column that the tool call names in
schema_columnscomes back with its full description, up to the 5,000 character entity limit.
Solution
Get the full text (DataHub Cloud)
- Ask the assistant to fetch the
descriptionfield of the entity. For example: "Use get_entities and request the description field for the dataset X." The tool returns up to 20,000 characters of the entity's own description. - For a column, ask the assistant to name that column in
schema_columns. For example: "Use get_entities with schema_columns set to customer_id for the dataset X." The tool returns the full column description instead of the 120 character preview. - If the text still ends in
… [+N chars], the description is longer than the limit for that request.
On DataHub Cloud, these limits are fixed and you can't change them. The 5,000 character limit is deliberate. It keeps tool results small enough for the assistant's context window when a call returns many entities. Use the steps above to get the full text of one entity or column.
Change the limits (self-hosted mcp-server-datahub)
If you run the open-source mcp-server-datahub yourself, upgrade to the latest release. Release 0.8.0 and later read two environment variables when the server starts:
-
DESCRIPTION_LENGTH_LIMIT(default5000): the maximum characters for an entity-level description. -
FIELD_DESCRIPTION_LENGTH_LIMIT(default120): the maximum characters for a schema field's description, edited description and deprecation note.
These are the only description limits the self-hosted server has. The 20,000 character limit for a requested description applies only to the DataHub Cloud MCP server.
Set them in the env block of your MCP client configuration, next to DATAHUB_GMS_URL and DATAHUB_GMS_TOKEN, then restart the MCP client. The self-hosted setup guide shows where the env block goes for each client.
{
"mcpServers": {
"datahub": {
"command": "uvx",
"args": ["mcp-server-datahub@latest"],
"env": {
"DATAHUB_GMS_URL": "<your-datahub-url>",
"DATAHUB_GMS_TOKEN": "<your-datahub-token>",
"DESCRIPTION_LENGTH_LIMIT": "10000"
}
}
}
}
Don't edit files inside the installed package. An upgrade overwrites them.