Skip to main content
Glama

Assess data shape

assess_data_shape
Read-only

Profile a dataset: per-column types, cardinality, ranges, measure/dimension roles, temporal/ordinal detection, and cross-column signals (nesting, shared values, association) - the same measurement engine the BIC Power BI visual uses before generating a chart. Pass the table as data ({columns, rows}) or csv_text. This hosted server receives your table, profiles it in memory and sends only the profile to generation; rows aren't stored or logged. This tool sends nothing on.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "assess_data_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoA pre-typed {columns, rows} table — the shape a Fabric DAX query / dataframe already has. Alternative to csv_path/csv_text; when columns carry isMeasure/format/description the shape matches PBI fidelity with no guessing.
cultureNoThe caller's language and region as a BCP 47 tag such as 'de-DE', 'fr' or 'ja-JP'. Default 'en-US'. It is the language the chart's own text is written in (titles, axis labels, legends, notes), and it breaks the tie when a CSV's numbers or dates are ambiguous: 12.500 as twelve thousand five hundred or twelve and a half, 05.03.2024 as 5 March or 3 May. Set it from the end user's locale when you know it; it does not translate the data.
formatsNoPer-column number/date FORMAT STRING (e.g. {"Revenue":"$#,##0","Margin":"0.0%"}). PBI supplies these from its model; a CSV can't, so provide them to steer number formatting.
csv_pathNoNot accepted by this hosted server: this hosted server can't read files on your machine, so pass the table as data or csv_text.
csv_textNoInline CSV text (alternative to csv_path).
group_byNoColumns that are the PRIMARY series/breakdown (the PBI 'Group by' well); the backend leads the visualization with these.
measuresNoColumns to treat as MEASURES (the PBI 'Values' well — fields the chart aggregates). Numeric non-identifier columns are measures by default.
dimensionsNoColumns to treat as DIMENSIONS (a PBI category/axis well — fields to group/break by). Use for numeric codes/years that should NOT be aggregated.
descriptionsNoPer-column human DESCRIPTION — gives the model semantic context the bare column name lacks.
non_additiveNoMEASURE columns that must NOT be summed (a ratio/average/rate — use mean, never stack). Usually auto-detected; this is an authoritative override.
privacy_levelNoHow much detail to compute/share: 0 names only, 10 +counts, 20 +detailed stats (default), 30 +obfuscated sample rows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description usefully adds that the table is profiled in memory, that only the profile is forwarded to generation, and that rows are not stored or logged — meaningful privacy context for uploading user data. However, the final sentence is truncated ('This tool sends nothing on.'), so a promised behavioral statement is literally cut off and delivers no information. The defect leaves the disclosure incomplete despite the otherwise strong privacy framing.

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 core purpose is front-loaded in the first sentence, which is the right structure for a long definition. But that sentence is a dense enumeration, and the description ends with a broken fragment ('This tool sends nothing on.') that is pure dead weight and signals an unfinished edit. Size is roughly appropriate for an 11-parameter tool, but the truncation costs it.

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

Completeness4/5

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

With 11 parameters including nested {columns, rows} and no output schema, the description does the right work by enumerating what the profile returns (types, cardinality, ranges, roles, temporal/ordinal, cross-column signals), which substitutes for a missing return specification. It also covers input alternatives and the privacy model. The truncated closing sentence is the one gap preventing full completeness.

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%, and every one of the 11 parameters (culture, privacy_level, non_additive, measures/dimensions, formats) is already documented in the schema with good detail, so the baseline is 3. The description adds only marginal meaning beyond that — it restates the data-vs-csv_text input choice and that pre-typed columns give PBI-level fidelity. Because the schema already carries the semantic load, no extra credit is warranted.

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?

Opens with a specific verb ('Profile') plus resource ('a dataset') and then enumerates exactly what is measured: per-column types, cardinality, ranges, measure/dimension roles, temporal/ordinal detection, and cross-column signals. The clause tying it to 'the same measurement engine the BIC Power BI visual uses before generating a chart' positions it relative to chart generation, so an agent can distinguish it from generate_chart without opening either schema.

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?

Gives clear operational context: pass the table as data or csv_text, and the placement 'before generating a chart' implies the normal call order. It also states an explicit exclusion (csv_path is not accepted by this hosted server, repeated in the schema). What is missing is an explicit named alternative — e.g. when to call generate_chart directly versus profiling first — so it stops short of a 5.

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.

Resources