Skip to main content
Glama

Organize dataset tables

configure_dataset_layout
Idempotent

Save ordered sections, table display titles and descriptions, collapsed sections, a separate default opening table and an optional search_table_id. search_table_id names the preferred table for dataset chat retrieval when that is not the opening table: a passages table that searches long text and folds its matches to one result per entity of the main table (its search spec collapses by the entity key). Absent or null, search opens on the opening table; the Data tab always opens on default_table_id. To point search at a passages table, in this order: declare collapse in its search spec; wait until its search has been rebuilt and is active for that declaration (a newly declared collapse reaches search only after its search build finishes and activates); run one search on that table and confirm the answer carries collapsed_by; only then set search_table_id. If the answer does not carry collapsed_by, do not set search_table_id. Read get_my_dataset for dataset_layout and its revision; use expected_revision 0 only when absent. For first creation also send expected_main_table_id from get_my_dataset.chosen_main_table_id (null if absent), to detect concurrent legacy opening-table edits. Choose sections around the dataset use case. Preserve owner choices; on layout_changed reread and reconcile instead of overwriting. Reference exact table IDs, each in at most one section. Unassigned tables stay visible. This changes presentation only, never SQL/API names, data, access or schedules. dry_run validates without saving. Returns the saved layout and revision.

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": {
      "dataset_id": "<dataset_id>",
      "expected_revision": "<expected_revision>",
      "config": "<config>"
    },
    "name": "configure_dataset_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes
dry_runNo
dataset_idYes
expected_revisionYes
expected_main_table_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / config / properties / search_table_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive write), the description discloses the concurrency-detection contract (expected_revision, expected_main_table_id), the dry_run validate-without-saving mode, the no-op scope boundary ('presentation only'), and the return payload ('saved layout and revision'). The ordering/waiting semantics around search activation are exactly the kind of hidden behavior an agent could not infer from structured fields.

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?

Nearly every sentence carries real information, but it is delivered as a single undifferentiated block with no paragraphing or ordering cues, so the critical prerequisite chain is buried mid-text. The search_table_id explanation is long and its parenthesis about collapse-by-entity-key is dense enough to be hard to parse on first read.

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

Completeness5/5

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

For a nested-config, five-parameter write tool with no output schema and zero schema descriptions, the definition covers purpose, preconditions, concurrency, validation, side-effect scope, and return shape. An agent has everything needed to call it safely and to avoid the known search_table_id trap.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden, and it largely delivers: expected_revision's 0-when-absent rule, expected_main_table_id's source field and null case, search_table_id's conditional semantics versus default_table_id ('Data tab always opens on default_table_id'), dry_run, and the nested section/table fields. Gaps remain for dataset_id and the required version=1 constant, plus cardinality limits (40 sections / 500 tables / one section per table is only partly implied by 'each in at most one section').

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 opening sentence names a specific verb ('Save') and enumerates exactly what is persisted: ordered sections, table display titles/descriptions, collapsed flags, a default opening table, and an optional search_table_id. It also scopes the change as 'presentation only, never SQL/API names, data, access or schedules', which cleanly separates it from configure_table_search / configure_table_view style siblings. It does not explicitly name a sibling it competes with, so it stays below a 5.

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

Usage Guidelines5/5

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

It gives explicit when-and-when-not guidance: the ordered prerequisite sequence for setting search_table_id (declare collapse, wait for rebuild/activation, run a probe search, confirm collapsed_by) with a hard exclusion ('If the answer does not carry collapsed_by, do not set search_table_id'). It also specifies revision sourcing ('Read get_my_dataset for dataset_layout and its revision; use expected_revision 0 only when absent'), first-creation behavior with expected_main_table_id, and the reconcile-don't-overwrite rule on layout_changed.

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