Law library › Developers › A2A agent
A2A agent
Agent card: getlawed.co.za/.well-known/agent.json · endpoint https://getlawed.co.za/api/mcp/law/a2a (JSON-RPC: message/send, tasks/get). The agent is deterministic: text containing case citations or Acts is checked (skill legal_verify_citations); any other text is a library search (legal_library_search). Same keys, plans and quotas as REST and MCP.
curl -s https://getlawed.co.za/api/mcp/law/a2a -H "Content-Type: application/json" -H "Authorization: Bearer $GETLAWED_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"message/send","params":{"message":{"role":"user","messageId":"m1","parts":[{"kind":"text","text":"Check: S v Makwanyane and Another 1995 (3) SA 391 (CC); Labour Relations Act 66 of 1995"}]}}}'
The reply is a completed task with a text part (readable result) and a data part (the same structured data as REST). A task over quota comes back in state rejected.
Using an AI assistant? Connect it to GetLawED's verified South African law library — it can then quote provisions with their official source and check citations before you rely on them. How to connect