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

NameTypeRequiredDescription
session_tokenstring
Required
The session token from start_session
consultation_idstring
Required
The consultation ID from request_consultation

Returns

NameTypeDescription
consultation_idstringConsultation identifier
statusstringStatus (pending, in_progress, completed)
responsestringAttorney's detailed response
attorney_idstringConsulting attorney ID
completed_atstringCompletion timestamp (ISO 8601)
follow_up_availablebooleanWhether 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.`);
}