Skip to main content
Glama

set_current_dataframe

Set the current dataframe by name to switch context between multiple datasets for subsequent data operations.

Instructions

Switch the current active dataframe. Switch active dataset when working with multiple dataframes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of disclosing behavior. It says 'switch' but does not explain that this changes global session state, whether it returns a confirmation or error, or what happens if the specified name is invalid. The side effects on subsequent operations are only implied by 'current active dataframe.'

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, with the main action in the first sentence. The second sentence adds usage context ('when working with multiple dataframes') but is somewhat redundant with the first. Overall, it is efficient and free of extraneous detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with one parameter and an output schema, so the description covers the basic purpose and context. However, it lacks important behavioral details like validation and side effects, and it does not explain how to identify valid dataframe names. It is minimally viable but has clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. The single parameter 'name' is not explained beyond the schema title. The description does not clarify that 'name' should correspond to an existing dataframe name, nor does it point to list_dataframes as a way to discover valid values. This leaves the parameter underspecified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Switch the current active dataframe.' This is a specific verb-resource pair that distinguishes it from sibling tools like list_dataframes or copy_dataframe. However, it does not explicitly differentiate itself from other state-changing tools, but the action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context for when to use the tool: 'when working with multiple dataframes.' This gives clear usage context, but it does not mention alternatives or when not to use it. The phrase implies the tool is for switching among multiple loaded datasets, which is adequate guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AstyanM/mcp-data-science'

If you have feedback or need assistance with the MCP directory API, please join our Discord server