get_antibody_info
Retrieve detailed antibody validation and staining data for a specific protein using gene symbol input in JSON or TSV format, hosted on the ProteinAtlas MCP Server.
Instructions
Get antibody validation and staining information for a protein
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format (default: json) | |
| gene | Yes | Gene symbol |
Implementation Reference
- src/index.ts:1138-1164 (handler)Handler function for the 'get_antibody_info' tool. Validates input using isValidGeneArgs, fetches data via fetchAntibodyInfo helper, returns formatted JSON text content or error response.private async handleGetAntibodyInfo(args: any) { if (!isValidGeneArgs(args)) { throw new McpError(ErrorCode.InvalidParams, 'Invalid gene arguments'); } try { const result = await this.fetchAntibodyInfo(args.gene); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching antibody info: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], isError: true, }; } }
- src/index.ts:592-599 (schema)Input schema definition for 'get_antibody_info' tool specifying required 'gene' parameter and optional 'format'.inputSchema: { type: 'object', properties: { gene: { type: 'string', description: 'Gene symbol' }, format: { type: 'string', enum: ['json', 'tsv'], description: 'Output format (default: json)' }, }, required: ['gene'], },
- src/index.ts:590-600 (registration)Tool registration entry in the tools list provided to listTools, including name, description, and input schema.name: 'get_antibody_info', description: 'Get antibody validation and staining information for a protein', inputSchema: { type: 'object', properties: { gene: { type: 'string', description: 'Gene symbol' }, format: { type: 'string', enum: ['json', 'tsv'], description: 'Output format (default: json)' }, }, required: ['gene'], }, },
- src/index.ts:695-696 (registration)Registration of the tool handler in the switch statement within the CallToolRequestHandler.case 'get_antibody_info': return this.handleGetAntibodyInfo(args);
- src/index.ts:773-776 (helper)Supporting helper that performs the API search for antibody information by specifying relevant columns like 'ab', 'abrr', 'relih' etc.private async fetchAntibodyInfo(gene: string): Promise<any> { const columns = ['g', 'eg', 'ab', 'abrr', 'relih', 'relmb', 'relce']; return this.searchProteins(gene, 'json', columns, 1); }