Skip to main content
Glama

Read data

read_data
Read-onlyIdempotent

Query data from a table with optional filtering and result limits. Both data tables and their change history tables (with the _history suffix) can be read. Password and md5 columns are never returned.

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": "read_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoOptional: limit the number of returned rows (e.g., '10' returns at most 10 records, in no particular order). Without it, all matching rows are returned.
tableYesTable name, e.g. ng_invoice. Append _history to read the change history of a table, e.g. ng_invoice_history. The sfiles system table (attachment metadata) can also be read; the file content is returned by the read_attachment tool.
conditionsNoOptional WHERE condition (without the WHERE keyword). String values use plain single quotes ('Active'); write dates between # # (e.g. #2026-01-01#). Subqueries are not allowed. Example: ng_amount > 1000 AND ng_status = 'Active' AND ng_datum >= #2026-01-01#.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / top / description
      Previous value: -"Optional: limit the number of returned rows (e.g., '10' returns first 10 records)."New value: +"Optional: limit the number of returned rows (e.g., '10' returns at most 10 records, in no particular order). Without it, all matching rows are returned."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world behavior, so the bar is lower. The description still adds real value by disclosing that password and md5 columns are never returned and that _history tables are in scope, both of which are behavior an agent cannot infer from the annotations.

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?

Three short sentences, front-loaded with the core action; the security note and history-table note each earn their place. Slight redundancy between 'optional filtering and result limits' and the parameter descriptions, but no waste worth penalizing.

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 three-parameter read tool with 100% schema coverage and no output schema, the description covers purpose, table scope, and a non-obvious data-redaction rule. Minor gaps remain around result ordering and error behavior, but nothing required to call it correctly is missing.

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 all three parameters already carry descriptions, including quoting and date-literal syntax. The description only restates that filtering and limits are optional, adding no meaning beyond the schema — baseline 3 is appropriate.

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?

States a specific verb and resource ('Query data from a table') plus the scope of optional filtering and row limits. Read semantics are clear enough to separate it from write_data/delete_data siblings, though no sibling is named explicitly.

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?

Usage is only implied by the description: 'query data' for reads, and the fact that history tables are readable with a _history suffix. It gives no explicit when-to-use versus count_data, get_record_counts, or read_attachment, and the routing hint for attachments lives in the schema rather than the description.

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