Skip to main content
Glama
mcp-bd-service

mcp-bd-service

by jtesotelo

sample_rows

Read-onlyIdempotent

Fetch the first rows of a specified table to inspect sample data and understand its structure before querying.

Instructions

Return the first rows of a table to see what the data looks like.

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": {
      "table": "<table>"
    },
    "name": "sample_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tableYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety and repeatability are covered. The description adds only that results are a leading subset of rows ('first rows'), implying truncation rather than a complete result set. It says nothing about row ordering, any cap on rows, or behavior for a nonexistent table.

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?

It is a single front-loaded sentence with no filler, and the sampling intent comes first. Brevity here borders on under-specification rather than verbosity, but nothing written is wasteful.

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

Completeness3/5

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

An output schema exists, so return-value shape need not be described. But with two undocumented parameters and annotations covering only safety, the definition leaves the agent guessing about limit semantics and row ordering — meaningful gaps for a sampling tool.

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%, so neither `table` nor `limit` is documented structurally, and the description must compensate. It implies the resource being sampled but never mentions that `limit` controls row count, nor its default of 5 or any maximum, leaving half the parameters unexplained.

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 description states a concrete verb and resource ("Return the first rows of a table") and adds the intent ("to see what the data looks like"), so the agent can tell this is a preview/sampling read rather than a full query. It does not differentiate itself from siblings like run_query, which could also return rows, so the sibling-distinction bar for a 5 is not met.

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?

The phrase "to see what the data looks like" implies an exploratory/preview use case, which gives some when-to-use signal. However, it names no alternatives (run_query, describe_table, profile_column) and states no exclusions, such as 'do not use for full extraction' or 'do not use to inspect columns'.

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