pje_listar_assuntos
Retrieve procedural topics from the Brazilian PJE system using this tool integrated with the PJE MCP Server, designed to handle A1 and A3 digital certificates for secure access to judicial data.
Instructions
Lista assuntos processuais
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:510-521 (handler)Handler function that executes the pje_listar_assuntos tool by calling PJEClient.listarAssuntos() and formatting the MCP response.private async listarAssuntos() { const result = await this.pjeClient!.listarAssuntos(); return { content: [ { type: "text", text: `📑 **Assuntos processuais:**\n\n${JSON.stringify(result, null, 2)}`, }, ], }; }
- src/index.ts:196-199 (helper)Core helper method in PJEClient that makes the API call to fetch assuntos processuais from /api/v1/assuntos.async listarAssuntos(): Promise<PJEResponse> { const response = await this.axiosInstance.get("/api/v1/assuntos"); return response.data; }
- src/index.ts:277-284 (registration)Tool registration in the ListTools response, including name, description, and empty input schema.{ name: "pje_listar_assuntos", description: "Lista assuntos processuais", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:280-283 (schema)Input schema definition for the tool (empty object).inputSchema: { type: "object", properties: {}, },
- src/index.ts:343-345 (handler)Dispatch case in CallToolRequest handler that invokes the listarAssuntos method.case "pje_listar_assuntos": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarAssuntos();