pje_buscar_processo
Search for a specific judicial process by ID using the Brazilian Electronic Judicial Process (PJE) system. Retrieve process details efficiently with A1 and A3 digital certificate support.
Instructions
Busca um processo específico por ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID do processo |
Implementation Reference
- src/index.ts:181-184 (handler)Core handler implementation in PJEClient that performs the HTTP GET request to fetch the specific process by ID from the PJE API.async buscarProcesso(id: string): Promise<PJEResponse> { const response = await this.axiosInstance.get(`/api/v1/processos/${id}`); return response.data; }
- src/index.ts:470-481 (handler)MCP tool handler in PJEServer that extracts the process ID, calls the PJEClient method, and formats the response as MCP content.private async buscarProcesso(args: any) { const { id } = args; const result = await this.pjeClient!.buscarProcesso(id); return { content: [ { type: "text", text: `📄 **Detalhes do processo:**\n\n${JSON.stringify(result, null, 2)}`, }, ], };
- src/index.ts:250-260 (schema)Input schema definition for the pje_buscar_processo tool, specifying the required 'id' parameter.{ name: "pje_buscar_processo", description: "Busca um processo específico por ID", inputSchema: { type: "object", properties: { id: { type: "string", description: "ID do processo" }, }, required: ["id"], }, },
- src/index.ts:334-336 (registration)Registration in the CallToolRequestSchema switch statement that routes calls to the buscarProcesso handler.case "pje_buscar_processo": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.buscarProcesso(request.params.arguments);