Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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');
      }
    }
  • 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,
        },
      ];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ianaleck/harvest-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server