Skip to main content
Glama
amar-mcp

amar-mcp

by sepehr071

Read an Excel table

am_table
Read-onlyIdempotent

Reads Excel tables from statistical releases as compact rows, enabling sheet listing, row filtering, and offset paging for wide series.

Instructions

Read an Excel table of a statistical release as compact rows (works for any release with an xlsx/xls file).

Call with just the id for the sheet list, then sheet; rows are [excel_row_number, cell...]. find picks rows, offset pages, col_offset shifts wide series (newest values are usually at the right end; see cols).

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": {
      "id": "<id>"
    },
    "name": "am_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRelease id from am_search
fileNoExcel file number (1-based, see am_release)
findNoOnly rows with this text in any cell
sheetNoSheet name or 1-based number; omit to list sheets
offsetNoMatching rows to skip (paging)
max_colsNoColumns
max_rowsNoRows
col_offsetNoColumns to skip on the left (wide series)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / col_offset / description
      Previous value: -"Skip this many columns on the left (wide time series)"New value: +"Columns to skip on the left (wide series)"
    • changedInput schema / properties / file / description
      Previous value: -"Which Excel file of the release (1-based, see am_release)"New value: +"Excel file number (1-based, see am_release)"
    • changedInput schema / properties / find / description
      Previous value: -"Only rows that contain this text in any cell"New value: +"Only rows with this text in any cell"
    • changedInput schema / properties / id / description
      Previous value: -"Release id from am_search or am_release"New value: +"Release id from am_search"
    • changedInput schema / properties / max_cols / description
      Previous value: -"Columns to return"New value: +"Columns"
    • changedInput schema / properties / max_rows / description
      Previous value: -"Rows to return"New value: +"Rows"
    • changedInput schema / properties / offset / description
      Previous value: -"Skip this many matching rows (for paging)"New value: +"Matching rows to skip (paging)"
    • changedInput schema / properties / sheet / description
      Previous value: -"Sheet name or 1-based number. Omit to list the sheets first."New value: +"Sheet name or 1-based number; omit to list sheets"
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint false and openWorldHint, so the safety profile is covered. Beyond that the description discloses the return payload shape ('rows are [excel_row_number, cell...]') and the physical layout quirk that newest values sit at the right end of wide series, which is genuinely useful behavioral context not present in annotations. It stops short of noting rate limits or failure modes for releases without an Excel file.

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?

Two short sentences that front-load the purpose, followed by the call sequence and the row format. Nearly every clause carries information. The dangling 'see `cols`' reference is the one piece of noise, since no `cols` field exists in the input schema or an output schema.

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?

There is no output schema, so the description must convey the return shape, and it does so explicitly as row arrays led by the Excel row number. Combined with the sheet-listing first step, paging, and column windowing, an agent has enough to call this correctly. The only gap is that the `file` parameter's relationship to am_release is documented in the schema rather than the description.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds interpretive meaning the schema does not: `find` filters rows, `col_offset` exists specifically for wide series, and `sheet` omitted yields a sheet list. That explains the intent behind the parameters rather than restating types. It references a `cols` output field that is not defined anywhere in the schema, which slightly muddies the parameter story.

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 specific verb and resource, 'Read an Excel table of a statistical release', and scopes it with 'works for any release with an xlsx/xls file'. An agent can distinguish it from the numeric series tools (am_gdp, am_inflation) that return computed values rather than spreadsheet tables. It does not explicitly name the sibling to use instead for non-Excel releases, leaving a small ambiguity.

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?

It gives a concrete two-step workflow: call with just the id to get the sheet list, then supply `sheet`. It also explains the filtering and paging levers (`find`, `offset`, `col_offset`). What is missing is guidance on when to prefer this raw-table tool over the pre-shaped siblings such as am_indicators, and there are no exclusions stated.

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