Skip to main content
Glama

get_collection

Retrieve a specific collection by its ID from the Devici threat modeling platform to access and manage threat modeling resources.

Instructions

Get a specific collection by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes

Implementation Reference

  • MCP tool handler for 'get_collection'. This is the main execution function decorated with @mcp.tool(), which also registers it. It creates an API client and calls the helper to fetch the collection data.
    @mcp.tool() async def get_collection(collection_id: str) -> str: """Get a specific collection by ID""" async with create_client_from_env() as client: result = await client.get_collection(collection_id) return str(result)
  • Supporting API client method that makes the HTTP GET request to the Devici API endpoint for retrieving a specific collection by ID.
    async def get_collection(self, collection_id: str) -> Dict[str, Any]: """Get specific collection by ID.""" return await self._make_request("GET", f"/collections/{collection_id}")

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/geoffwhittington/devici-mcp'

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