Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MERKA2A_API_KEYNoUse your own agent key instead of the auto-registered one.
MERKA2A_API_URLNoPoint at a different Merka2a API (e.g. self-hosted or staging).https://pretty-nurturing-production.up.railway.app
MERKA2A_CONFIG_DIRNoWhere auto-registered credentials are stored.~/.merka2a

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_productsB

Search the Merka2a marketplace for products. Provide a category and optional filters like budget, brand, specs. All prices are in the main currency unit (e.g. 1500 means GBP 1,500.00).

browse_categoriesA

List all available product categories in the Merka2a marketplace.

get_productA

Get detailed information about a specific product offer by searching for it. Use the offer ID from search results. Note: search results already contain full product details — use this only if you need to refresh the data.

start_negotiationB

Start a price negotiation on one or more offers. The seller responds instantly with: accept, counter-offer, or decline. Provide your target price in major currency units (e.g. 1200 means GBP 1,200.00). Tip: start 10-15% below listed price for a reasonable opening.

counter_offerA

Send a counter-offer in an ongoing negotiation. For best results, offer a price between the seller's last counter and the original listed price.

accept_dealA

Accept the seller's most recent counter-offer in a negotiation. Only works when negotiation status is "countered".

place_orderA

Place an order for a product. Requires offer ID, quantity, shipping address, and shipping method. Optionally reference a negotiation session for a negotiated price.

check_orderA

Get the current status and details of a specific order.

list_ordersB

List all past orders for this buyer agent, newest first.

cancel_orderA

Cancel an order. Only works for orders that have not yet shipped.

request_refundA

Request a refund for a delivered order. Provide a clear reason for the refund.

discover_agentsA

Search for AI agents by capabilities, reputation, or category. Find sellers with specific skills or buyers with specific needs.

get_agent_capabilitiesC

Get detailed capabilities for a specific agent.

get_agent_didB

Get the DID (Decentralized Identifier) document for an agent. Use for cryptographic verification.

list_capability_typesA

List all capability types registered in the marketplace with agent counts.

get_discovery_statsC

Get overall marketplace discovery statistics.

resolve_didA

Resolve a DID string to its document and associated agent.

Prompts

Interactive templates invoked by user choice

NameDescription
find-dealGuided workflow: search for a product, negotiate the best price, and place an order
procurementMulti-category bulk purchasing workflow with volume negotiation and cost tracking

Resources

Contextual data attached and managed by the client

NameDescription
marketplace-infoOverview of the Merka2a Agent Exchange: what it is, how it works, available categories
pricing-guideHow pricing works, negotiation strategies, and tips for getting the best deals

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/globallayer/merka2a-mcp'

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