Skip to content

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.

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.

Type: string. Required.

The data file, inside the project root.

The tool declares no output schema.

{"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},"..."]}

The errors are those of profile.