Skip to main content
Glama

discover_technologies

Explore and filter Apple technologies and frameworks to identify suitable options for development projects, enabling informed selection decisions.

Instructions

Explore and filter available Apple technologies/frameworks before choosing one

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoOptional page number (default 1)
pageSizeNoOptional page size (default 25, max 100)
queryNoOptional keyword to filter technologies

Implementation Reference

  • Core handler factory for discover_technologies tool: fetches all technologies via client.getTechnologies(), filters frameworks by query, handles pagination, stores last discovery in state, and generates formatted markdown response with select instructions.
    export const buildDiscoverHandler = ({client, state}: ServerContext) =>
    	async (args: {query?: string; page?: number; pageSize?: number}): Promise<ToolResponse> => {
    		const {query, page = 1, pageSize = 25} = args;
    		const technologies = await client.getTechnologies();
    		const frameworks = Object.values(technologies).filter(tech => tech.kind === 'symbol' && tech.role === 'collection');
    
    		let filtered = frameworks;
    		if (query) {
    			const lowerQuery = query.toLowerCase();
    			filtered = frameworks.filter(tech =>
    				tech.title.toLowerCase().includes(lowerQuery)
    				|| client.extractText(tech.abstract).toLowerCase().includes(lowerQuery));
    		}
    
    		const totalPages = Math.max(1, Math.ceil(filtered.length / pageSize));
    		const currentPage = Math.min(Math.max(page, 1), totalPages);
    		const start = (currentPage - 1) * pageSize;
    		const pageItems = filtered.slice(start, start + pageSize);
    
    		state.setLastDiscovery({query, results: pageItems});
    
    		const lines: string[] = [
    			header(1, `Discover Apple Technologies${query ? ` (filtered by "${query}")` : ''}`),
    			'\n',
    			bold('Total frameworks', frameworks.length.toString()),
    			bold('Matches', filtered.length.toString()),
    			bold('Page', `${currentPage} / ${totalPages}`),
    			'\n',
    			header(2, 'Available Frameworks'),
    		];
    
    		for (const framework of pageItems) {
    			const description = client.extractText(framework.abstract);
    			lines.push(`### ${framework.title}`);
    			if (description) {
    				lines.push(`   ${trimWithEllipsis(description, 180)}`);
    			}
    
    			lines.push(`   • **Identifier:** ${framework.identifier}`, `   • **Select:** \`choose_technology "${framework.title}"\``, '');
    		}
    
    		lines.push(...formatPagination(query, currentPage, totalPages), '\n## Next Step', 'Call `choose_technology` with the framework title or identifier to make it active.');
    
    		return {
    			content: [
    				{
    					text: lines.join('\n'),
    					type: 'text',
    				},
    			],
    		};
    	};
  • Input schema definition for discover_technologies tool, defining optional page, pageSize, and query parameters.
    inputSchema: {
    	type: 'object',
    	required: [],
    	properties: {
    		page: {
    			type: 'number',
    			description: 'Optional page number (default 1)',
    		},
    		pageSize: {
    			type: 'number',
    			description: 'Optional page size (default 25, max 100)',
    		},
    		query: {
    			type: 'string',
    			description: 'Optional keyword to filter technologies',
    		},
    	},
    },
  • Tool registration entry in toolDefinitions array, including name, description, inputSchema, and handler factory call.
    {
    	name: 'discover_technologies',
    	description: 'Explore and filter available Apple technologies/frameworks before choosing one',
    	inputSchema: {
    		type: 'object',
    		required: [],
    		properties: {
    			page: {
    				type: 'number',
    				description: 'Optional page number (default 1)',
    			},
    			pageSize: {
    				type: 'number',
    				description: 'Optional page size (default 25, max 100)',
    			},
    			query: {
    				type: 'string',
    				description: 'Optional keyword to filter technologies',
    			},
    		},
    	},
    	handler: buildDiscoverHandler(context),
    },
  • Helper function to generate pagination navigation strings for the tool response.
    const formatPagination = (query: string | undefined, currentPage: number, totalPages: number): string[] => {
    	if (totalPages <= 1) {
    		return [];
    	}
    
    	const safeQuery = query ?? '';
    	const items: string[] = [];
    	if (currentPage > 1) {
    		items.push(`• Previous: \`discover_technologies { "query": "${safeQuery}", "page": ${currentPage - 1} }\``);
    	}
    
    	if (currentPage < totalPages) {
    		items.push(`• Next: \`discover_technologies { "query": "${safeQuery}", "page": ${currentPage + 1} }\``);
    	}
    
    	return ['*Pagination*', ...items];
    };
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions 'Explore and filter' but doesn't disclose behavioral traits such as whether this is a read-only operation, if it requires authentication, rate limits, pagination behavior beyond schema hints, or what the output format looks like. The description adds minimal context beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Explore and filter available Apple technologies/frameworks') and adds context ('before choosing one') without any wasted words. Every part earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and a tool with three parameters for filtering and pagination, the description is incomplete. It doesn't explain what 'technologies/frameworks' entails, how results are structured, or any behavioral constraints. For a discovery tool with filtering capabilities, more context is needed to guide effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters (page, pageSize, query) with their types and defaults. The description adds no additional parameter semantics beyond implying filtering via 'query', which is already covered in the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Explore and filter') and resource ('available Apple technologies/frameworks'), and distinguishes it from sibling tools by mentioning 'before choosing one' (implying choose_technology is for selection). However, it doesn't explicitly differentiate from other siblings like search_symbols or get_documentation, which might also involve exploration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context ('before choosing one') by referencing choose_technology, suggesting this tool is for preliminary exploration. However, it lacks explicit guidance on when to use this versus alternatives like search_symbols or get_documentation, and doesn't specify any exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/MightyDillah/apple-doc-mcp'

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