Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

query_table

Read-only

Filter, project, sort, and limit worksheet or table data using conditions, selected columns, sorting, and row limits for targeted Excel reads.

Instructions

Filter, project, sort, and limit worksheet or table data. Filters support eq/neq/ne, comparisons, string matching, blank checks, and in/not_in with value or values.

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": {
      "filepath": "<filepath>"
    },
    "name": "query_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
selectNo
filtersNo
sort_byNo
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
row_modeNoarrays
sort_descNo
header_rowNo
sheet_nameNo
table_nameNo
infer_schemaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.5
    • addedInput schema / properties / row_mode / enum
      Added value: +[
      +  "arrays",
      +  "objects"
      +]
  2. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  3. First observedv0.8.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine value by enumerating the supported filter operator families (eq/neq/ne, comparisons, string matching, blank checks, in/not_in with value or values), which is behavior the annotations cannot convey. It says nothing, however, about defaults such as row_mode=arrays, header_row=1, or how sheet_name and table_name interact.

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?

Two sentences, zero filler, with the operation set front-loaded before the filter-operator detail. Nothing redundant is included.

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

Completeness2/5

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

This is an 11-parameter tool with no output schema and near-zero schema documentation, so the description bears most of the burden. It covers the filters parameter partially but leaves the majority of parameters and the selection logic between worksheet and table unresolved, which is insufficient for correct invocation.

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 only 9%: of 11 parameters, only filepath carries a schema description. The description explains filter operators but not the filter object's shape (field/op/value keys), and stays silent on select, sort_by, sort_desc, limit, row_mode, header_row, sheet_name, table_name, and infer_schema. With such low coverage the description needed to compensate and does not.

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 opens with a concrete verb chain (filter, project, sort, limit) applied to a named resource (worksheet or table data), so an agent knows exactly what operation it performs. It does not explicitly contrast itself with nearby siblings such as aggregate_table or read_excel_table, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives like aggregate_table for grouped computation. The agent must infer usage purely from the verb list, and there are no prerequisites or exclusions stated.

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

Deploy Server

Other Tools