pje_listar_orgaos_julgadores
Retrieve a list of judicial bodies from the Brazilian Electronic Judicial Process system to identify available courts and tribunals for legal proceedings.
Instructions
Lista órgãos julgadores
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:484-495 (handler)MCP tool handler function in PJEServer class that executes the tool logic by calling PJEClient.listarOrgaosJulgadores() and formatting the response as text content.
private async listarOrgaosJulgadores() { const result = await this.pjeClient!.listarOrgaosJulgadores(); return { content: [ { type: "text", text: `🏛️ **Órgãos julgadores:**\n\n${JSON.stringify(result, null, 2)}`, }, ], }; } - src/index.ts:337-339 (registration)Switch case in CallToolRequestSchema handler that routes calls to the tool's handler function.
case "pje_listar_orgaos_julgadores": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarOrgaosJulgadores(); - src/index.ts:262-268 (schema)Tool registration in ListToolsRequestSchema response, including name, description, and empty input schema (no parameters required).
name: "pje_listar_orgaos_julgadores", description: "Lista órgãos julgadores", inputSchema: { type: "object", properties: {}, }, }, - src/index.ts:186-189 (helper)PJEClient helper method that performs the actual API GET request to /api/v1/orgaos-julgadores and returns the response data.
async listarOrgaosJulgadores(): Promise<PJEResponse> { const response = await this.axiosInstance.get("/api/v1/orgaos-julgadores"); return response.data; }