list_all_methods
List all available Meraki API methods. Optionally filter by section such as organizations, networks, wireless, switch, or appliance.
Instructions
List all available Meraki API methods
Args: section: Optional section filter (organizations, networks, wireless, switch, appliance, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- meraki-mcp-dynamic.py:539-561 (handler)The handler function for the 'list_all_methods' tool. Decorated with @mcp.tool(), it lists all available Meraki API methods, optionally filtered by section. Returns JSON with sections, total method count, and usage instructions.
@mcp.tool() async def list_all_methods(section: str = None) -> str: """ List all available Meraki API methods Args: section: Optional section filter (organizations, networks, wireless, switch, appliance, etc.) """ if section: if section not in _METHOD_INDEX: return json.dumps({ "error": f"Section '{section}' not found", "available_sections": list(_METHOD_INDEX.keys()) }, indent=2) sections_to_show = {section: _METHOD_INDEX[section]} else: sections_to_show = _METHOD_INDEX return json.dumps({ "sections": sections_to_show, "total_methods": sum(len(v) for v in sections_to_show.values()), "usage": "Use call_meraki_api(section='...', method='...', parameters='{...}') to call any method" }, indent=2) - meraki-mcp-dynamic.py:518-533 (helper)The helper function _build_method_index() builds a complete index of all callable SDK methods grouped by section. It iterates over SDK_SECTIONS, introspects each section object via dir(), and collects callable methods. The result is stored in _METHOD_INDEX used by list_all_methods.
def _build_method_index() -> Dict: """Build a complete index of all callable SDK methods, grouped by section.""" index = {} for section_name in SDK_SECTIONS: if not hasattr(dashboard, section_name): continue section_obj = getattr(dashboard, section_name) methods = sorted( m for m in dir(section_obj) if not m.startswith('_') and callable(getattr(section_obj, m)) ) if methods: index[section_name] = methods return index _METHOD_INDEX = _build_method_index() - meraki-mcp-dynamic.py:539-539 (registration)Registration of the 'list_all_methods' tool via the @mcp.tool() decorator on the handler function.
@mcp.tool() - meraki-mcp-dynamic.py:540-540 (schema)Input schema for the tool: accepts an optional 'section' parameter of type str. Output is a JSON string containing the method listing.
async def list_all_methods(section: str = None) -> str: - meraki-mcp-dynamic.py:223-237 (helper)SDK_SECTIONS constant defines the list of Meraki API sections used by _build_method_index() to scan for available methods. These section names are the valid values for the 'section' parameter of list_all_methods.
SDK_SECTIONS = [ 'organizations', 'networks', 'devices', 'wireless', 'switch', 'appliance', 'camera', 'cellularGateway', 'sensor', 'sm', 'insight', 'licensing', 'administered' ]