Skip to main content
Glama

Add company to collection

exim__collection__items__add

Adds a company to a collection by company id or website URL (creating the company record if needed), with optional priority and product.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "exim__collection__items__add"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventNoBooth or event attached to this row
productNoRow product
priorityNoPriority bucket
companyIdNocompany UUID. EITHER this OR companyUrl required.
companyUrlNoCompany website URL (e.g. https://<company-domain>). Provide this or companyId.
companyNameNoCompany display name when providing a website URL.
collectionIdNoCollection ID (e.g. mn7abc...)
collectionNameNoCollection name.

Output Schema

NameRequiredDescriptionDefault
dataYes
statsNo
_debugNo
summaryYes
warningsNo
nextActionsYes
correlationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / context / anyOf
      Added value: +[
      +  {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "referenced": {
      +        "type": "boolean"
      +      },
      +      "rowCount": {
      +        "type": "integer"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "referenced",
      +      "rowCount",
      +      "url"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / context / type
      Removed value: -[
      -  "null",
      -  "boolean",
      -  "number",
      -  "string",
      -  "array",
      -  "object"
      -]
    • changedOutput schema / properties / data / properties / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/value0"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/value0"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "exportUrl": {
      +              "type": "string"
      +            },
      +            "payloadBytes": {
      +              "type": "integer"
      +            },
      +            "rowCount": {
      +              "type": "integer"
      +            },
      +            "token": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "exportUrl",
      +            "payloadBytes",
      +            "rowCount",
      +            "token",
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed18 schema fields changed
    • addedInput schema / not
      Added value: +{
      +  "anyOf": [
      +    {
      +      "not": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "collectionId": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "collectionId"
      +            ]
      +          },
      +          {
      +            "properties": {
      +              "collectionName": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "collectionName"
      +            ]
      +          }
      +        ]
      +      }
      +    },
      +    {
      +      "not": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "companyId": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "companyId"
      +            ]
      +          },
      +          {
      +            "properties": {
      +              "companyUrl": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "companyUrl"
      +            ]
      +          }
      +        ]
      +      }
      +    }
      +  ]
      +}
    • removedInput schema / properties / --collectionId
      Removed value: -{
      -  "description": "Collection ID (e.g. mn7abc...)",
      -  "type": "string"
      -}
    • removedInput schema / properties / --collectionName
      Removed value: -{
      -  "description": "Collection name. Resolved to ID server-side.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --companyId
      Removed value: -{
      -  "description": "company UUID. EITHER this OR companyUrl required.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --companyName
      Removed value: -{
      -  "description": "Company display name (used when upserting from companyUrl). Optional but recommended.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --companyUrl
      Removed value: -{
      -  "description": "Company canonical URL (e.g. https://<company-domain>). Triggers upsert into companies. EITHER this OR companyId required.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --event
      Removed value: -{
      -  "description": "Booth or event attached to this row",
      -  "type": "string"
      -}
    • removedInput schema / properties / --priority
      Removed value: -{
      -  "description": "Priority bucket",
      -  "enum": [
      -    "high",
      -    "medium",
      -    "low"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / --product
      Removed value: -{
      -  "description": "Row product",
      -  "type": "string"
      -}
    • addedInput schema / properties / collectionId
      Added value: +{
      +  "description": "Collection ID (e.g. mn7abc...)",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / collectionName
      Added value: +{
      +  "description": "Collection name.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / companyId
      Added value: +{
      +  "description": "company UUID. EITHER this OR companyUrl required.",
      +  "format": "uuid",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / companyName
      Added value: +{
      +  "description": "Company display name when providing a website URL.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / companyUrl
      Added value: +{
      +  "description": "Company website URL (e.g. https://<company-domain>). Provide this or companyId.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / event
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 8000,
      +      "type": "string"
      +    },
      +    {
      +      "type": [
      +        "null",
      +        "boolean",
      +        "number",
      +        "string",
      +        "array",
      +        "object"
      +      ]
      +    }
      +  ],
      +  "contentSchema": {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  "description": "Booth or event attached to this row"
      +}
    • addedInput schema / properties / priority
      Added value: +{
      +  "description": "Priority bucket",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ],
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / product
      Added value: +{
      +  "description": "Row product",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "value0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "companyId": {
      +          "type": "string"
      +        },
      +        "itemId": {
      +          "type": "string"
      +        },
      +        "matchedExisting": {
      +          "type": "boolean"
      +        },
      +        "membershipOutcome": {
      +          "type": "string"
      +        },
      +        "resolvedName": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "companyId",
      +        "itemId",
      +        "matchedExisting",
      +        "membershipOutcome",
      +        "resolvedName"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value2": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value3"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value3": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value4": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value6"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "value7": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value7"
      +    },
      +    "correlationId": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "context": {
      +          "type": [
      +            "null",
      +            "boolean",
      +            "number",
      +            "string",
      +            "array",
      +            "object"
      +          ]
      +        },
      +        "cursor": {
      +          "type": "string"
      +        },
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "$ref": "#/$defs/value0"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "context",
      +        "has_more",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "nextActions": {
      +      "$ref": "#/$defs/value2"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value4"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value5"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations declare a non-readonly, non-destructive, non-idempotent mutation, so the safety profile is covered. The description adds a valuable behavioral fact beyond them: the company record is created if it does not already exist, which is a meaningful side effect the agent could not infer. It stops short of stating duplicate-handling or idempotency behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-packed sentence with the core action front-loaded and the side effect in parentheses. No filler, though the parenthetical slightly buries an important behavioral caveat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the annotations carry the safety profile. However, for an 8-parameter non-idempotent mutation, an agent would still want to know duplicate handling and the role of the collectionName alternative, which the description omits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description reinforces the one-of relationship between companyId and companyUrl and flags priority and product as optional, but says nothing about the collectionId/collectionName pair or the 'event' parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Adds a company to a collection") and identifies the two addressing modes (company id or website URL). It is clear enough to distinguish from listing siblings, though it does not explicitly name a sibling to prefer or avoid.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisites, and no reference to alternatives such as exim__collection__items__list or exim__collection__copy-to. Usage is only implied by the operation name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.