Kick off an AI-drafted motion using a saved PrimaCoda matter as the
source of facts. Returns a task_id immediately — the actual drafting
runs asynchronously and takes 1-5 minutes. Poll with check_motion_status.
Use this instead of asking the customer to upload PDFs again. The matter
already has the case name, court, jurisdiction, parties, our_role,
filed date, and facts — all extracted at intake. Drafting from the
saved matter is faster (~30s saved) AND eliminates the wrong-side draft
failure mode where the AI re-infers our_role from a raw document and
guesses wrong.
Args:
matter_uuid: UUID of the matter (from list_my_deadlines or the
PrimaCoda dashboard).
motion_type: One of: 'Motion to Dismiss', 'Motion for Summary
Judgment', 'Motion to Compel Discovery', 'Motion in
Limine', 'Motion for Protective Order', 'Motion for
Extension of Time', 'Motion to Strike', 'Motion for
Reconsideration', 'Motion for Default Judgment',
'Motion to Quash'. Other values pass through.
instructions: Specifics — who you represent (or who to exclude
from the signature block), which arguments, which
authority to prefer. Strongly recommended: vague
instructions yield vague motions.
api_key: Your PrimaCoda MCP API key (starts 'pck_').