pje_listar_classes
Generate a list of procedural classes within the Brazilian Electronic Judicial Process (PJE) system using a Model Context Protocol (MCP) server, enabling integration with judicial data.
Instructions
Lista classes processuais
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:497-507 (handler)PJEServer handler for 'pje_listar_classes' tool: checks if PJE client is configured (in dispatch), calls PJEClient.listarClasses(), and returns formatted 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:191-194 (helper)PJEClient.listarClasses(): Core implementation making HTTP GET request to /api/v1/classes endpoint.async listarClasses(): Promise<PJEResponse> { const response = await this.axiosInstance.get("/api/v1/classes"); return response.data; }
- src/index.ts:340-342 (registration)Dispatch case in CallToolRequestSchema handler that routes 'pje_listar_classes' to the handler function.case "pje_listar_classes": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarClasses();
- src/index.ts:269-276 (registration)Tool registration in ListToolsRequestSchema: defines name, description, and empty input schema.{ name: "pje_listar_classes", description: "Lista classes processuais", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:272-275 (schema)Input schema for pje_listar_classes tool: empty object (no parameters required).inputSchema: { type: "object", properties: {}, },