pje_listar_classes
Lists procedural classes from the Brazilian Electronic Judicial Process (PJE) system to help users identify and navigate legal case types.
Instructions
Lista classes processuais
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:497-507 (handler)The main handler function for the 'pje_listar_classes' tool in PJEServer class. It calls PJEClient.listarClasses() and formats the result as a text response.private async listarClasses() { const result = await this.pjeClient!.listarClasses(); return { content: [ { type: "text", text: `📚 **Classes processuais:**\n\n${JSON.stringify(result, null, 2)}`, }, ], };
- src/index.ts:340-342 (registration)Registration and dispatch for the 'pje_listar_classes' tool in the CallToolRequestSchema switch statement.case "pje_listar_classes": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarClasses();
- src/index.ts:269-276 (schema)Tool schema definition including name, description, and input schema (empty properties) in the ListToolsRequestSchema response.{ name: "pje_listar_classes", description: "Lista classes processuais", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:191-194 (helper)Helper method in PJEClient class that performs the actual API call to fetch classes from '/api/v1/classes'.async listarClasses(): Promise<PJEResponse> { const response = await this.axiosInstance.get("/api/v1/classes"); return response.data; }