Skip to main content
Glama

Conector Juspronto

Contexto atual do processo

montar_contexto
Read-onlyIdempotent

Monta evidências locais para uma pergunta, sem gerar texto nem consultar fornecedores: ficha com fonte e frescor, prazos abertos e sugestões pendentes, andamentos e intimações desde o dia do último download dos autos em Brasília e trechos encontrados pela pergunta, sem páginas repetidas. Cada parte informa dataDeCorte. limiteTokens aceita inteiro de 1000 a 20000, padrão 8000, estimado em 4 caracteres por token, incluindo o JSON final após a máscara do perfil. O corte preserva essa ordem de prioridade: os trechos saem primeiro. truncado e aviso informam o que ficou de fora. Use para reunir o estado atual antes de responder; para ler uma evidência inteira, prefira ler_paginas. Processo sigiloso continua marcado e só são lidos dados do escritório. LIMITE_CONTEXTO_INVALIDO pede corrigir o limite.

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>",
      "pergunta": "<pergunta>"
    },
    "name": "montar_contexto"
  }
}

Input Schema

NameRequiredDescriptionDefault
perguntaYesPergunta usada para localizar os trechos relevantes dos autos
processoIdYesID do processo obtido em buscar_processos
limiteTokensNoDe 1000 a 20000 tokens estimados; padrão 8000, com 4 caracteres por token

Output Schema

NameRequiredDescriptionDefault
avisoNo
pastaNo
partesNo
truncadoNo
processoIdNo
cnjFormatadoNo
limiteTokensNo
avisoConteudoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, yet the description still adds substantial behavior: per-part dataDeCorte, the truncation order of priority (trechos saem primeiro, then tudo mais), truncado/aviso reporting what was cut, and the LIMITE_CONTEXTO_INVALIDO error path. What is not covered is pagination or whether the whole payload is returned in one call, which keeps it off a 5.

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?

The content is front-loaded: what it builds, then the token budget, then the truncation policy, then the routing to ler_paginas. It is one dense block though, and the mask/priority sentences are packed tightly enough that a reader may need to re-read; a short break or ordering signal would help.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only aggregation tool with an output schema, the description supplies everything the agent needs: budget behavior, truncation semantics, confidentiality marking, error code, and the alternative for full-document reading. Nothing required to call it correctly is missing.

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 schema coverage at 100%, the parameters are already documented, but the description adds meaning the schema does not: the token estimate assumes 4 characters per token and the count includes the final JSON after the profile mask, which changes how an agent should size limiteTokens. processoId and pergunta are only referenced indirectly, so it is not a full 5.

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 opens with a precise verb and resource: 'Monta evidências locais para uma pergunta', and immediately bounds the scope by negation ('sem gerar texto nem consultar fornecedores'). It then enumerates the concrete components assembled (ficha com fonte e frescor, prazos abertos, sugestões pendentes, andamentos, intimações, trechos), which distinguishes this from summary or timeline siblings.

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?

It states the operative moment ('Use para reunir o estado atual antes de responder') and names the alternative with the condition that selects it ('para ler uma evidência inteira, prefira ler_paginas'). It also records a handling rule for confidential processes and the fact that only office data is read, so there is no inference left about when this tool applies.

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