ORDan

v0.1.4
io.github.joshluberisse/ordan Checked 4 days ago Published 1 month ago

ORDan's MCP server: calls, SMS and phone numbers for AI agents, under their owner's spend controls

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ordan.agent.create Pair with your owner

Register a persistent agent principal. Asks your owner to approve you on ORDan: returns a pairing URL and code for the human. Once approved, this runtime holds your credential (you never see it) and the other ordan.* tools work.

ParameterTypeDescription
name *stringHuman-readable agent name, e.g. 'Executive Assistant'
capabilitiesarrayRequested capabilities; your owner approves or denies the request as asked
monthly_limit_centsintegerRequested monthly spend ceiling in cents

ordan.agent.status Connection status

Whether your owner has approved you yet, and what you may do.

ordan.line.provision Get a new Line

Provision a phone identity for an agent: a new Line with its own number, bound to you.

ParameterTypeDescription
approvalstringApproved apr_… when provisioning required approval
area_codestringPreferred US area code, e.g. 212
countrystringORDan offers US numbers only
idempotency_keystringStable key for retrying this exact logical operation
namestring

ordan.line.list List your Lines

List your Lines, with each one's spend this month.

ordan.line.update Update a Line

Rename a Line, or set its monthly spend ceiling in cents (spend ceilings are an owner/key decision — an agent credential can only rename).

ParameterTypeDescription
line *stringline_… id
namestringNew name for the Line
spend_limit_centsMonthly ceiling in cents; null removes it

ordan.line.release Release a Line

Release one of your Lines and its number (requires numbers.release).

ParameterTypeDescription
line *stringline_… id

ordan.number.list List your numbers

List your numbers, each with the Line it is attached to: those on your Lines, and any you bought that are not on a Line (requires numbers.provision or numbers.release). Use it to find a number that was bought but not attached to a Line.

ordan.number.release Release a number

Release a number you bought that is not in use on a Line back to the carrier (requires numbers.release). A number on a Line goes with its Line: use ordan.line.release.

ParameterTypeDescription
number *stringnum_… id

ordan.call.create Place a call

Place a policy-checked outbound call. If you have one Line it is used; with several, pass `line`. If policy needs a human, the error carries details.approval_request (apr_…): retry with `approval` set to it once your owner approves.

ParameterTypeDescription
to *stringDestination in E.164, e.g. +12125550123
approvalstringapr_… id of an approved request, when retrying
categorystring
idempotency_keystringReuse for an identical request after a timeout; adding approval needs a new key
linestringline_… id, when you have several
max_duration_secondsinteger
objectivestringWhat the call should achieve
purposestringWhy this call is happening (audited)

ordan.call.status Call status

Poll live call state.

ParameterTypeDescription
call *stringcall_… id

ordan.call.transfer Transfer a call

Hand off to a human, mid-call: transfer an in-progress call (policy-checked). If the destination needs your owner's approval, the error carries details.approval_request (apr_…): retry with `approval` once they approve.

ParameterTypeDescription
call *stringcall_… id
to *stringE.164 to transfer to
approvalstringapr_… id of an approved request, when retrying
categorystring
idempotency_keystring
purposestringWhat it is for, e.g. escalation

ordan.call.list List your calls

List your recent calls. status=ringing shows inbound calls waiting to be answered.

ParameterTypeDescription
linestringline_… id
statusstring

ordan.call.answer Answer a call

Answer a ringing inbound call routed to you (decline with ordan.call.hangup).

ParameterTypeDescription
call *stringcall_… id

ordan.call.hangup Hang up

Hang up a call.

ParameterTypeDescription
call *stringcall_… id

ordan.call.dtmf Press keys on a call

Navigate a phone menu: press keys (DTMF) on a connected call you hold, e.g. "1" or "2w123#" (w = half-second pause). Set sensitive for PINs or account numbers: your owner's ledger shows them masked.

ParameterTypeDescription
call *stringcall_… id
digits *stringKeys to press: 0-9 * # A-D, w/W to pause
sensitiveboolean

ordan.call.record Record a call

Start or stop recording a connected call (requires calls.record). Recordings belong to your owner: you see that one exists, not its audio.

ParameterTypeDescription
action *string
call *stringcall_… id

ordan.call.report Report a call's outcome

Report what happened on a call you made or answered: its transcript and/or its structured outcome (e.g. outcome: appointment_rescheduled, fields: { date, time }). Each is recorded once, in your ledger; ORDan adds the call's measured duration.

ParameterTypeDescription
call *stringcall_… id
fieldsobjectDetails of the outcome, e.g. { date, time }
outcomestringWhat came of it, as a slug: e.g. appointment_rescheduled
summarystring
transcriptarrayThe conversation, turn by turn

ordan.sms.send Send an SMS

Send a message from the agent's line. With several Lines, pass `line`. Approval works as for ordan.call.create.

ParameterTypeDescription
body *string
to *stringE.164
approvalstringapr_… id of an approved request, when retrying
categorystring
idempotency_keystring
linestringline_… id, when you have several
purposestringWhat it is for, e.g. scheduling
smart_encodingbooleanExplicit opt-in for typographic ASCII substitutions; emoji/unknown Unicode is preserved

ordan.sms.read Read your messages

Read your messages: replies and what you sent. Pass `with` for the whole conversation with one number.

ParameterTypeDescription
directionstring
withstringE.164 of the other party

ordan.policy.check Check an action against policy

Evaluate an action before execution: would policy allow it right now? The action is the capability it uses: voice.outbound (a call), sms.send (a text), calls.transfer (a hand-off) or purchases (a purchase: pass merchant and amount_cents).

ParameterTypeDescription
action *string
amount_centsintegerpurchases: what it would cost, in cents
bodystringsms.send: message content for a segment/cost estimate
callstringcall_… id: the call to hand off (required for calls.transfer)
categorystring
linestringline_… id the action would use (default: your only Line)
merchantstringpurchases: who you would buy from
purposestringWhat it is for, e.g. scheduling
smart_encodingboolean
tostringE.164

ordan.purchase.authorize Authorize a purchase

Ask before you buy: authorize a purchase on your owner's behalf (requires purchases). Within policy (by default up to $50 each) it is authorized at once; above it your owner approves first (retry with `approval`). ORDan never sees card data: pay the merchant yourself, then call ordan.purchase.complete with what was charged.

ParameterTypeDescription
amount_cents *integerThe most it will cost, in cents (USD)
description *stringWhat you are buying and why
merchant *string
approvalstringapr_… id of an approved request, when retrying
categorystringThe policy category it falls under (e.g. travel, medical); your owner's rules may block or require approval by category
purposestringWhat it is for; classifies the purchase only when no category is given

ordan.purchase.complete Complete a purchase

Record that you made an authorized purchase: what was actually charged (never more than authorized) and the merchant's confirmation number.

ParameterTypeDescription
amount_cents *integer
purchase *stringpur_… id
receiptstringOrder or confirmation number

ordan.purchase.cancel Cancel a purchase

Give back an authorization you will not use.

ParameterTypeDescription
purchase *stringpur_… id

ordan.usage.get Usage this month

Read spend against limits for this month.

ordan.ledger.read Read your ledger

Read the agent's event history: what happened (calls, texts, approvals) and what it cost.

ParameterTypeDescription
limitinteger
sincestringevt_… cursor: only events after it
typesstringComma-separated event types, e.g. call.completed,message.received