Skip to main content
Glama

Get product

well_get_product
Read-only

Read one product of the workspace by its id: its name, SKU, description, supply type (good, service, plan or collection), status, availability, price, currency and billing interval, its parent product, vendor and scope, the dates of a dated price, and whether a connected tool synced it in (synced). availability is what the stock decides unless a person corrected it by hand (availability_correction, with who and when) or the product ignores its stock (stock_tracked false); stock_quantity is the available stock over all locations, null when the product has none recorded. A product that does not exist in this workspace returns an error.

When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.

Input Schema

NameRequiredDescriptionDefault
product_idYesThe product, from well_list_products.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.

Output Schema

NameRequiredDescriptionDefault
errorNo
productNo
successYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
resolved_workspaceNoThe workspace that answered, when the caller named none and the token authorizes several.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed29 schema fields changed
    • changedOutput schema / properties / product / properties / availability_correction / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "type": "string"
      -      },
      -      "by_person_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "value": {
      -        "enum": [
      -          "in_stock",
      -          "out_of_stock",
      -          "preorder",
      -          "discontinued"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "value",
      -      "by_person_id",
      -      "at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "at": {
      +        "type": "string"
      +      },
      +      "by_person_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "value": {
      +        "enum": [
      +          "in_stock",
      +          "out_of_stock",
      +          "preorder",
      +          "discontinued"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "by_person_id",
      +      "at"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / product / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / master_product_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / master_product_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / parent_product_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / parent_product_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / product_type_project_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / product_type_project_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / scope_company_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / scope_company_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / scope_project_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / scope_project_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / sku / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / sku / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / stock_quantity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / stock_quantity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / unit_price / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / unit_price / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / updated_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / updated_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / valid_from / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / valid_from / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / valid_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / valid_to / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / product / properties / vendor_company_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / product / properties / vendor_company_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / resolved_workspace / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / resolved_workspace / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / product / properties / billing_interval
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "daily",
      +        "weekly",
      +        "monthly",
      +        "bimonthly",
      +        "quarterly",
      +        "yearly",
      +        "one_time"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "master_product_id",
      -  "valid_from",
      -  "valid_to",
      -  "category_ids",
      -  "synced",
      -  "hidden",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "billing_interval",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "master_product_id",
      +  "valid_from",
      +  "valid_to",
      +  "category_ids",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  3. Changed3 schema fields changed
    • addedOutput schema / properties / product / properties / category_ids
      Added value: +{
      +  "items": {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedOutput schema / properties / product / properties / master_product_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "hidden",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "master_product_id",
      +  "valid_from",
      +  "valid_to",
      +  "category_ids",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / properties / product / properties / hidden
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "availability_correction",
      -  "stock_tracked",
      -  "stock_quantity",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "valid_from",
      +  "valid_to",
      +  "synced",
      +  "hidden",
      +  "created_at",
      +  "updated_at"
      +]
  5. Changed4 schema fields changed
    • addedOutput schema / properties / product / properties / availability_correction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "at": {
      +          "type": "string"
      +        },
      +        "by_person_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "value": {
      +          "enum": [
      +            "in_stock",
      +            "out_of_stock",
      +            "preorder",
      +            "discontinued"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "value",
      +        "by_person_id",
      +        "at"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / product / properties / stock_quantity
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / product / properties / stock_tracked
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / product / required
      Previous value: -[
      -  "product_id",
      -  "name",
      -  "sku",
      -  "description",
      -  "supply_type",
      -  "status",
      -  "availability",
      -  "unit_price",
      -  "currency",
      -  "parent_product_id",
      -  "vendor_company_id",
      -  "scope_company_id",
      -  "scope_project_id",
      -  "product_type_project_id",
      -  "valid_from",
      -  "valid_to",
      -  "synced",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "product_id",
      +  "name",
      +  "sku",
      +  "description",
      +  "supply_type",
      +  "status",
      +  "availability",
      +  "availability_correction",
      +  "stock_tracked",
      +  "stock_quantity",
      +  "unit_price",
      +  "currency",
      +  "parent_product_id",
      +  "vendor_company_id",
      +  "scope_company_id",
      +  "scope_project_id",
      +  "product_type_project_id",
      +  "valid_from",
      +  "valid_to",
      +  "synced",
      +  "created_at",
      +  "updated_at"
      +]
  6. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds non-obvious semantics that annotations cannot: how `availability` is derived versus a manual `availability_correction` (with who/when), what `stock_tracked` false implies, that `stock_quantity` is aggregated across all locations and null when unrecorded, and that a nonexistent product errors rather than returning empty. Much of the field enumeration restates return values, but the derivation rules are genuine value-add.

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

Conciseness5/5

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

Two tight paragraphs: the first front-loads what the read returns and its derived-field semantics, the second front-loads the workspace routing decision. No filler sentences, and the enumeration is dense rather than padded.

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?

An output schema exists, so return values need not be explained, yet the description still covers the ambiguous derived fields, the not-found error path, and the multi-workspace selection rule. An agent has everything needed to invoke this correctly on the first try.

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 description coverage is 100%, so all four parameters are already documented, including the workspace_id multi-workspace rule and the conversation_id threading protocol. The description reinforces the workspace_id conditionality but adds nothing for `conversation_id` or `workspace_scope`, so baseline 3 applies.

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?

Opens with a specific verb+resource and scope: 'Read one product of the workspace by its id', then enumerates the fields returned (name, SKU, supply type, status, price, parent, vendor, sync state). This is unambiguously distinct from the sibling well_list_products (many) and well_update_product (write).

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

Usage Guidelines4/5

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

Gives explicit conditional guidance for the workspace dimension: call directly when the token authorizes one workspace, pass `workspace_id` when it authorizes several, and it states the tool 'will not guess'. It also notes a missing product returns an error. What it lacks is explicit routing to alternatives — it never says to use well_list_products to find an id (that hint lives only in the schema) or that well_update_product is the write counterpart.

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