Skip to main content
Glama

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
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • 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', }, },
  • TypeScript interface defining the input request shape for the get_card_details tool: { card_id: string }.
    export interface GetCardDetailsRequest { card_id: string; }
  • 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; }

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/andypost/mcp-server-ts-trello'

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