Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

legal_monitorar_lote

Cria monitoramentos em LOTE: uma lista de números CNJ (avisa nova movimentação) e/ou de OABs "12345/SP" (avisa nova publicação/intimação no Diário). Até 25 alvos, cada um já nasce com o estado atual (estado_inicial). De 26 a 5000, o lote é ASSÍNCRONO: os monitoramentos são criados na hora (pendente_linha_de_base: true) e a 1ª checagem, silenciosa, acontece nas próximas passadas automáticas (linha_de_base_estimada diz quando). Nos dois modos, só a NOVIDADE depois da 1ª checagem gera alerta, pelo webhook do install (evento legal.movimentacao_nova), com um resumo (data e descrição da última movimentação ou das publicações novas). OAB é checada a cada 2 h por padrão; processo, a cada 6 h. Alvo que já é monitorado neste workspace não é duplicado (ja_existia: true). Retorna itens[] na ordem enviada, cada um com watch_id ou erro, sem um item derrubar os outros. Para listar use legal_listar_monitoramentos; para remover vários, legal_remover_monitoramento com watch_ids.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "legal_monitorar_lote"
  }
}

Input Schema

NameRequiredDescriptionDefault
oabsNo
processosNo
label_prefixoNo
intervalo_horasNo
avisar_estado_inicialNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / avisar_estado_inicial
      Added value: +{
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, non-destructive, non-idempotent, closed-world write. The description goes far beyond: async threshold behavior, `pendente_linha_de_base` and `linha_de_base_estimada`, silent first check, alerting only on novelty after baseline via the install webhook (legal.movimentacao_nova), default polling intervals (2 h OAB vs 6 h processo), dedup as `ja_existia: true`, and per-item error isolation. No contradiction with 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?

Front-loaded with the core action and target formats, then layered with mode thresholds, alerting semantics and sibling routing. Dense but nearly every clause carries operational information; the single block paragraph makes it slightly harder to scan than a structured layout would.

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 5-parameter write tool with no output schema, the description covers the return shape (`itens[]` in input order, each with `watch_id` or `erro`, one failure not aborting the rest) and the async lifecycle. Only the purpose of the `label_prefixo` and `avisar_estado_inicial` parameters is left unexplained.

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 coverage is 0% across 5 parameters, so the description must carry the load. It explains the OAB string format ('12345/SP') and CNJ numbers, and implies what `intervalo_horas` controls by giving the 2 h / 6 h defaults, but `label_prefixo` and `avisar_estado_inicial` are never explained, leaving real gaps.

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?

States a specific verb and resource ('Cria monitoramentos em LOTE') with the two target types (CNJ numbers and OABs '12345/SP') and scale limits (25 / 26–5000). It is clearly distinguishable from legal_listar_monitoramentos and legal_remover_monitoramento, which it names.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use legal_listar_monitoramentos to list and legal_remover_monitoramento with `watch_ids` to remove several. It also gives the selection condition between the synchronous (≤25) and asynchronous (>5000-cap) modes and states the dedup rule for already-monitored targets.

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.