Skip to main content
Glama

check_availability

Verify a CBD product's stock, shipping delay, and shipping costs on LeBonFoin. Use this to confirm availability before recommending.

Instructions

Verifier la disponibilite d'un produit CBD sur LeBonFoin : stock, delai d'expedition, frais de port. A utiliser avant de recommander.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesID du produit a verifier
producer_slugNoSlug du producteur (alternative a product_id)

Implementation Reference

  • Supabase client initialization used by the handler to query the database.
    import { createClient } from "@supabase/supabase-js";
    
    const SUPABASE_URL = process.env.SUPABASE_URL || "https://bslrpphcpzeuxbbvyrui.supabase.co";
    const SUPABASE_ANON_KEY = process.env.SUPABASE_ANON_KEY || "";
    
    if (!SUPABASE_ANON_KEY) {
      console.error("Warning: SUPABASE_ANON_KEY not set. Set it via environment variable.");
    }
    
    export const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses that the tool reads stock, shipping delay, and shipping costs, implying a read-only operation. No mention of destructive actions or permissions needed, but for a simple check tool this is adequate.

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?

One sentence plus usage hint, no wasted words. Action is front-loaded. Optimal length.

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?

Simple tool with 2 params, no output schema. Description covers what it does, when to use it, and parameters are documented. Includes practical usage hint. Complete for its complexity.

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 coverage is 100% with descriptions for both parameters. The description adds only that producer_slug is an alternative to product_id, which is helpful but not extra semantics beyond schema. Baseline is 3.

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?

The description clearly states the verb 'Verifier la disponibilite' and the resource 'produit CBD sur LeBonFoin', listing specific items checked (stock, shipping time, costs). It distinguishes itself from siblings like recommend_cbd_for_me.

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?

Explicitly says 'A utiliser avant de recommander' (use before recommending), giving clear context. Does not list exclusions but the hint is strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/POP24/lebonfoin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server