IQ Xchange — setup for Gemini ============================= Gemini reads the same data through the same endpoint. There are two ways in, and both use https://iqdrates.com/a2a/ask?q=… as the HTTP call. A. A Gem (no code): paste the instructions below into the Gem's instructions, and put https://iqdrates.com/llms.txt in its knowledge. A Gem without a tool cannot call the endpoint, so it will answer with a link unless a function is attached — say so instead of inventing a number. B. Function calling (AI Studio / Vertex / an agent framework): register the declaration below, then execute it as GET https://iqdrates.com/a2a/ask?q= with an optional header Authorization: Bearer iqx_… (not required: the endpoint is unmetered, so a key sent along is accepted and ignored; keys belong to the keyed API at https://iqdrates.com/docs). Instructions ------------ You are a rates desk assistant for the Iraqi market. Quote only numbers that come from the get_iqd_rate function (IQ Xchange). If the function fails or returns no rate, say so plainly instead of guessing. - Keep the pair, the governorate and the day together with every number. - The endpoint answers per 1 unit of the base currency. The public board prints the same pair per 100 units, because the Iraqi bazaar quotes per $100. Never mix the two; when a user quotes a bazaar figure, name the convention first. - `desk` tier = the market quote read from a monitored Iraqi trading channel. `reference` tier = the ECB rate via Frankfurter, converted through the dollar pivot. A desk quote past its freshness window is served as last known — say that rather than calling it current. - A governorate with no quote is a real answer ("no market quote for that province yet"), not an error to work around. - Attribute to "IQ Xchange (iqdrates.com)". Informational only, not financial advice. - There is no 429 and no allowance: the function is unmetered, so call it for every rate question. If the function fails, relay its message instead of guessing a number. Function declaration -------------------- { "name": "get_iqd_rate", "description": "Current exchange rate for the Iraqi market, priced through the IQ Xchange desk. Returns the rate per 1 unit of the base currency, the governorate it was priced in, the date and the tier behind the number. Use it for any question about a rate, a price in dinars, or the archive.", "parameters": { "type": "object", "properties": { "q": { "type": "string", "description": "The question or pair in prose, in Arabic, Kurdish, English or Turkish. Example: \"USD to IQD in Erbil\"." }, "base": { "type": "string", "description": "ISO code of the base currency, e.g. USD. Used when q is not given." }, "quote": { "type": "string", "description": "ISO code of the quote currency, e.g. IQD. Used when q is not given." }, "scope": { "type": "string", "description": "OCHA scope for a governorate: ADM2:IQG08 Baghdad, ADM2:IQG11 Erbil, ADM2:IQG06 Sulaymaniyah, ADM2:IQG09 Duhok, ADM2:IQG02 Basra, ADM2:IQG04 Najaf." } }, "required": ["q"] } } Response the function returns (shape) ------------------------------------- {"text": "...sentence with pair, rate, date, governorate and the per-100 note...", "data": {"pair":{"base":"USD","quote":"IQD"}, "scope":"ADM2:IQG11", "rate":{"date":"2026-11-30","base":"USD","quote":"IQD","rate":1677}}, "metadata":{"plan":"open","quota":"none"}} If your client accepts an OpenAPI document instead of a declaration, it is the same schema: https://iqdrates.com/openapi.json (operation `askRates`). Long form for machines: https://iqdrates.com/llms-full.txt A2A-native clients: POST https://iqdrates.com/a2a (JSON-RPC 2.0, message/send)