Skip to main content
Glama

obtener_configuracion_chamber

Retrieve Chamber contract configuration details such as address, network, and supported tokens for the MIST.cash privacy-preserving payment protocol on Starknet.

Instructions

Get Chamber contract configuration including contract address, network, and supported tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoStarknet networkmainnet

Implementation Reference

  • The handler function for 'obtener_configuracion_chamber' tool. Validates input params using schema, determines contract address based on network (mainnet/sepolia), assembles config with supported tokens, and returns structured response.
    export async function obtenerConfiguracionChamber(params) { // Validate parameters const validated = ObtenerConfiguracionChamberSchema.parse(params); try { const contractAddress = validated.network === 'mainnet' ? CHAMBER_ADDR_MAINNET : CHAMBER_ADDR_SEPOLIA; const config = { contract_address: contractAddress, network: validated.network, supported_tokens: SUPPORTED_TOKENS[validated.network] }; return { success: true, config, token_info: { ETH: 'Native Starknet token', USDC: 'USD Coin stablecoin', USDT: 'Tether stablecoin', DAI: 'DAI stablecoin' } }; } catch (error) { throw new Error(`Failed to get Chamber configuration: ${error.message}`); } }
  • Zod schema for input validation of the tool. Defines optional 'network' parameter with enum ['mainnet', 'sepolia'] defaulting to 'mainnet'.
    export const ObtenerConfiguracionChamberSchema = z.object({ network: NetworkSchema });
  • src/index.ts:141-155 (registration)
    Tool registration in ListToolsRequestSchema handler. Provides the tool name, description, and input schema for MCP discovery.
    { name: 'obtener_configuracion_chamber', description: 'Get Chamber contract configuration including contract address, network, and supported tokens.', inputSchema: { type: 'object', properties: { network: { type: 'string', enum: ['mainnet', 'sepolia'], description: 'Starknet network', default: 'mainnet', }, }, }, },
  • src/index.ts:206-214 (registration)
    Dispatch logic in CallToolRequestSchema handler. Routes calls to this tool name to the handler function and formats response.
    case 'obtener_configuracion_chamber': return { content: [ { type: 'text', text: JSON.stringify(await obtenerConfiguracionChamber(args || {}), null, 2), }, ], };

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/joadataarg/Mcp-mistcash'

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