Skip to main content
Glama

Conector Juspronto

Dados para a peça

dados_para_peca
Read-onlyIdempotent

Devolve o contrato de dados de um tipo de peça num processo: partes com qualificação e FONTE, campos faltantes, peças essenciais a ler, o checklist processual do tipo, preferências de redação e peças-modelo do escritório. Use no início da redação de uma peça, antes de ler os autos.

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": {
      "processoId": "<processoId>",
      "tipoPeca": "<tipoPeca>"
    },
    "name": "dados_para_peca"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoPecaYesTipo da peça (um dos valores do enum, cada um com o seu checklist)
processoIdYesID do processo (obtenha via buscar_processos)
parteRepresentadaNoNome da parte que o escritório representa, se o advogado já indicou (opcional)

Output Schema

NameRequiredDescriptionDefault
pastaNo
frescorNo
processoIdNo
cnjFormatadoNo
avisoConteudoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / tipoPeca / description
      Previous value: -"Tipo da peça (tipos com checklist: contestação trabalhista, manifestação, recurso ordinário, manifestação sobre laudo, réplica, contrarrazões)"New value: +"Tipo da peça (um dos valores do enum, cada um com o seu checklist)"
    • changedInput schema / properties / tipoPeca / enum
      Previous value: -[
      -  "CONTESTACAO_TRABALHISTA",
      -  "MANIFESTACAO",
      -  "RECURSO_ORDINARIO",
      -  "MANIFESTACAO_LAUDO",
      -  "REPLICA",
      -  "CONTRARRAZOES"
      -]New value: +[
      +  "CONTESTACAO_TRABALHISTA",
      +  "MANIFESTACAO",
      +  "RECURSO_ORDINARIO",
      +  "MANIFESTACAO_LAUDO",
      +  "REPLICA",
      +  "CONTRARRAZOES",
      +  "INICIAL_TRABALHISTA",
      +  "INICIAL_CIVEL",
      +  "CONTESTACAO_CIVEL",
      +  "EMBARGOS_DECLARACAO",
      +  "AGRAVO_PETICAO",
      +  "RECURSO_REVISTA",
      +  "IMPUGNACAO_CALCULOS",
      +  "EMBARGOS_EXECUCAO",
      +  "EMBARGOS_EXECUCAO_TRABALHISTA",
      +  "RAZOES_FINAIS",
      +  "APELACAO",
      +  "ALIMENTOS",
      +  "GUARDA",
      +  "DIVORCIO",
      +  "RESPOSTA_ACUSACAO",
      +  "PROCURACAO",
      +  "CONTRATO_HONORARIOS",
      +  "NOTIFICACAO_EXTRAJUDICIAL",
      +  "ACORDO"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "avisoConteudo": {
      +      "type": "string"
      +    },
      +    "cnjFormatado": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "frescor": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "andamentosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "atosDepoisDosAutos": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "andamentoId": {
      +                    "type": "string"
      +                  },
      +                  "data": {
      +                    "type": "string"
      +                  },
      +                  "descricao": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "autosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "aviso": {
      +              "type": "string"
      +            },
      +            "djenAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "truncado": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "pasta": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "processoId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real behavioral value by disclosing the shape of the payload — including provenance markers (FONTE) and gap detection (campos faltantes) — which shapes how the agent interprets results. It does not mention cost, staleness, or whether results are cached, keeping it below 5.

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

Conciseness5/5

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

Two sentences, no filler: the first front-loads the returned contract with its key components, the second gives the timing. The enumeration is dense but every item earns its place by signaling a distinct output section.

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?

With an output schema present, return values need not be explained, yet the description usefully previews them; inputs and call conditions are clear for a read-only, 3-parameter tool. It leaves minor ambiguity about what the optional parteRepresentada changes in the result.

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 100% and the enum already documents tipoPeca and its per-type checklist, while processoId points to buscar_processos. The description only indirectly links 'tipo de peça' to the checklist output, adding little meaning beyond the structured fields — the baseline 3 applies.

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 concrete verb (devolve) and a specific resource — the data contract of a peça type within a processo — and enumerates its contents (partes com qualificação e FONTE, campos faltantes, peças essenciais, checklist, preferências, modelos). This is far more specific than siblings like listar_pecas or checar_peca and lets an agent recognize it without opening the schema.

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?

Explicitly pins the moment of use: 'no início da redação de uma peça, antes de ler os autos', which tells the agent to call it first in a drafting workflow. It stops short of naming an alternative tool or stating when not to use it (e.g., if the contract was already fetched).

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.

Resources