get_account_users
Retrieve all users associated with your Offorte Proposal Software account to manage team access and permissions.
Instructions
Lists all account users for the current account
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/account/get-users.ts:15-24 (handler)The execute handler function for the 'get_account_users' tool. It performs a GET request to '/account/users', parses the response using accountUsersSchema, and returns the stringified data or throws an error if invalid.async execute() { const result = await get('/account/users'); const parsed = accountUsersSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); },
- src/schemas/account.ts:3-15 (schema)Zod schemas for account user and array of users, used to validate the API response in the tool handler.export const accountUserSchema = z .object({ id: z.number(), email: z.string(), firstname: z.string(), lastname: z.string(), phone: z.string(), jobtitle: z.string(), date_lastlogin: z.string(), }) .passthrough(); export const accountUsersSchema = z.array(accountUserSchema);
- src/tools/register.ts:19-39 (registration)The getAccountUsersTool is imported and added to the tools array (line 21, relative to block), then all tools are registered on the FastMCP server using registerTools function.const tools = [ getInitialContextTool, getAccountUsersTool, getAutomationSetsTool, getContactDetailsTool, getDesignTemplatesTool, getEmailTemplatesTool, getProposalDirectoriesTool, getProposalTemplatesTool, getTextTemplatesTool, searchContactOrganisationsTool, searchContactPeopleTool, searchProposalsTool, createContactTool, createProposalTool, sendProposalTool, ]; export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }