Skip to main content
Glama

Last Price

add_commerce_observation

Record one competitor price observation by hand, for the pipeline to match against your catalog: a competitor's observed price for a product. The cycle usually collects these itself. Needs a Last Price credential with commerce configure scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.

Input Schema

NameRequiredDescriptionDefault
rawNoThe source record, kept with the observation.
gtinNoThe product GTIN, used to match it to a catalog item.
titleNoThe product title as the competitor shows it.
sourceYesWhere the price came from, such as manual or the name of your scraper.
currencyYesThe currency code, such as USD.
competitorYesThe competitor's name.
external_idNoThe competitor's own id for the product.
marketplaceNoWhere the competitor sells it.
observed_atNoWhen it was seen. Defaults to now.
observed_priceYesThe price seen.
source_confidenceNoHow far to trust the source, 0 to 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write, so the bar is lower; the description adds real value beyond that with auth scope requirements and the 403 failure mode for unclaimed sandbox workspaces. It does not disclose whether duplicate observations are rejected or what the call returns, which is the remaining gap.

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-loaded with the core action and purpose in the first clause, followed by two compact caveat sentences. The prerequisite sentences are dense but each carries non-obvious operational information; nothing reads as filler.

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

Completeness4/5

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

Covers purpose, prerequisites, and the failure mode for a tool with 11 parameters and no output schema. What's missing is small but real: no mention of the return payload (created observation id) or what happens when an observation can't be matched to a catalog item.

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 the schema already documents all 11 fields including the nested `raw` object, so baseline 3 applies. The description adds only the framing that the record feeds catalog matching (which motivates gtin/external_id), without any per-parameter syntax or default guidance.

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?

States a specific verb and resource ('Record one competitor price observation by hand') plus the downstream purpose (matching against your catalog). It also implicitly separates itself from the automated collection path ('the cycle usually collects these itself'), though it never names the sibling tool (run_commerce_cycle / contribute_price_data) explicitly.

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 a clear usage context: use this for one-off manual entry, since it notes the cycle normally collects observations itself. It also lists two concrete prerequisites (Last Price credential with commerce configure scope, claimed workspace), but offers no explicit 'do not use when' rules or named alternatives.

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