Skip to main content
Glama

read_table

Read-only

Fetch rows from a numeric game table with column selection, filters (eq, ne, gt, contains), and pagination. Returns first 20 rows; list_tables provides table and column names.

Instructions

读取工作区内指定数值表的数据行。支持列选择、条件过滤(eq/ne/gt/gte/lt/lte/contains)、分页(offset/limit,默认前 20 行)。先用 list_tables 拿到表名和列名。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回行数上限(默认 20,全表导出可设大)
tableYes表名,如 hero/成长表(来自 list_tables 的 table 字段)
filterNo过滤条件,多条件 AND(可选)
offsetNo跳过前 N 行(默认 0)
columnsNo只返回指定列(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark the operation as read-only, and the description adds meaningful behavioral details: default limit of 20 rows, supported filters (eq/ne/gt/gte/lt/lte/contains), column selection, and pagination via offset/limit. This goes beyond the annotation without contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core action, then quickly covers capabilities and the prerequisite workflow. Every sentence earns its place, with no redundant filler.

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?

For a read-only table query tool with five parameters, the description covers the prerequisite, supported filters, pagination, and column selection. It does not describe the return format, but the absence of an output schema is mitigated by the simplicity of the operation and the explicit read-only annotation.

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 coverage is 100%, so the input schema already documents every parameter. The description reinforces the filter operator list and pagination defaults but adds little new meaning beyond the schema; the schema itself already mentions the list_tables source and default limit. This meets the baseline but does not significantly extend it.

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 clearly states the action ('读取...数据行') and the resource ('工作区内指定数值表'), and specifies the main capabilities (column selection, filtering, pagination). It also distinguishes itself from list_tables by telling the agent to call list_tables first for table and column names, avoiding confusion with sibling tools.

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?

The description provides concrete usage context: use this tool to read rows from a table, and explicitly instructs the agent to first call list_tables to obtain table and column names. It does not explicitly state when not to use this tool or mention alternative siblings, but the workflow guidance is sufficient for correct selection.

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