Skip to main content
Glama

Checar sinais da planilha

check_sheet_signals
Idempotent

Which companies of a sheet (or of the rows given) show a buying signal, read and checked in one call, free: the signals the sheet already has (its Sinal column, an imported signal column, the ERP and loyalty club columns), the Receita's events of each CNPJ through the Nock Registry (filial nova, capital aumentou, sócio novo, contrato público, saída do Simples or MEI, periodDays 7/30/45/60/90, 90 by default), Nock's job index (openings in the period, and the ERP a post names as the company's) and the answers Nock already keeps (loyalty club, competitors' club apps, ERP). What fires is written into the sheet as its signal cells, on every row of the company. Returns, per signal, how many companies show it with examples (the fact and its public evidence) and the monitor that keeps bringing it (feed), plus companiesWithSignal, companiesWithoutSignal and signalRows. paidChecks (loyalty_club for supermarkets, erp) check the companies with no kept answer, up to 30 per call within the call's time: without confirmed they are only quoted (paidQuote.maxCredits, status needs_confirmation); with confirmed true they run, and only the companies where the signal is found are charged (4 credits a loyalty club answer, 6 an ERP proved).

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

Input Schema

NameRequiredDescriptionDefault
rowIdsNoOnly these rows' companies (the rows the person picked). Omit for the whole sheet.
sheetIdYesThe sheet's id.
confirmedNotrue runs the paid checks a call without it quoted (paidQuote), with the same input.
paidChecksNoPaid checks for the companies with no kept answer: loyalty_club (supermarkets: a competitor's club or none) and erp (the ERP the company runs). Quoted first; run only with confirmed.
periodDaysNoHow far back a signal counts: 7, 30, 45, 60 or 90 days. Default 90.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

With readOnlyHint=false and no destructive flag, the description carries the mutation disclosure itself: 'What fires is written into the sheet as its signal cells, on every row of the company.' It goes well beyond the annotations by stating costs (4 credits per loyalty club answer, 6 per proved ERP), a 30-company cap per call, the needs_confirmation/paidQuote.maxCredits status, and the 90-day default. Nothing here contradicts the annotations; 'free' is scoped to the read/check itself and immediately reconciled with the paid path.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, which is good, but the remainder is a single dense run-on paragraph with heavy parenthetical nesting that is hard to parse. Every element is relevant, yet the wall-of-text structure forces the reader to re-scan rather than letting information be skimmed.

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?

The tool is complex (5 parameters, a read plus a write plus a paid-confirmation flow, no output schema) and the description does the heavy lifting: it discloses the side effect, the return shape (companiesWithSignal, companiesWithoutSignal, signalRows, per-signal examples and evidence), and the price/confirmation mechanics. What is thin is guidance on choosing it against alternatives, which is the remaining gap.

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 description coverage is 100%, so the schema already documents sheetId, rowIds, periodDays, paidChecks and confirmed, which sets the baseline at 3. The description mostly restates those semantics (the periodDays 7/30/45/60/90 set, rowIds as 'the rows the person picked') and adds little syntax or format detail the schema does not already supply.

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?

Opens with a specific verb and resource: reads and checks 'which companies of a sheet ... show a buying signal,' and enumerates the sources (Sinal column, imported signal column, ERP, loyalty club, Nock Registry events, job index). The scope is unambiguous, but it never names or contrasts sibling tools such as explore_signals or update_campaign_signals, so an agent still has to infer why it would pick this one over them.

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?

It does give real usage conditions for the paid branch: paidChecks are quoted first when confirmed is absent, and only run and charge when confirmed is true. However, it never states when to use this tool instead of the sibling signal/exploration tools, nor when to omit rowIds and run the whole sheet, so selection guidance is implied rather than explicit.

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.