Skip to main content
Glama

pje_listar_classes

Lists procedural classes from the Brazilian Electronic Judicial Process (PJE) system to help users identify and navigate legal case types.

Instructions

Lista classes processuais

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'pje_listar_classes' tool in PJEServer class. It calls PJEClient.listarClasses() and formats the result as a 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)}`, }, ], };
  • src/index.ts:340-342 (registration)
    Registration and dispatch for the 'pje_listar_classes' tool in the CallToolRequestSchema switch statement.
    case "pje_listar_classes": if (!this.pjeClient) throw new Error("PJE não configurado"); return await this.listarClasses();
  • Tool schema definition including name, description, and input schema (empty properties) in the ListToolsRequestSchema response.
    { name: "pje_listar_classes", description: "Lista classes processuais", inputSchema: { type: "object", properties: {}, }, },
  • Helper method in PJEClient class that performs the actual API call to fetch classes from '/api/v1/classes'.
    async listarClasses(): Promise<PJEResponse> { const response = await this.axiosInstance.get("/api/v1/classes"); return response.data; }

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