Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesID do processo

Implementation Reference

  • 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; }
  • 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)}`, }, ], };
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chapirousIA/pje-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server