Skip to main content
Glama

suggest_neon_intrinsic

Get NEON SIMD intrinsic suggestions for an operation description, ranked by semantic similarity, with target-architecture filtering for Arm64 hot loops.

Instructions

Suggest NEON SIMD intrinsics for an operation description, ranked by semantic similarity.

Use this tool when a user asks which NEON intrinsic to use for a hot loop, wants to
vectorize an operation on Arm64, or mentions intrinsic names like vmlaq_f32.

Args:
    operation_description: Natural-language description of the operation
        (e.g., "vectorized 32-bit float multiply-accumulate" or "vmlaq_f32").
    target_arch: Target Arm architecture — "armv8-a" (default), "armv8.2-a", or "armv9-a".
    top_k: Number of suggestions to return (default 5).

Returns:
    {
      "matches": [
        {"intrinsic": "vmlaq_f32", "signature": "...", "header": "<arm_neon.h>",
         "min_arch": "armv8-a", "description": "...", "score": 0.83},
        ...
      ],
      "notes": "Filtered to armv8-a. KB contains N entries (M compatible)."
    }

Example: suggest_neon_intrinsic("32-bit float fused multiply-add") returns vfmaq_f32 at rank 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_kNo
target_archNoarmv8-a
operation_descriptionYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

There are no annotations, so the description carries the behavioral burden. It discloses the similarity-based ranking, architecture filtering ('Filtered to armv8-a'), and the exact return shape including notes about knowledge-base counts. It stops short of describing error/empty-match behavior, but it provides substantial transparency for a read-only suggestion tool.

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 well organized into purpose, usage conditions, Args, Returns, and Example. The example return object and worked call are informative rather than redundant. Every section earns its place and supports correct invocation.

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

Completeness5/5

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

With no output schema, the description supplies a full return structure, a notes field explanation, and a ranking example. It covers parameters, defaults, and expected results comprehensively for a tool of this complexity. No critical information needed to select or use the tool is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully compensate, and it does. It explains operation_description with a concrete example, enumerates valid target_arch values and the default, and states top_k's default and purpose. An agent can call this tool correctly without needing additional parameter documentation.

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

Purpose5/5

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

The description opens with a precise statement: 'Suggest NEON SIMD intrinsics for an operation description, ranked by semantic similarity.' This names the exact verb, resource, and ranking behavior, making the tool's purpose unmistakable. It is also clearly distinct from sibling tools like analyze_perf_output and check_arm64_deps.

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

Usage Guidelines4/5

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

The description explicitly lists when to use the tool: for a hot loop, Arm64 vectorization, or when the user mentions intrinsic names like vmlaq_f32. It does not give explicit when-not or alternative tool guidance, but the sibling tools are topically distant enough that confusion is unlikely.

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

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/jean-johnson-zwix/arm-code-mcp'

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