show_columns tool
Use show_columns to show a person the columns as a table, in a host that renders
MCP Apps. It runs as
profile does and returns a view built with Prefab, which the host draws with the
server's renderer resource. A host that does not render apps gets the JSON of profile as text.
show_columns(file)- Changes no file
- A second call with the same arguments changes nothing more
- Stays inside the project
Tags: app, data.
Description
Section titled “Description”The server gives the agent this description of the tool.
Show what profile reads as a table of columns, in hosts that render MCP Apps. Use profile when you need the data. Needs pandas in the project's Python.
Arguments
Section titled “Arguments”Type: string. Required.
The data file, inside the project root.
Result
Section titled “Result”The tool declares no output schema.
Example
Section titled “Example”{"file":"samples/data.csv"}The text content of the result is the report of profile. Its first column is shown, and
"..." stands for the other column.
{"file":"samples/data.csv","rows":3,"columns":[{"column":"a","dtype":"float64","nulls":1,"unique":2,"memory_bytes":24},"..."]}Errors
Section titled “Errors”The errors are those of profile.