Skip to main content
Glama

Conector Juspronto

Documento: anexar arquivo a um processo por link

documento

Anexa um arquivo (PDF, imagem, Word, Excel ou TXT) à pasta de um processo SEM que você receba o arquivo. preparar_envio: processoId (de buscar_processos); devolve um link de envio, o envioId e a pasta de destino. Mostre o link ao advogado: ele o abre no navegador, logado no JusPronto, e escolhe o arquivo. O link vale 15 minutos e serve para um envio só. status: envioId; diz se o arquivo chegou (AGUARDANDO, ENVIANDO, RECEBIDO ou EXPIRADO). Chame status depois que o advogado disser que enviou. Não lê o conteúdo do arquivo; PDF entra na leitura dos autos. Para só consultar, use status_envio_documento: não pede permissão de escrita.

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": {
      "acao": "<acao>"
    },
    "name": "documento"
  }
}

Input Schema

NameRequiredDescriptionDefault
acaoYespreparar_envio (gera o link de envio) ou status (confere se o arquivo chegou)
envioIdNostatus: envioId devolvido por preparar_envio
processoIdNopreparar_envio: ID do processo (de buscar_processos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-destructive, non-idempotent, closed-world; the description goes well beyond that with operational traits: the link expires in 15 minutes, is single-use, requires the lawyer to be authenticated in JusPronto in a browser, and the tool never reads the file's contents (though PDFs feed into case-record reading). It also enumerates the observable status states (AGUARDANDO, ENVIANDO, RECEBIDO, EXPIRADO).

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 core capability and the no-file-transfer constraint are front-loaded, and the per-action details follow in a logical order. It is dense but nearly every clause carries operational information; the colon-semicolon packing makes it slightly harder to scan than it could be.

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?

With no output schema and a 3-parameter schema, the description supplies everything needed: what preparar_envio returns (link, envioId, destination folder), what status reports, the human-in-the-loop dependency, and the timing constraint. Nothing required for correct invocation 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?

Schema coverage is already 100%, so the baseline is 3, but the description adds flow meaning: processoId originates from buscar_processos, envioId is the value returned by preparar_envio, and it explains what each action consumes and what the status values mean, which the schema does not enumerate.

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 specific verb and resource: attach a file (PDF, image, Word, Excel, TXT) to a case folder without the agent ever receiving the file. It then names its read-only sibling (status_envio_documento) and what that sibling does, so the agent can distinguish the two without opening either schema.

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 prescribes the two-step workflow explicitly: call preparar_envio, show the returned link to the lawyer so he can upload in the browser while logged in, then call status once the lawyer says the file was sent. It also states the alternative for read-only checks (status_envio_documento) and why it differs (no write permission required).

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