Skip to main content

describe_entity

Get detailed information about a specific entity including its measures and dimensions.


Description​

Returns the complete schema of a specific entity, including all available measures, dimensions, and their properties. Use this tool when you need to understand what data an entity contains before writing a query.


Input Schema​

{
"type": "object",
"properties": {
"entityName": {
"type": "string",
"description": "Name of the entity to describe (e.g., 'Studies', 'AdverseEvents')"
}
},
"required": ["entityName"]
}
ParameterTypeRequiredDescription
entityNamestringYesThe exact name of the entity (case-insensitive)

Output​

Returns the full entity definition:

FieldTypeDescription
namestringEntity name
titlestringHuman-readable title
measuresarrayList of available measures
dimensionsarrayList of available dimensions
segmentsarrayPre-defined filter segments

Measure Properties​

FieldTypeDescription
namestringFully qualified name (e.g., Studies.count)
titlestringDisplay name
typestringMeasure type (count, sum, avg, etc.)
descriptionstringWhat the measure represents

Dimension Properties​

FieldTypeDescription
namestringFully qualified name (e.g., Studies.studyName)
titlestringDisplay name
typestringData type (string, number, time)
descriptionstringWhat the dimension represents

Example​

Request​

"Describe the AdverseEvents entity"

Tool Call​

{
"tool": "describe_entity",
"arguments": {
"entityName": "AdverseEvents"
}
}

Response​

{
"name": "AdverseEvents",
"title": "Adverse Events",
"measures": [
{
"name": "AdverseEvents.count",
"title": "Count",
"type": "count",
"description": "Total number of adverse events"
},
{
"name": "AdverseEvents.seriousCount",
"title": "Serious AE Count",
"type": "count",
"description": "Count of serious adverse events"
},
{
"name": "AdverseEvents.relatedCount",
"title": "Related AE Count",
"type": "count",
"description": "Count of drug-related adverse events"
}
],
"dimensions": [
{
"name": "AdverseEvents.aeId",
"title": "AE ID",
"type": "string"
},
{
"name": "AdverseEvents.aeTerm",
"title": "AE Term",
"type": "string"
},
{
"name": "AdverseEvents.severity",
"title": "Severity",
"type": "string"
},
{
"name": "AdverseEvents.causality",
"title": "Causality",
"type": "string"
},
{
"name": "AdverseEvents.outcome",
"title": "Outcome",
"type": "string"
},
{
"name": "AdverseEvents.onsetDate",
"title": "Onset Date",
"type": "time"
}
]
}

Error Handling​

If the entity is not found:

{
"error": "Entity 'InvalidEntity' not found. Available entities: Studies, Subjects, Sites, AdverseEvents, Enrollments, Visits, VitalSigns, LabTests, Medications, CdiscDm, CdiscAe"
}

Use Cases​

  • Query planning: Understand available measures and dimensions before querying
  • Schema exploration: Learn what data is available in a specific domain
  • Documentation: Generate documentation for data consumers

Natural Language Examples​

You AskAI Uses
"What fields are in the Studies entity?"describe_entity → Studies
"Describe the adverse events data"describe_entity → AdverseEvents
"What measures can I use for enrollments?"describe_entity → Enrollments
"Show me the CDISC DM domain schema"describe_entity → CdiscDm