Skip to main content
Glama

get_collection

Retrieve a specific collection by its unique ID from the Devici API, enabling efficient management of threat modeling resources.

Instructions

Get a specific collection by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes

Implementation Reference

  • The MCP tool handler for 'get_collection', decorated with @mcp.tool(). It fetches the collection using the Devici API client and returns the JSON result as a string.
    @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)
  • API client helper method that performs 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