Skip to main content
Glama

Ler linhas da planilha

get_sheet_rows
Read-only

Reads rows from ONE sheet the user owns. Returns each exact row id plus non-empty cell values with their visible column labels and stable column ids. Reads up to 25 rows at a time with offset/limit, or known rowIds directly; filters and search read only the rows that pass them, as the sheet's Filtrar and Buscar do (matchingRows says how many). For a people sheet, contactColumns lists LinkedIn, E-mail and Telefone as the app shows them, each with the column that holds it and the column id that reveals it. Read-only and free. Each row comes with kind ("person", or "company" for a company without a person yet) and company (its id, name, domain and CNPJ, the same for every person of that company).

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": {
      "sheetId": "<sheetId>"
    },
    "name": "get_sheet_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return when rowIds is omitted. Defaults to 25.
offsetNoZero-based row offset when rowIds is omitted. Defaults to 0.
rowIdsNoOptionally read only these exact row ids, preserving this order.
searchNoOnly the rows whose name, company, role or e-mail hold this text.
filtersNoOnly the rows that pass every filter, as the sheet's Filtrar does.
sheetIdYesExact sheet UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / filters
      Added value: +{
      +  "description": "Only the rows that pass every filter, as the sheet's Filtrar does.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "description": "uf, size (porte), cnae, role (cargo), employees (number range), signal (signal type), campaign, contact, import_miss, or column:<columnId> (the column ids the sheet rows list).",
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "max": {
      +        "type": "number"
      +      },
      +      "min": {
      +        "type": "number"
      +      },
      +      "op": {
      +        "description": "in: any of values (contact: all of them); contains / not_contains / is: text; empty / not_empty; between: min and/or max.",
      +        "enum": [
      +          "in",
      +          "contains",
      +          "not_contains",
      +          "is",
      +          "empty",
      +          "not_empty",
      +          "between"
      +        ],
      +        "type": "string"
      +      },
      +      "text": {
      +        "maxLength": 240,
      +        "type": "string"
      +      },
      +      "values": {
      +        "description": "For in. campaign: none, no_active, active, paused, draft, ended or id:<campaignId>. contact: email, phone, linkedin, no_email, no_phone, no_linkedin.",
      +        "items": {
      +          "maxLength": 240,
      +          "type": "string"
      +        },
      +        "maxItems": 200,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "op"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Only the rows whose name, company, role or e-mail hold this text.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / sheetId / description
      Previous value: -"Exact enrichment sheet UUID returned by list_sheets."New value: +"Exact sheet UUID."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive and closed-world, so safety is covered; the description adds the 25-row cap, the fact that filtered reads behave like the sheet's own Filtrar/Buscar with matchingRows reporting the total, and that the call is free (no credit cost). It also discloses the row payload structure (row id, non-empty cells, visible labels, stable column ids, contactColumns, kind, company), which is real behavioral context beyond 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?

Purpose and row cap are front-loaded, then paging/selection modes, then filtering semantics, then the return shape. It is a dense single paragraph with little waste, though the closing sentence about kind/company is heavier than needed given there is no output schema to cross-check.

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 6-parameter tool with a complex nested filters object and no output schema, the description is unusually complete: it covers read modes, the 25-row ceiling, filter/search semantics, matchingRows, and the structure of returned rows including people-sheet contact columns. Only the filter field/operator set and error/prerequisite conditions are left unaddressed.

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 a 3 is the floor; the description goes beyond it by explaining the interaction model — limit/offset apply only when rowIds is omitted, rowIds reads exact rows, and filters/search restrict which rows count toward matchingRows rather than just paging the full sheet. It still leaves the filter field vocabulary and operators entirely to the schema.

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?

"Reads rows from ONE sheet the user owns" gives a specific verb, resource and scope boundary, and the emphasis on ONE signals single-sheet reads. It does not name a sibling such as select_sheet_rows, so the agent must infer which read path to prefer from the sibling list rather than from the text.

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 lays out three usage modes clearly: paginate with offset/limit (up to 25), fetch exact rows via rowIds, or narrow with filters/search that only return passing rows. What is missing is any exclusion hint — nothing says when a different read tool (e.g. a selection-based one) should be used instead.

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.