Skip to main content
Glama

Derive a column

derive_column

PAID (needs a key) — Use when a column should be filled by AI from other columns (the gender from the first name, a seniority from the job title). AI tokens by use (usually cents; at most 10 credits per call, within the key's day budget): fill an existing column from others by an instruction (e.g. the gender from the first name, a seniority from the job title, a country from the city). Unique values are asked once.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "list_id": "<list_id>",
      "source_columns": "<source_columns>",
      "target_column": "<target_column>",
      "description": "<description>"
    },
    "name": "derive_column"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoColumn → value: exact, { "contains": "…" }, { "not": "…" }, { "is_empty": true } or { "condition": "<one of filter_conditions>" }; ar_status by status name
list_idYesThe list's id (describe_list without list_id shows the lists shared with you)
languageNoLanguage of `tell_your_user` (default en)
only_emptyNoFill empty cells only (default true)
descriptionYesWhat to put in, e.g. "male, female or unknown from the first name"
target_columnYesThe (existing) column to fill
source_columnsYesThe columns to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / source_columns / maxItems
      Added value: +5
    • addedInput schema / properties / source_columns / minItems
      Added value: +1
  2. Changed9 schema fields changed
    • removedInput schema / properties / description / maxLength
      Removed value: -500
    • removedInput schema / properties / description / minLength
      Removed value: -3
    • removedInput schema / properties / filter / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / list_id / maxLength
      Removed value: -80
    • removedInput schema / properties / list_id / minLength
      Removed value: -1
    • removedInput schema / properties / source_columns / items / maxLength
      Removed value: -200
    • removedInput schema / properties / source_columns / maxItems
      Removed value: -5
    • removedInput schema / properties / source_columns / minItems
      Removed value: -1
    • removedInput schema / properties / target_column / maxLength
      Removed value: -200
  3. Added

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses that the tool is paid and requires a key, that AI tokens are billed per use with a cap of 10 credits per call against a daily budget, and that duplicate values are only asked once. That is meaningful cost and idempotency context an agent cannot get from annotations or schema.

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

Conciseness3/5

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

The PAID warning is correctly front-loaded, but the sentence repeats the same examples twice ('the gender from the first name, a seniority from the job title' appears in both the opening clause and again after the cost note). The duplication wastes space and makes the description feel longer than its content warrants.

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?

For a paid, open-world mutation tool with no output schema, the description covers cost, key requirement, and the core derivation concept. It is silent on how results are returned, failure behavior on unfillable cells, and the interaction with filter/only_empty (e.g., that only_empty defaults to true and will skip populated cells), which an agent invoking it should know.

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?

Schema description coverage is 100%, so all seven parameters are already documented, including filter, only_empty, language and the source/target column pairs. The description's instruction examples loosely map to the `description` parameter but add no syntax, default, or format detail beyond what the schema provides; baseline 3 applies.

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 states a specific action on a specific resource: filling an existing column with AI-generated values derived from other columns, with two concrete examples (gender from first name, seniority from job title). It implicitly separates itself from add_column (which creates a column) by saying 'fill an existing column', but it does not name any sibling tool explicitly.

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

Usage Guidelines3/5

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

The phrase 'Use when a column should be filled by AI from other columns' gives an implied trigger condition, and the cost/credit warning hints at restraint. However, it never states when NOT to use it (e.g., when deterministic rules or update_records would be cheaper) or names an alternative sibling, leaving routing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.