> For the complete documentation index, see [llms.txt](https://docs.neuroinfodb.org/squirrel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/data-dictionary.md). Agents can also search and read this documentation through its [MCP server](https://docs.neuroinfodb.org/squirrel/~gitbook/mcp).

# data-dictionary

JSON array

The data-dictionary object stores information describing mappings or any other descriptive information about the data. This can also contain any information that doesn't fit elsewhere in the squirrel package, such as project descriptions. Data dictionaries are stored in the `data-dictionaries` array of the [package root](https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/package-root.md).

Examples include mapping numeric values (1,2,3,...) to descriptions (F, M, O, ...)

<figure><img src="https://mermaid.ink/img/pako:eNptksFqwzAMhl8leBRcaEYZ2cWDnrbLGBust5GLGiuN18Q2trM1lL777KRO26w5xL-sT5Jl-UAKxZEwsjWgq-TtM5eJ_4xSjr6uP957NU_TFQcHNPzmT2fE72sodrBFelqnXqGxFhItHdWEwL1GIxqUztILPaFC4ZSLwgklwXR0Ys8HuN9NV1ujWg0S6s4KS3sriWbMe0Jtu_nGwpeOIvqjHRjXcuE7OK03CLWxaH4gHMbSS-MGK6Tzbt9iD19ZIz0UCqX9dYTK_fLfPfY47W42G0LS-zAgA40tRR1mFOQZGmcSuHAj1qG2w-X2MqJjVtfVmIxk4rPW7K4s8XG5XPiDGbXDlIOtwBjo2EM8cIy6GNl17BDK7rIsO-n0V3BXsUzvyYI0aBoQ3D_TQ0iZE1dhgzlhXnIsoa1dTnJ59GirfSF84cIpQ1gJtcUFgdapdScLwpxpMULPAvyrb0bKv5kvpaJ9_AP3KBDt?type=png" alt=""><figcaption></figcaption></figure>

### JSON variables

:blue\_circle: Primary key\
:red\_circle: Required\
:yellow\_circle: Computed (squirrel writer/reader should handle these variables)

***data-dictionary***

<table data-full-width="true"><thead><tr><th width="256" align="right">Variable</th><th width="131">Type</th><th width="89">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>DataDictionaryName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of this data dictionary.</td></tr><tr><td align="right"><code>FileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of files contained in the data dictionary.</td></tr><tr><td align="right"><code>Size</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Size, in bytes, of the data dictionary files.</td></tr><tr><td align="right"><code>VirtualPath</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Path to the data-dictionary within the squirrel package.</td></tr><tr><td align="right"><code>data-dictionary-items</code></td><td>JSON array</td><td></td><td>Array of data dictionary items. See next table.</td></tr></tbody></table>

***data-dictionary-items***

<table data-full-width="true"><thead><tr><th width="240" align="right">Variable</th><th width="98">Type</th><th width="87">Default</th><th>Description</th></tr></thead><tbody><tr><td align="right"><code>VariableType</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span></td><td>Type of variable.</td></tr><tr><td align="right"><code>VariableName</code></td><td>string</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f534">🔴</span> <span data-gb-custom-inline data-tag="emoji" data-code="1f535">🔵</span></td><td>Name of the variable.</td></tr><tr><td align="right"><code>VariableDescription</code></td><td>string</td><td></td><td>Description of the variable.</td></tr><tr><td align="right"><code>KeyValueMapping</code></td><td>string</td><td></td><td>List of possible key/value mappings in the format <code>key1=value1, key2=value2</code>. Example <code>1=Female, 2=Male</code></td></tr><tr><td align="right"><code>ExpectedTimepoints</code></td><td>number</td><td></td><td>Number of expected timepoints. Example, the study is expected to have 5 records of a variable.</td></tr><tr><td align="right"><code>RangeLow</code></td><td>number</td><td></td><td>For numeric values, the lower limit.</td></tr><tr><td align="right"><code>RangeHigh</code></td><td>number</td><td></td><td>For numeric values, the upper limit.</td></tr></tbody></table>

### Directory structure

Files associated with this section are stored in the following directory, where `DataDictionaryName` is the name of the data dictionary.

> `/data-dictionary/<DataDictionaryName>`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/data-dictionary.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
