Skip to main content
Glama

Dummyjson Product

dummyjson_product
Read-onlyIdempotent

Fetch a single fake product by numeric id from DummyJSON. Returns name, description, price, discount, brand, category, stock, images, and rating.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
idNoProduct ID
brandNoBrand name
priceNoProduct price
stockNoStock quantity
titleNoProduct title
imagesNoProduct images
ratingNoProduct rating
categoryNoProduct category
thumbnailNoThumbnail URL
descriptionNoProduct description
discountPercentageNoDiscount percentage

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds that the data is 'fake' (a mock/test dataset), which is genuinely useful context an agent can't get from annotations, but the enumerated return fields duplicate the output schema and no error or miss behavior is described.

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?

Two front-loaded sentences with no filler; the core action and key come first. The trailing list of return fields is somewhat expendable given an output schema exists, but it does not impede scanning.

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?

This is a simple single-parameter lookup with rich annotations and an output schema, so the description does not need to explain return shape or safety. Nothing an agent needs in order to invoke it correctly is missing.

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?

With one required parameter and 0% schema description coverage, the description carries the burden and does specify that the id is numeric and identifies a product. That is the minimum needed, but it adds little beyond restating the schema's declared type and could have noted valid ranges or id provenance.

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 states a specific verb and resource ('Fetch a single fake product') and constrains the lookup to a numeric id, which implicitly separates it from the plural list tool and the search sibling. It stops short of explicitly naming the contrasting tools, so sibling differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

Usage is implied: use this when you know a single product's id. There is no explicit when-not guidance, no mention of dummyjson_product_search for name-based lookup, and no statement about what happens for an unknown id (error vs empty). Adequate but leaves routing to inference.

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.