Skip to main content
Glama

Add Date Table

add_date_table

Create a calculated calendar table from a model date column, mark it as a date table with year/month/quarter columns, and relate it to your model.

Instructions

Add a calculated calendar table (CALENDAR over MIN..MAX of date_column, e.g. 'Tilaukset[Tilauspäivämäärä]'), marked as date table, with Vuosi/Kuukausi/Kuukauden nimi/Neljännes/Vuosineljännes columns. Then relate it with add_relationship.

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": {
      "pbip_path": "<pbip_path>",
      "date_column": "<date_column>"
    },
    "name": "add_date_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
pbip_pathYes
table_nameNoPäivämäärä
date_columnYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It discloses meaningful traits (creates a calculated table, marks it as a date table, generates Finnish-named calendar columns, requires a follow-up relationship step), but says nothing about behavior when the target table name already exists, permission or scope assumptions, or whether the operation is reversible. A 3 reflects solid partial disclosure with notable mutation-safety gaps.

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 core action is stated up front and every clause carries information (construction method, key-column requirement, date-table flag, generated columns, next step). The Finnish column list is dense and locale-specific, but omitting it would lose real value, so it earns its place.

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 output schema covers return values, so that gap is excused. For a mutation tool with zero annotations and 0% schema coverage, the description should still say what happens on name collision and what pbip_path must point to; it supplies the date-column contract and next step, but not the file or idempotency semantics an agent needs for a safe call.

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 0%, so the description has to explain all three parameters. It does well on date_column, giving the 'Table[Column]' format with a concrete example and noting that MIN..MAX of it drives the calendar. It says nothing about pbip_path (presumably the target project file plus an implicit write scope) or how overriding table_name interacts with an existing table, leaving two of three parameters undocumented.

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 uses a specific verb and resource ('Add a calculated calendar table'), states how the table is built (CALENDAR over MIN..MAX of date_column), that it is flagged as a date table, and which columns it produces. This clearly separates it from add_csv_table and add_excel_table without naming them, but it never explicitly contrasts with those siblings.

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?

It gives concrete context: use it to create a calculated Power BI date table over an existing date column, then wire it up with add_relationship. What is missing is a when-not clause, such as choosing this rather than an imported date table via add_csv_table or the consequence of rerunning against an existing table.

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