pje_listar_assuntos
Lists procedural subjects within the Brazilian Electronic Judicial Process (PJE) system to help users identify and categorize legal case topics.
Instructions
Lista assuntos processuais
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pje_listar_assuntos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:509-520 (handler)PJEServer.listarAssuntos(): Executes the tool logic by calling PJEClient.listarAssuntos() and formatting the response as MCP content.
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)PJEClient.listarAssuntos(): Core API call to fetch assuntos from PJE endpoint /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 ListToolsRequestSchema handler, defining name, description, and empty input schema.
{ name: "pje_listar_assuntos", description: "Lista assuntos processuais", inputSchema: { type: "object", properties: {}, }, }, - src/index.ts:344-346 (handler)Dispatch case in CallToolRequestSchema handler that checks configuration and calls the tool handler.
if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarAssuntos(); case "pje_status":