get_company
Retrieve company information and settings including billing configuration, time tracking preferences, and enabled features for your Harvest account.
Instructions
Retrieve company information and settings for the authenticated account. Returns comprehensive company details including billing configuration, time tracking preferences, and enabled features.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/company.ts:16-32 (handler)The execute method of CompanyToolHandler implements the logic for 'get_company' tool.
async execute(args: Record<string, any>): Promise<CallToolResult> { try { logger.info('Fetching company information from Harvest API'); const company = await this.config.harvestClient.getCompany(); return { content: [ { type: 'text', text: JSON.stringify(company, null, 2), }, ], }; } catch (error) { return handleMCPToolError(error, 'get_company'); } } - src/tools/company.ts:35-51 (registration)The 'get_company' tool registration in registerCompanyTools.
export function registerCompanyTools(config: BaseToolConfig): ToolRegistration[] { const handler = new CompanyToolHandler(config); return [ { tool: { name: 'get_company', description: 'Retrieve company information and settings for the authenticated account. Returns comprehensive company details including billing configuration, time tracking preferences, and enabled features.', inputSchema: { type: 'object', properties: {}, additionalProperties: false, }, }, handler, }, ];