Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)}`, }, ], }; }
  • 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: {}, }, },
  • Input schema definition for the tool (empty object).
    inputSchema: { type: "object", properties: {}, },
  • 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();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chapirousIA/pje-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server