Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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