Skip to main content
Glama

get_strings

Extract and list all text strings from a binary file for reverse engineering analysis in IDA Pro.

Instructions

Get list of strings from the binary

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function getStrings() that fetches strings from the IDA Pro remote server by making a GET request to the '/strings' endpoint.
    /** * Get strings from the binary * @returns List of strings in the binary */ async getStrings(): Promise<StringsResponse> { return this.get<StringsResponse>('/strings'); }
  • MCP tool handler in callToolRequestSchema that validates arguments, calls ida.getStrings(), formats and returns the result as MCP content.
    case 'get_strings': if (!isValidGetStringsArgs(request.params.arguments)) { throw new McpError( ErrorCode.InvalidParams, 'Invalid get strings arguments' ); } try { const result = await ida.getStrings(); return { content: [ { type: 'text', text: `Retrieved ${result.count} strings from the binary:\n\n${JSON.stringify(result.strings, null, 2) }`, }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Error getting strings: ${error.message || error}`, }, ], isError: true, }; }
  • index.ts:408-416 (registration)
    Registers the 'get_strings' tool in the MCP server's ListTools response with name, description, and empty input schema (no parameters required).
    { name: 'get_strings', description: 'Get list of strings from the binary', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • TypeScript interface defining the input arguments for get_strings tool (empty, no parameters).
    interface GetStringsArgs { // No parameters required }
  • TypeScript interface defining the response structure from the /strings endpoint, used by getStrings().
    export interface StringsResponse { count: number; strings: StringInfo[]; }

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/fdrechsler/mcp-server-idapro'

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