MCP tool
register
Register a dataset in the catalogWrites
Add a dataset the catalog doesn't have yet, from a pointer: url (a file on the web: CSV, Parquet, a spreadsheet), table + engine (a table in a database: bigquery, athena, postgres, or another system's name) or api (the API's url plus one example request that returns data). Pointers only: Evidence hosts no files, so a file needs an address another agent can open first. Optional about: what you know of the data (title, description, publisher, license, topics, grain such as 'one row per municipality per year', and columns [{name, meaning, code, unit}], where code is a code system such as br_ibge_municipality or plain words); hints are checked against the data before they count. credential='mine' reads the source with your org's own connected credential: the table then stays private to your org for good, and its model cost is billed to your org's balance. Answers in seconds with a short receipt: the new card's id, what was read (format, columns), how to get the data, and up to 3 similar tables already in the catalog. The same address twice returns the existing card. The card starts at L0, usable at once (a file's download link, a SQL table's estimate and query) and private to your org: curation (structure, link, narrate) runs in the background, describe(id) shows the level as it rises, and it becomes public at L3 if it passes the automatic checks (public source, license, no personal data). Data Evidence can't reach yet answers needs_access (a missing connector or credential, tracked as an access request); data that doesn't exist yet goes to report(kind='missing_data'). Past your org's daily limit the card is still written, and its curation starts the next day (UTC). Optional `intent`, as in search.
Parameters
aboutanyoptional- What you know about the data (optional hints, checked against the data before they count).
apianyoptional- An API: its url and one example request that returns data, e.g. {"url": "https://servicodados.ibge.gov.br/api/v3/agregados", "example": "https://servicodados.ibge.gov.br/api/v3/agregados/6579/periodos/2024/variaveis/9324?localidades=N6[all]"}.
credentialanyoptional- "platform" (default): Evidence reads the source with its own access. "mine": your org's connected credential reads it; the table stays private to your org for good, and its model cost is billed to your org's balance.
enginestringoptional- With `table`: bigquery, athena, postgres, or the system's name (snowflake, sqlserver, …).
intentstringoptional- The user's underlying question, in one sentence.
tablestringoptional- A table in a database, as its engine names it, e.g. "project.dataset.table" (BigQuery), "schema.table" (Postgres). Needs `engine`.
urlstringoptional- A file on the web (http or https): CSV, Parquet, a spreadsheet, e.g. "https://dados.exemplo.gov.br/escolas_2024.csv". Give exactly one of `url`, `table` or `api`.
Input schema (JSON)
{
"$defs": {
"RegisterAbout": {
"additionalProperties": false,
"properties": {
"columns": {
"default": null,
"description": "Column hints: name, meaning, code (a code system such as \"br_ibge_municipality\", or plain words\nsuch as \"código IBGE de município\") and unit (e.g. \"BRL\").",
"items": {
"$ref": "#/$defs/RegisterColumn"
},
"type": [
"array",
"null"
]
},
"description": {
"default": null,
"description": "What the data is, in a few sentences.",
"type": [
"string",
"null"
]
},
"grain": {
"default": null,
"description": "What one row is, e.g. \"one row per municipality per year\".",
"type": [
"string",
"null"
]
},
"license": {
"default": null,
"description": "Its license as the publisher states it, e.g. \"CC-BY 4.0\" (or \"unknown\").",
"type": [
"string",
"null"
]
},
"publisher": {
"default": null,
"description": "Who publishes it, e.g. \"INEP\".",
"type": [
"string",
"null"
]
},
"title": {
"default": null,
"description": "A short title, e.g. \"Escolas 2024\".",
"type": [
"string",
"null"
]
},
"topics": {
"default": null,
"description": "Topics, e.g. [\"education\", \"schools\"].",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
}
},
"type": "object"
},
"RegisterApi": {
"additionalProperties": false,
"properties": {
"example": {
"description": "One request URL that returns data, so its columns can be read.",
"type": "string"
},
"url": {
"description": "The API's base or documentation URL (http or https).",
"type": "string"
}
},
"required": [
"url",
"example"
],
"type": "object"
},
"RegisterColumn": {
"additionalProperties": false,
"properties": {
"code": {
"default": null,
"description": "The code system its values come from (a slug or plain words).",
"type": [
"string",
"null"
]
},
"meaning": {
"default": null,
"description": "What it holds.",
"type": [
"string",
"null"
]
},
"name": {
"description": "The column's name as the source has it.",
"type": "string"
},
"unit": {
"default": null,
"description": "Its unit, e.g. \"BRL\", \"people\".",
"type": [
"string",
"null"
]
}
},
"required": [
"name"
],
"type": "object"
},
"RegisterCredential": {
"description": "Whose access reads a registered source.",
"oneOf": [
{
"const": "platform",
"description": "Evidence's own access (public sources and the platform's connections).",
"type": "string"
},
{
"const": "mine",
"description": "Your org's connected credential (private for good, billed to your org).",
"type": "string"
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"about": {
"anyOf": [
{
"$ref": "#/$defs/RegisterAbout"
},
{
"type": "null"
}
],
"default": null,
"description": "What you know about the data (optional hints, checked against the data before they count)."
},
"api": {
"anyOf": [
{
"$ref": "#/$defs/RegisterApi"
},
{
"type": "null"
}
],
"default": null,
"description": "An API: its url and one example request that returns data, e.g.\n{\"url\": \"https://servicodados.ibge.gov.br/api/v3/agregados\", \"example\": \"https://servicodados.ibge.gov.br/api/v3/agregados/6579/periodos/2024/variaveis/9324?localidades=N6[all]\"}."
},
"credential": {
"anyOf": [
{
"$ref": "#/$defs/RegisterCredential"
},
{
"type": "null"
}
],
"default": null,
"description": "\"platform\" (default): Evidence reads the source with its own access. \"mine\": your org's\nconnected credential reads it; the table stays private to your org for good, and its model\ncost is billed to your org's balance."
},
"engine": {
"default": null,
"description": "With `table`: bigquery, athena, postgres, or the system's name (snowflake, sqlserver, …).",
"type": [
"string",
"null"
]
},
"intent": {
"default": null,
"description": "The user's underlying question, in one sentence.",
"type": [
"string",
"null"
]
},
"table": {
"default": null,
"description": "A table in a database, as its engine names it, e.g. \"project.dataset.table\" (BigQuery),\n\"schema.table\" (Postgres). Needs `engine`.",
"type": [
"string",
"null"
]
},
"url": {
"default": null,
"description": "A file on the web (http or https): CSV, Parquet, a spreadsheet, e.g.\n\"https://dados.exemplo.gov.br/escolas_2024.csv\". Give exactly one of `url`, `table` or `api`.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}