get_account_users
List 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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/account/get-users.ts:15-24 (handler)The execute method of the getAccountUsersTool that sends a GET request to '/account/users', validates the response against accountUsersSchema, throws an error if invalid, and returns the JSON string of the parsed data.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 schema definitions for account users: accountUserSchema for individual user objects and accountUsersSchema as an array of them, used for validating the API response.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:9-39 (registration)Registers the getAccountUsersTool by importing it, including it in the tools array, and adding all tools to the FastMCP server instance.import { getAccountUsersTool } from './account/get-users.js'; import { getContactDetailsTool } from './contacts/get-contact-details.js'; import { searchContactOrganisationsTool } from './contacts/search-contact-organisations.js'; import { searchContactPeopleTool } from './contacts/search-contact-people.js'; import { createContactTool } from './contacts/create-contact.js'; import { searchProposalsTool } from './proposals/search-proposals.js'; import { getProposalDirectoriesTool } from './proposals/get-proposal-directories.js'; import { createProposalTool } from './proposals/create-proposal.js'; import { sendProposalTool } from './proposals/send-proposal.js'; 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)); }