Skip to main content
Glama

get_contact

Retrieve specific contact details using a unique ID for signer information in BoldSign. Ideal for managing document signatures and ensuring accurate signer data.

Instructions

This tool utilizes the BoldSign API to retrieve detailed information for a specific contact within your organization. To use this tool, you need to provide the unique identifier (ID) of the contact you wish to retrieve. Contacts are primarily used to store signer details, identified by their unique email address, for use when creating and sending documents for signature within the BoldSign application.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRequired. The unique identifier (ID) of the contact to retrieve. This can be obtained from the list contacts tool.

Implementation Reference

  • Core handler function that creates ContactsApi instance, configures it, fetches contact details by ID, and returns formatted McpResponse or handles errors.
    async function getContactHandler(payload: GetContactSchemaType): Promise<McpResponse> { try { const contactsApi = new ContactsApi(); contactsApi.basePath = configuration.getBasePath(); contactsApi.setApiKey(configuration.getApiKey()); const contactsDetails: ContactsDetails = await contactsApi.getContact(payload.id); return handleMcpResponse({ data: contactsDetails, }); } catch (error: any) { return handleMcpError(error); } }
  • Zod schema for validating input parameters, requiring a contact ID.
    const GetContactSchema = z.object({ id: commonSchema.InputIdSchema.describe( 'Required. The unique identifier (ID) of the contact to retrieve. This can be obtained from the list contacts tool.', ), });
  • Tool definition exporting the 'get_contact' tool with method name, description, input schema, and handler wrapper.
    export const getContactToolDefinition: BoldSignTool = { method: ToolNames.GetContact.toString(), name: 'Get contact', description: 'This tool utilizes the BoldSign API to retrieve detailed information for a specific contact within your organization. To use this tool, you need to provide the unique identifier (ID) of the contact you wish to retrieve. Contacts are primarily used to store signer details, identified by their unique email address, for use when creating and sending documents for signature within the BoldSign application.', inputSchema: GetContactSchema, async handler(args: unknown): Promise<McpResponse> { return await getContactHandler(args as GetContactSchemaType); }, };
  • Registers getContactToolDefinition in the contacts API tools array.
    export const contactsApiToolsDefinitions: BoldSignTool[] = [ getContactToolDefinition, listContactsToolDefinition, ];
  • Global tool definitions array that includes all API tools, spreading contactsApiToolsDefinitions which contains get_contact.
    import { contactsApiToolsDefinitions } from './contactsTools/index.js'; import { documentsApiToolsDefinitions } from './documentsTools/index.js'; import { teamsApiToolsDefinitions } from './teamsTools/index.js'; import { templatesApiToolsDefinitions } from './templatesTools/index.js'; import { usersApiToolsDefinitions } from './usersTools/index.js'; export const definitions: BoldSignTool[] = [ ...contactsApiToolsDefinitions, ...documentsApiToolsDefinitions, ...templatesApiToolsDefinitions, ...usersApiToolsDefinitions, ...teamsApiToolsDefinitions, ];

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/boldsign/boldsign-mcp'

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