Skip to main content
Glama
@asterpay/mcp-server

@asterpay/mcp-server

by petteri74dev

check_availability

Check product stock status by product ID and get availability, quantity, and current price to decide whether to place an order.

Instructions

Check if a specific product is currently in stock. Returns availability status, stock quantity, and current price.

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": {
      "product_id": "<product_id>"
    },
    "name": "check_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesProduct ID to check
merchantSlugNoMerchant identifier. Omit to use default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does cover the read-only nature ('check') and the three returned fields (availability status, stock quantity, current price), which is useful. It says nothing about permissions, failure behavior for unknown product IDs, or per-merchant scoping, so the behavioral picture is only partly filled in.

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 short sentences, front-loaded with the purpose followed by the return values; every sentence earns its place. Minor deduction only because the return-value sentence could be omitted if an output schema existed, which it does not, so it is in fact justified.

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?

For a simple two-parameter read tool with no output schema, the description gives enough to call correctly and to know what comes back. It is only slightly thin on edge cases (product not found, merchant defaulting), which the schema partly covers.

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 product_id and merchantSlug are already documented in the schema, and the description adds no additional parameter semantics. Baseline 3 applies since the schema does the heavy lifting.

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 ('Check if a specific product is currently in stock') and previews the return payload. It does not explicitly differentiate itself from the sibling get_product, which an agent might reasonably pick instead when it wants full product details rather than stock state.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no alternative is named. The usage is only implied by the phrase 'currently in stock'; an agent must infer that this is the lightweight stock check versus the broader get_product/list_products calls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.