Skip to main content
Glama

Selecionar linhas da planilha

select_sheet_rows
Idempotent

Select rows in the currently open sheet so the dashboard shows them selected and the same row ids can be used for a campaign later: exact rowIds, or filters and/or search (the sheet's Filtrar and Buscar; every filter must hold), e.g. the rows from SP with no active campaign. Up to 5000 rows. This changes web UI selection only; it does not delete or modify data.

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

Input Schema

NameRequiredDescriptionDefault
rowIdsNo
searchNoFree text over name, company, role and e-mail, without accents.
filtersNo
sheetIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / filters
      Added value: +{
      +  "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"
      +}
    • changedInput schema / properties / rowIds / maxItems
      Previous value: -25New value: +5000
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Free text over name, company, role and e-mail, without accents.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "sheetId",
      -  "rowIds"
      -]New value: +[
      +  "sheetId"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations say readOnlyHint=false and destructiveHint=false, and the description explains exactly what that means here: it changes web UI selection only and does not delete or modify data. It also discloses a 5000-row cap and that filters must all hold, adding real context beyond the annotations. What is missing is whether the operation is scoped to the caller's current session/open sheet or what happens if no sheet is open.

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?

One dense sentence, front-loaded with the action and its consequence, followed by the input modes, an example, and the limit/effect disclaimer. Every clause carries information, though the colon-chained structure makes it slightly long to parse in one pass.

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 four-parameter selection tool with no output schema, the description covers purpose, input modes, a cap, and the non-destructive nature of the state change. The main gap is what the call returns (e.g., a selected count) and whether selection replaces or adds to prior selection.

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?

With 25% schema description coverage, the description carries the burden and does so: it explains rowIds as exact ids, filters as the sheet's 'Filtrar' (all must hold), and search as the sheet's 'Buscar', mapping the inputs to UI concepts. It still leaves sheetId and the interaction between rowIds and filters/search (mutually exclusive or combined) unstated.

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 gives a specific verb and resource ('select rows in the currently open sheet') and immediately states the effect (dashboard shows them selected, ids reusable for a campaign). It also distinguishes the two input modes, exact rowIds versus filters/search, so an agent can tell it apart from read-oriented siblings like get_sheet_rows.

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 states a clear when-to-use context (prepare a selection on the dashboard so the same row ids can be used for a campaign later) and provides a concrete example ('the rows from SP with no active campaign'). It does not name an explicit alternative tool or say when not to use it, which keeps it just short of a 5.

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.