Tool Info
Overview
The tool_info tool returns the input schema for a selected dataset and analysis tool combination. Use it to discover supported dimensions, metrics, filters, operators, and required request properties before calling an analysis tool.
Common Use Cases
Use the tool_info tool to answer questions such as:
| Use Case | Example |
|---|---|
| Schema discovery | What exact input shape does count require for job_postings? |
| Metric validation | Which metrics are valid for profiles top? |
| Tool support check | Does government_occupations support timeseries? |
| Contract validation | Retrieve the current schema before calling an analysis tool. |
| Agent guardrails | Prevent invalid metrics, dimensions, or unsupported dataset/tool combinations. |
| Dynamic UI generation | Build dataset-aware forms or validation rules from JSON Schema. |
Supported Datasets
tool_info accepts all validated dataset identifiers for schema lookup.
| Dataset | Supported |
|---|---|
| Job Posting | Yes |
| Profile | Yes |
Inputs
The tool accepts the following objects.
| Input | Description |
|---|---|
dataset | One of job_postings, profiles, or government_occupations. |
toolName | One of count, distribution, estimate, list, top, or timeseries. |
tool_info supports analysis tools only. Metadata tools such as glossary and classify are not supported.
Example Request
{
"dataset": "job_postings",
"toolName": "count"
}Outputs
The tool returns schema information for the selected dataset and analysis tool combination.
| Output | Description |
|---|---|
message | Human-readable status message. |
result.validInputSchema | JSON Schema for the selected dataset and analysis tool pair. |
Unsupported dataset and tool combinations return a structured TOOL_INVALID_COMBINATION error. For additional details, see Errors.
Example Response
{
"message": "Input schema returned.",
"result": {
"validInputSchema": {
"type": "object",
"required": ["dataset", "filter", "metrics"],
"properties": {
"dataset": {
"const": "job_postings"
},
"filter": {
"type": "object"
},
"metrics": {
"type": "array"
}
}
}
}
}Updated 3 months ago
Did this page help you?

