Skip to main content
Glama

Visum Thinker MCP Server

MIT License
test-find-attributeid.json•1.92 kB
{"method":"tools/call","params":{"name":"project_execute","arguments":{"projectId":"S000009result_1278407893","code":"# Esplora tutti i tag dentro il primo listLayoutItem\nimport os\nimport xml.etree.ElementTree as ET\nresult = {}\ntry:\n project_path = visum.GetPath(1)\n project_dir = os.path.dirname(project_path)\n lay_file = os.path.join(project_dir, 'tabelle_report.lay')\n \n tree = ET.parse(lay_file)\n root = tree.getroot()\n \n # Trova il primo listLayoutItem\n first_item = root.find('.//listLayoutItem')\n \n if first_item is not None:\n # Raccogli tutti i tag unici e i primi 3 esempi per ogni tag\n tags_dict = {}\n \n for elem in first_item.iter():\n tag = elem.tag\n if tag not in tags_dict:\n tags_dict[tag] = []\n \n if len(tags_dict[tag]) < 3: # Solo primi 3 esempi\n tags_dict[tag].append(dict(elem.attrib))\n \n result['unique_tags'] = list(tags_dict.keys())\n result['tag_examples'] = tags_dict\n \n # Cerca specificamente elementi che sembrano colonne\n # Cerca tutti gli elementi con 'attributeID' nell'attributo\n columns_found = []\n for elem in first_item.iter():\n if 'attributeID' in elem.attrib:\n columns_found.append({\n 'tag': elem.tag,\n 'attributeID': elem.get('attributeID'),\n 'all_attribs': dict(elem.attrib)\n })\n \n result['columns_with_attributeID'] = columns_found[:30] # Prime 30\n result['total_columns'] = len(columns_found)\n \nexcept Exception as e:\n result['error'] = str(e)\n import traceback\n result['traceback'] = traceback.format_exc()[:1000]\nresult","description":"Trova tutti i tag e cerca attributeID"}},"jsonrpc":"2.0","id":25}

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/multiluca2020/visum-thinker-mcp-server'

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