Skip to main content
Glama

Suggest where a run's table could use a rule or a model

suggest_enrichments
Read-onlyIdempotent

Reads the run's columns, then a bounded sample of its text columns (up to max_rows rows, default 50, each value cut to its first few thousand characters; metered like query_run, the column read is not charged) and names, column by column, a deterministic derivation (cast text to its type, parse machine-coded text, map a code list to labels, a normalized key to join or dedupe on) or a model call (classify, extract, match) that would improve the table, each with model_status for the model it needs and the binding to use. It spends no model call and changes nothing. Example: {"run_id": "…"}. Returns {run_id, analyzer, sampled_rows, opportunities: [{column, task, method, why, next_step, stats, model_status?, binding?, standardize_binding?}], omitted, models, offer}. Treat each entry as a lead: confirm it against the rows before you offer it, deterministic ones first. Add a model source only when the person agrees or the brief asked for that judgement; a model_status other than available is offered as coming. The sampled rows are not returned. A timeout or a usage limit answers as query_run's would.

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": {
      "run_id": "<run_id>"
    },
    "name": "suggest_enrichments"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
max_rowsNo
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses cost and side-effect behavior in detail: metered like query_run, the column read is not charged, no model call is spent, nothing is changed, sampled rows are not returned, and a timeout or usage limit answers as query_run's would. It also explains the sampling bounds (max_rows default 50, values truncated to a few thousand characters), which the annotations do not cover.

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 and nearly every clause carries information, but the main body is one long sentence riddled with nested parentheses, which makes it harder to parse than necessary. The guidance and return-format material at the end could be split into short, scannable sentences without losing content.

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 no output schema, the description does the work of describing the return shape ({run_id, analyzer, sampled_rows, opportunities[...], omitted, models, offer}) and the fields inside each opportunity, and it covers metering, truncation and timeout behavior. The one real hole is wait_seconds, whose effect on this bounded sampling call is left unstated.

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 carry parameter meaning and only does so partially. It explains max_rows well (sample bound, default 50, per-value truncation) and implies run_id scoping, but wait_seconds is never mentioned despite a 1-20 second window that materially affects behavior on a sampling tool.

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?

The description names a specific verb chain and resource: it reads the run's columns plus a bounded sample, then names per column a deterministic derivation or a model call that would improve the table. Concrete examples of what it proposes (cast text to type, parse machine-coded text, map code lists, classify/extract/match) make the output of the tool unmistakable and clearly distinct from a query or sampling tool.

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 real operating protocol: treat each entry as a lead, confirm against the rows before offering, deterministic ones first, and add a model source only when the person agrees or the brief asked for that judgement. What is missing is an explicit pointer to an alternative sibling when a plain sample or query is what the caller actually wants, so the when-not guidance is implied rather than named.

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