Back to Tools
get_consultation_result
Free
Retrieves the results of a previously requested consultation. Poll this endpoint until the status changes to "completed". Results include a detailed written response from the consulting attorney.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| session_token | string | Required | The session token from start_session |
| consultation_id | string | Required | The consultation ID from request_consultation |
Returns
| Name | Type | Description |
|---|---|---|
| consultation_id | string | Consultation identifier |
| status | string | Status (pending, in_progress, completed) |
| response | string | Attorney's detailed response |
| attorney_id | string | Consulting attorney ID |
| completed_at | string | Completion timestamp (ISO 8601) |
| follow_up_available | boolean | Whether follow-up questions are available |
Example
typescript
const result = await mcp.callTool("get_consultation_result", { session_token: "sess_xyz789...", consultation_id: "con_jkl012..."}); if (result.status === "completed") { console.log(result.response); // "Based on your B2B SaaS business model, here are the key GDPR // compliance steps you should consider..."} else { console.log(`Status: ${result.status}. Check back later.`);}