Retrieve workspace
The workspace this credential acts for: its plan, every limit with what is used, and who is asking.
workspace_getThis tool takes no arguments.
Returns
The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.
object"workspace"Always
workspace.idstringThe id of the workspace.
namestringThe name of the workspace.
slugstringThe name in lowercase letters, digits and dashes.
planobjectThe plan the workspace is on.
plan.idstringThe id of the plan:
free,proormax, orself_hostedon a server a team hosts itself.plan.namestringThe name of the plan.
plan.renewsAtstringWhen the counts of the current month start again.
plan.intervalstring | nullHow the plan is paid: by the
monthor by theyear.nullwhen nobody pays for it.One of
monthyearplan.paidUntilstring | nullUntil when the plan is paid for, or
null.plan.extraEmailCentsnumber | nullWhat every 1,000 emails past a limit cost on this plan, in cents of a US dollar, or
null.plan.stopsAtLimitbooleanWhether sending stops when the emails of the month are used up.
limitsobject[]Every limit of the plan, with how much of it is used.
limits[].idstringWhich limit this is, such as
domainsormembers.limits[].usednumberHow much of it is used in the current period.
limits[].limitnumberHow much the plan allows.
usageobject[]Everything that is counted, whether the plan limits it or not.
usage[].idstringWhat is counted, such as
transactionalorcontacts.usage[].usednumberHow much of it is used in the current period.
extraobjectWhat this month has used beyond the plan. Zero on a plan that stops at its limits.
extra.emailsintegerHow many emails went past the limits of the plan this month.
extra.centsintegerWhat they cost so far, in cents of a US dollar.
viewerobjectWho is asking.
viewer.namestringThe name of the person, or of the API key.
viewer.emailstringThe address of the person. Empty for an API key.
viewer.imagestring | nullThe address of their picture, or
null.viewer.kindstringHow the request was signed:
sessionfor a signed-in person,keyfor an API key.One of
sessionkeydemoviewer.rolestring | nullTheir role in the workspace, or
nullfor an API key.One of
owneradminmemberviewerstoragestringWhere the data is kept:
d1for the database,memorywhen nothing outlives a restart.One of
memoryd1servicesobject[]What the API is connected to, and whether each part works.
services[].idstringThe part:
api,sending,receiving,webhooks,payments,assistantorimages, the storage that keeps copies of your images.One of
apisendingreceivingwebhookspaymentsassistantimagesservices[].statestringokwhen it works,offwhen it is not connected,degradedordownwhen it fails.One of
okoffdegradeddownunsubscribePageobjectHow the unsubscribe page of the workspace looks.
unsubscribePage.titlestringThe heading of the unsubscribe page. Up to 120 characters.
unsubscribePage.messagestringThe sentence under the heading. Up to 500 characters.
unsubscribePage.buttonstringThe words on the button. Up to 60 characters.
unsubscribePage.accentstringThe colour of the button, as a hex colour such as
#111111.unsubscribePage.askReasonbooleanWhether the page asks why the person is leaving.
unsubscribePage.showLogobooleanWhether the page shows your logo.
billingEmailstringWhere invoices and billing notices are sent.
replyTostringThe address replies go to when a message names none and its template has none. Empty for none.
hostImagesbooleanWhether a copy is kept of every image of your templates and broadcasts, and outgoing mail links the copy. It only happens while the
imagesservice isok.createdAtstringWhen the workspace was made.