get_card_details
Retrieve detailed information about a specific Trello card by providing its unique card ID to access card content, status, and metadata.
Instructions
Get detailed information about a specific card
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Implementation Reference
- src/index.ts:186-192 (handler)MCP tool handler for 'get_card_details': extracts card_id from request arguments and delegates to TrelloClient.getCardDetails, returning JSON stringified response.case 'get_card_details': { const { card_id } = (request.params.arguments as { request: GetCardDetailsRequest }).request; const cardDetails = await this.trelloClient.getCardDetails(card_id); return { content: [{ type: 'text', text: JSON.stringify(cardDetails, null, 2) }], }; }
- src/index.ts:111-131 (registration)Registers the 'get_card_details' tool in ListToolsRequestHandler with name, description, and input schema matching GetCardDetailsRequest.{ name: 'get_card_details', description: 'Get detailed information about a specific card', inputSchema: { type: 'object', properties: { request: { type: 'object', properties: { card_id: { type: 'string', description: 'ID of the card', }, }, required: ['card_id'], }, }, required: ['request'], title: 'get_card_detailsArguments', }, },
- src/types.ts:54-56 (schema)TypeScript interface defining the input request shape for the get_card_details tool: { card_id: string }.export interface GetCardDetailsRequest { card_id: string; }
- src/trello-client.ts:38-43 (helper)TrelloClient method that fetches detailed card information (including attachments and members) from Trello API using axios.async getCardDetails(cardId: string): Promise<CardDetails> { const response = await axios.get( `${this.baseUrl}/cards/${cardId}?${this.getAuthParams()}&attachments=true&members=true` ); return response.data; }