EmailmoversMyDataHub docs
Browse the docs

Reference / MCP tool reference

Reference

Account and balance

get_account: Returns the organisation's credit balance by source, plan, per-action prices and rate limit, and for an agent key its monthly budget and per-order cap.

Generated from the contractsView as Markdown

Returns the organisation's credit balance by source, plan, per-action prices and rate limit, and for an agent key its monthly budget and per-order cap. Use it before quoting a large order, or when a spend is refused, to see what remains. Free; it needs a token with account:read. Top-ups happen on mydatahub.emailmovers.com, never inside a tool. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

PropertyValue
Tool nameget_account
Position in tools/list2 of 22
CostFree
Scopeaccount:read
AnnotationsreadOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false
KindRead only; idempotent, not destructive, closed world
REST equivalentGET /v1/account

Input

This tool takes no arguments. The schema sets additionalProperties to false, so any member is refused.

Example call

The params of a tools/call request:

{
  "name": "get_account",
  "arguments": {}
}

Output

The result carries structuredContent that matches this schema, and one line of text that leads with the number.

MemberTypeAlways presentDescription
organisationobjectyes
organisation.idstringyesFormat: an organisation id: org_ followed by a 26 character ULID in upper case Crockford base32, such as org_01JA0Q2V7XN3M9R6T1Y5W8ZAK8.
organisation.namestringyes
organisation.business_detailsBusinessDetailsyesWhether the business name and a UK business confirmation are on record, which a self-serve account needs before its first order.
userobject or nullyesThe signed-in person; null when the caller is an API key.
user.idstringyesFormat: a user id: usr_ followed by a 26 character ULID in upper case Crockford base32, such as usr_01JA0Q3V7XN3M9R6T1Y5W8ZAK8.
user.namestringyes
modeenum: live, testyeslive keys (mdh_live_) spend real credits; test keys (mdh_test_) return synthetic data and never charge.
planobjectyes
plan.idstringyes
plan.namestringyes
plan.kindenum: free, subscription, packyes
plan.renews_atstring (date) or nullyes
plan.cancel_at_period_endbooleanyes
balanceobjectyesCredits by source.
balance.creditsnumberyesCredits available to spend now.
balance.pack_creditsnumberyesFrom credit packs: never expire.
balance.subscription_creditsnumberyesFrom the plan: roll over while subscribed, up to the cap.
balance.rollover_capinteger (0 or more) or nullyes
balance.low_thresholdinteger (0 or more) or nullyesThe credits.low webhook fires when the balance crosses this.
pricesarray of CreditRuleyesWhat each action costs in credits.
prices[].actionstringyes
prices[].labelstringyes
prices[].creditsnumber (0 or more)yesCredits, to one decimal place: whole at 1 credit a record, fractional only where a rule is (0.1 company-only, 1.8 outright, both proposed).
prices[].unitenum: call, record, matchyes
prices[].statusenum: confirmed, proposed, to_confirmyesconfirmed is in force; proposed awaits a decision; to_confirm is a figure still being checked.
prices[].notestringno
gbp_per_creditnumber (0 or more)yesYour plan's price per credit, excluding VAT.
rate_limitRateLimityesThe caller's count limits and what remains in the window.
rate_limit.tierenum: anonymous, free, paidyes
rate_limit.counts_per_minuteinteger (0 or more) or nullyes
rate_limit.counts_per_hourinteger (0 or more) or nullyes
rate_limit.counts_per_dayinteger (0 or more) or nullyes
rate_limit.remaininginteger (0 or more)yes
rate_limit.resets_atstring (date-time)yes
rate_limit.statusenum: confirmed, to_confirmyes
keyobject or nullyesThe calling key and, for an agent key, its budget; null for a person.
key.idstringyesFormat: an API key id: key_ followed by a 26 character ULID in upper case Crockford base32, such as key_01JB3Z4Q2V7XN3M9R6T1Y5W8ZA.
key.kindenum: standard, agentyes
key.budgetBudget or nullyes
key.per_order_max_creditsinteger (0 or more) or nullyes
key.expires_atstring (date-time) or nullyes
account_managerobject or nullyesThe named person behind Talk to us.
account_manager.namestringyes
account_manager.calendar_urlstring (uri)yes
agreementsobjectyesThe Data Licence and Sharing Agreement (accepted with every order, or with an agent key that orders on its own) and the Article 28 DPA (accepted with the first suppression list).
agreements.dlsaAgreementyes
agreements.dpaAgreementyes

Errors

A failed call returns isError true. The text content leads with the sentence a person acts on, then the whole problem as JSON, with code, detail, next_step and did_you_mean. A 401 and a step-up 403 are answered at HTTP level so the client can start authorisation. See Errors.