# Attach Tag

`lawmatics_attach-tag` · Lawmatics MCP tool · Tags

Attach one or more tags to a matter, contact, company, or task by name. A tag name that does not exist is created automatically. Provide exactly one entity ID and an array of tag names.

## Input

- **matterId** `string` — ID of the matter to attach tags to
- **contactId** `string` — ID of the contact to attach tags to
- **companyId** `string` — ID of the company to attach tags to
- **taskId** `string` — ID of the task to attach tags to
- **tags** `array` (required, min items: 1) — Tag names to attach (names, not IDs). A name that does not exist is created automatically.
  - **[]** `string`

## Output

- **entityId** `string` (required) — ID of the entity the tags were attached to
- **entityType** `string` (required) — JSON:API type of the entity (e.g. prospect, contact, company, task)
- **tagIds** `array | null` (required) — IDs of all tags currently attached to the entity after the operation; null when the response omits the tag linkage
  - **[]** `string`
- **success** `boolean` (required) — Always true; confirms the attach succeeded
