Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

copy_to_clipboard

Run a DAX query and copy the full result to the system clipboard as TSV for Excel or Markdown, returning a row count and preview.

Instructions

Run a DAX query and copy the full result to the system clipboard.

Use format="tsv" (default) to paste into Excel, or format="markdown" for a markdown table. Returns a JSON summary with row_count and a short preview.

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": {
      "connection_name": "<connection_name>",
      "query": "<query>"
    },
    "name": "copy_to_clipboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
formatNotsv
max_rowsNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key side effect: results land on the system clipboard, an out-of-band mutation of user state. It omits whether the clipboard is overwritten, whether large results are truncated or blocked, and whether the query is validated before execution, leaving meaningful behavioral gaps for a tool with an externally visible effect.

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?

Three tight sentences with the core action front-loaded and the format guidance immediately after; nothing is padded. The final sentence restating the return shape is mildly redundant given an output schema exists, but it is short.

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?

For a 5-parameter tool with zero schema descriptions and no annotations, the definition is thin: it never explains connection resolution (connection_name plus connections_dir) or row limiting (max_rows). The output schema does cover the return value, so that omission is acceptable, but the input side is not adequately covered.

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% across 5 parameters, so the description must compensate, but it only explains format and its two values. connection_name, connections_dir, and max_rows are entirely undocumented, and "full result" actively obscures what max_rows does.

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?

States a specific verb and resource ("Run a DAX query") plus the distinctive outcome ("copy the full result to the system clipboard"), which is clearly different from a pure read tool. It does not name or distinguish itself from close siblings like export_to_csv, so the agent must infer the boundary between clipboard copy and file export.

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?

Gives clear when-to-use guidance for the format parameter ("tsv" for Excel, "markdown" for a markdown table), which is genuinely useful. However, it offers no guidance on when to pick this tool versus export_to_csv or quick_chart, and no prerequisites or exclusions are stated.

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