Skip to main content
Glama

Change a company

update_company
DestructiveIdempotent

Changes data: changes a company's name, roles, country or ERP code, as the person who connected this app, and records it in the organization's audit log. What it replaces is gone: roles replaces the whole list, and country: null or erp_code: null clears it. Use it only when the user asks to change a company, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. A new name that another company already goes by is refused with an error naming that company. An own company's roles never change. Get the company_id from list_companies. To add or remove another spelling of the name use add_company_alias and remove_company_alias.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company_id": "<company_id>"
    },
    "name": "update_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe company's name as its documents write it, such as "Progum Co., Ltd".
rolesNoWhat it is to the organization: any of supplier, forwarder, customer. Omit when unknown; a document later sets it.
countryNoTwo-letter ISO 3166 country code such as "PE".
erp_codeNoThe company's code in the organization's ERP, so list_companies can find it by that code.
company_idYesA company id such as "cmp_12", as returned by list_companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that roles replaces the entire list, that null clears country/erp_code, that untouched fields are preserved, that re-sending identical values is a no-op, that it runs as the connected user and writes an audit-log entry, that duplicate names are refused with the conflicting company named, and that an own company's roles never change. This is exactly the kind of mutation semantics an agent needs before invoking a destructiveHint tool.

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?

Front-loads the action and the replaced-fields warning, and each sentence carries operational information. It is dense and slightly long, but no sentence is filler.

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

Completeness5/5

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

For a 5-parameter mutation with no output schema, the description covers side effects, error behavior, identity/audit context, and prerequisite lookup of company_id. Nothing material is missing for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description still adds value by explaining replace-vs-clear semantics for roles, country, and erp_code, which the schema does not state. It does not add much about name validation beyond the collision rule already covered.

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

Purpose5/5

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

States a specific verb and resource plus the exact fields it can change (name, roles, country, ERP code), and explicitly routes alias edits to add_company_alias/remove_company_alias. An agent can distinguish it from create_company or the alias siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition ("Use it only when the user asks to change a company, and say what will change before calling it"), names alternatives for adjacent operations, and points to list_companies as the source of company_id. When-not guidance is implied by the narrow condition and the alias redirection.

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.

Resources