Skip to main content
Glama

Ask a prepared source one question

probe_source
Read-onlyIdempotent

Queues one bounded probe of a source start_source_inspection prepared, and returns its coordinates. It reads the SOURCE, before anything is built; the sample_rows tool reads a published table instead. Four kinds: source_inspect (the columns and their inferred types; no cell values), sample_rows (up to limit rows from offset, optionally only some columns), profile_columns (per column: inferred type, non-null and null counts, distinct count, minimum and maximum) and evaluate_expression (one aggregate over the source). Pass the dataset_id, question_id and source_id start_source_inspection returned. scan_rows (default 10000, at most 50000) bounds how many rows a profile or an expression reads. expression is {"aggregate": "count"} or {"aggregate": "sum"|"min"|"max"|"avg", "column": "…"}, with an optional "where": {"op": "eq"|"ne"|"lt"|"le"|"gt"|"ge", "column", "value"}, {"op": "is_null"|"is_not_null", "column"}, {"op": "and"|"or", "operands": [up to 16]} or {"op": "not", "operand"}, nested at most 8 deep. Example: {"dataset_id": "…", "question_id": "…", "source_id": "…", "kind": "sample_rows", "limit": 20}. Returns {session_id, probe_id, source_id, state}. Next: get_source_probe with session_id and probe_id. It reads the source, never registers or builds anything, and opens a short session that is closed when the probe settles.

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>",
      "question_id": "<question_id>",
      "source_id": "<source_id>",
      "kind": "<kind>"
    },
    "name": "probe_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
limitNo
offsetNo
columnsNo
scan_rowsNo
source_idYes
dataset_idYes
expressionNo
question_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, destructiveHint=false), the description discloses that the call is asynchronous ('queues... returns its coordinates'), that it opens a short session closed when the probe settles, that source_inspect returns no cell values, and that scan_rows bounds work at a 50000 ceiling. The only gap is a mild tension with idempotentHint=true, since each call apparently queues a new probe and opens a session, which the description does not reconcile.

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?

Front-loaded with purpose and the sibling distinction, and nearly every clause carries operational information. The expression grammar enumeration is necessarily dense but makes the middle of the description a long unbroken run, which slightly hurts scannability even though nothing is wasted.

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?

There is no output schema, and the description compensates by naming the return shape {session_id, probe_id, source_id, state} and the follow-up call that consumes it. For a nine-parameter, nested-object tool with zero schema documentation, this covers kinds, bounds, grammar, lifecycle and handoff without obvious omissions.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the full load and it does: it documents all four kind values, limit/offset/columns for sampling, scan_rows with its default and maximum, and the complete expression grammar including operator set, where-clause shapes, nesting depth of 8 and operand cap of 16. It also explains where dataset_id, question_id and source_id come from and supplies a worked example payload.

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 first sentence gives a specific verb and resource ('Queues one bounded probe of a source') plus the return value ('its coordinates'), and the second sentence explicitly separates it from the sibling sample_rows tool by stating it reads the SOURCE before anything is built rather than a published table. An agent can distinguish it from get_source_probe and sample_rows without opening any schema.

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 names the alternative and the condition that selects it ('the sample_rows tool reads a published table instead'), enumerates the four kinds with the question each answers so the agent picks the right mode, and closes with explicit next-step routing ('Next: get_source_probe with session_id and probe_id'). Prerequisites are also stated: pass the three ids that start_source_inspection returned.

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