Skip to main content
Glama

fill_missing

Fill missing values using strategies such as literal, mean, median, mode, forward-fill, or backward-fill. Select the appropriate strategy based on data distribution to resolve nulls.

Instructions

Fill missing values. Strategies: 'value' (literal), 'mean', 'median', 'mode', 'ffill', 'bfill'. columns: which columns to fill (None = all columns with nulls). Choose strategy based on distribution: 'median' for skewed numeric, 'mean' for normal, 'mode' for categorical. 'ffill'/'bfill' only for time-series. Example: fill_missing(columns=["Revenue"], strategy="median")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNo
columnsNo
df_nameNo
strategyNovalue

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations are absent, so the description carries the burden of behavioral disclosure. It explains what each strategy does and notes that columns=None fills all columns with nulls. However, it does not disclose whether the operation modifies the dataframe in place or returns a new one, nor does it mention any side effects or dependencies like the 'df_name' parameter.

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

Conciseness5/5

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

The description is concise and well-structured: it starts with the core purpose, lists strategies, provides parameter clarification, gives usage guidance, and includes a clarifying example. No sentence is wasted.

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

Completeness2/5

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

While a separate output schema exists and return values need not be described, the omission of the 'df_name' parameter is a critical gap. Given there are 4 parameters and the description covers only two meaningfully, the tool lacks the contextual completeness needed for an agent to invoke it correctly, especially to identify which dataframe to mutate.

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

Parameters3/5

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

The schema provides 0% description coverage, so the description must compensate. It explains 'columns' (None = all columns with nulls) and enumerates valid 'strategy' values, but it only indirectly implies the 'value' parameter ('value' (literal)) and completely omits 'df_name'. The example demonstrates usage of 'columns' and 'strategy', but not the other parameters.

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

Purpose5/5

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

The description clearly states 'Fill missing values' and enumerates the supported strategies ('value', 'mean', 'median', 'mode', 'ffill', 'bfill'). This is specific and distinguishes it from the sibling tool 'drop_missing', which removes missing values instead of filling them.

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 explicit guidance on strategy selection: 'median' for skewed numeric, 'mean' for normal, 'mode' for categorical, and 'ffill'/'bfill' for time-series. However, it does not mention when to prefer filling over dropping missing values (e.g., versus 'drop_missing'), so there is no exclusion criteria.

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