> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maadify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Companies

> Manage tenant relationships and deploy agents across connections

## What companies represent

Companies are tenants connected to your organization. A company relationship controls which tenant is connected, what direction the relationship uses, which parent agents are available, and how the agent tools are configured for that relationship.

Relationship types are shown from your tenant's perspective:

* **Supplier**: your tenant acts as the channel, and the connected company is the supplier.
* **Channel**: your tenant acts as the supplier, and the connected company is the channel.
* **Both**: Maadify creates relationships in both directions.
* **My Workspace**: the relationship is inside your own tenant.

The Companies page shows the partner, relationship type, and deployed agent configurations. Agent badges show whether an agent is active, hidden for the partner, or inactive.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/manage_companies.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=bb54104ff28b829a39d69acf4e6913e0" alt="Companies list showing partners, relationship badges, and agent configuration badges" width="1473" height="496" data-path="images/companies/manage_companies.png" />
</Frame>

## Review company relationships

Use the Companies table to search, sort, and manage relationships.

You can:

* Search for a relationship by company name.
* Sort by **Channel Name** or **Supplier Name**.
* Toggle **Show Inactive Relationships** to review deactivated relationships.
* Open **View / Edit** when you own or manage the relationship.
* Open **View Users** when you have permission to manage users for the partner tenant.
* Use **Copy Relationship** when another owned tenant has a relationship you want to copy into your tenant.
* Deactivate, reactivate, or remove relationships when you have permission.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/manage_companies_inactive.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=83252e43eb5789f4bbad90176eee74f7" alt="Companies page with search sort inactive toggle and relationship actions menu" width="1511" height="468" data-path="images/companies/manage_companies_inactive.png" />
</Frame>

## Add or edit a company

<Steps>
  <Step title="Create the tenant">
    Go to **Companies** and select **Add company**.
  </Step>

  <Step title="Set the relationship type">
    Choose **Supplier**, **Channel**, or **Both**.
  </Step>

  <Step title="Enter company details">
    Add the company name, optional logo, tenant description, and relationship description.
  </Step>

  <Step title="Save and verify">
    Click **Add Company**. The company appears in the table with the selected relationship.

    <Check>
      You can open the company details page.
    </Check>
  </Step>
</Steps>

When you edit an existing company, you can update the company details and relationship description. If a relationship only exists in one direction, you can also add the missing channel or supplier relationship to make it bidirectional.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/add_edit_company.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=5bdfa09ef1d2b0a7b18931453e093bed" alt="Add Company dialog with relationship type company name logo and descriptions" width="1186" height="954" data-path="images/companies/add_edit_company.png" />
</Frame>

## Deploy agents to a relationship

Deploying an agent to a company relationship creates an agent configuration for that channel and supplier pair. This controls whether the parent agent can be used for the relationship and what tool settings apply when it runs.

Agents are deployed from the **Agent Configs** column.

<Steps>
  <Step title="Open Add Agent">
    In the **Agent Configs** column, click **Add Agent** for the relationship.
  </Step>

  <Step title="Select a parent agent">
    Search for an available parent agent and select it. Maadify only shows active parent agents that are available for the selected relationship.
  </Step>

  <Step title="Review visibility settings">
    Use **Hide Parent Agent** when the partner should not be able to use the agent. Use **Hide Configuration View** when the partner should not see the agent configuration.
  </Step>

  <Step title="Configure tools">
    Review the tools the agent uses and fix any tool configuration issues before saving.
  </Step>

  <Step title="Save the deployment">
    Click **Add Agent Config**. The agent appears as a badge in the relationship row.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/add_agent_company.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=ef4d4cbb3a4b7c5b4d11832502d96c3d" alt="Add Agent dialog showing searchable parent agent cards" width="1187" height="435" data-path="images/companies/add_agent_company.png" />
</Frame>

<Note>
  If the relationship or partner tenant is inactive, configured agents cannot be accessed from that tenant.
</Note>

## Configure relationship tools

After you select a parent agent for a relationship, the dialog shows the tools the agent can use.

* **Sub Agent Tools** are tools available to sub-agents. You can configure relationship-specific defaults for these tools.
* **Execution Tools** are tools configured directly on the parent agent. You can review their schemas and examples from the relationship dialog.

Sub-agent tools show a status badge:

* **Configured** means the tool is ready for the relationship.
* **Needs Configuration** means required values or defaults are missing.

The agent configuration cannot be saved while tools have configuration errors.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/add_agent_company_detail.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=eb8d5e8dd153aa3eb3070bba56edacd9" alt="Agent relationship dialog showing Sub Agent Tools and Execution Tools tabs" width="1191" height="745" data-path="images/companies/add_agent_company_detail.png" />
</Frame>

### Sub-agent tool defaults

Use sub-agent tool configuration when a tool needs different values for a specific company relationship. For example, you may need a partner-specific account ID, environment, warehouse, or filter.

When editing a tool, you can:

* Review whether the tool is shared.
* Use **Use Default Tool Owner Config** when the tool owner's connector defaults should apply.
* Override configurable fields when your tenant owns the tool and has permission.
* Save the tool configuration before saving the agent deployment.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/relationship_tool_configs.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=e8825a637be8fb2466cd1368dc73ad9e" alt="Company relationship tool configuration showing default owner config and configurable fields" width="1194" height="646" data-path="images/companies/relationship_tool_configs.png" />
</Frame>

### Execution tool schemas

Use **Execution Tools** to review tools that run on the parent agent. You can open a tool to inspect:

* **Input Schema**
* **Input Example**
* **Output Schema**
* **Output Example**

These schemas help you understand what the parent agent can send to the tool and what the tool can return during the workflow.

<Frame>
  <img src="https://mintcdn.com/maadify/K7CT7HZ-nt5ok2U5/images/companies/add_tool_schema.png?fit=max&auto=format&n=K7CT7HZ-nt5ok2U5&q=85&s=3f9c8c787a9b52b33aecef48c193389c" alt="Execution tool details showing input and output schema tabs" width="1112" height="982" data-path="images/companies/add_tool_schema.png" />
</Frame>

## Manage deployed agents

Click an existing agent badge to edit its relationship deployment.

From the edit dialog, you can:

* Update visibility settings:
  * **Hide Parent Agent** prevents the company from using the agent. You, as the owner, can still run it.
  * **Hide Configuration View** hides the agent's configuration from the company while still letting them use the agent.
* Review and update relationship-specific tool configuration.
* Inspect execution tool schemas.
* Remove the agent configuration from the relationship.

Removing an agent configuration does not remove the shared tools from connectors.

## Relationship lifecycle

Relationships and tenants have separate lifecycle controls.

* **Deactivate Relationship** prevents agents configured for that relationship from being accessed. You can reactivate the relationship later.
* **Remove Relationship** removes the tenant relationship and its agent configurations and shared tools.
* **Deactivate Tenant** prevents users associated with that tenant from logging in and accessing system configurations.
* **Re-enable Tenant** restores tenant access.

<Tip>
  Deactivate a relationship when you want to pause access but keep the setup. Remove a relationship only when the connection and its agent configurations are no longer needed.
</Tip>
