Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)}`, }, ], };
  • 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: {}, }, },
  • 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":

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