Skip to main content
Glama

get_icon_detail_by_id

Retrieve detailed metadata for a specific icon using its unique ID, including author, style, thumbnails, and related variants.

Instructions

Get detailed information about a specific icon identified by its unique ID.

Path Parameters:

  • id (Required): Icon resource ID

Responses:

  • 200 (Success): OK

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "data": {
    "free_svg": true,
    "related": {
      "visual_concept": [
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        },
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        }
      ],
      "style": [
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        },
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        }
      ],
      "variants": [
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        },
        {
          "free_svg": true,
          "created": "2023-03-07T23:05:26Z",
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
          "style": {
            "name": "Meticulous Yellow shadow",
            "id": 50
          },
          "id": 52912,
          "family": {
            "total": 1200,
            "name": "Outline",
            "id": 1
          },
          "thumbnails": [
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            },
            {
              "width": 512,
              "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
              "height": 512
            }
          ],
          "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library"
        }
      ]
    },
    "created": "2023-03-07T23:05:26Z",
    "author": {
      "assets": 0,
      "name": "John Doe",
      "id": 2147483647,
      "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
      "slug": "merry-christmas"
    },
    "name": "a woman reads a book in a tablet sits in the luxurious back of the library",
    "style": {
      "name": "Meticulous Yellow shadow",
      "id": 50
    },
    "id": 52912,
    "family": {
      "total": 1200,
      "name": "Outline",
      "id": 1
    },
    "thumbnails": [
      {
        "width": 512,
        "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
        "height": 512
      },
      {
        "width": 512,
        "url": "https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61a866e2519c71.61070863_large.png",
        "height": 512
      }
    ],
    "slug": "a-woman-reads-a-book-in-a-tablet-sits-in-the-luxurious-back-of-the-library",
    "tags": [
      {
        "name": "Dog",
        "slug": "dog"
      },
      {
        "name": "Dog",
        "slug": "dog"
      }
    ]
  }
}
  • 400: Bad Request - The server could not understand the request due to invalid syntax.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 401: Unauthorized - The client must authenticate itself to get the requested response.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 404: Not Found - The server can not find the requested resource.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 500: Internal Server Error - The server has encountered a situation it doesn't know how to handle.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "Internal Server Error"
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
Accept-LanguageNoSpecifies the search query language using the ISO 639-1 (2-letter language code) and the ISO 3166-1 (2-letter country code) for language variants. The API will use "en-US" as a default language for processing if a code is not provided, or does not exist.
idYesIcon resource ID

Implementation Reference

  • Maps all /v1/icon.* API endpoints to MCP tools, enabling the get_icon_detail_by_id tool among others.
    RouteMap(
        methods=[
            "GET",
            "POST",
        ],
        pattern=r"/v1/icon.*",
        mcp_type=MCPType.TOOL,
    ),
  • Generates and registers MCP tools from the Freepik OpenAPI specification for routes mapped as tools, including icon endpoints.
    server = FastMCP.from_openapi(
        openapi_spec=openapi_spec,
        client=http_client,
        name=server_config.name,
        route_maps=route_maps,
        mcp_component_fn=mcp_component_fn,
    )
  • Loads the OpenAPI specification used to generate tool schemas and handlers.
    spec_loader = OpenApiSpecLoader(cache_config)
    openapi_spec = spec_loader.load_spec()
  • Creates the HTTP client used by generated OpenAPITools to execute API calls.
    http_client = HttpClientFactory.create_api_client(api_config)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions HTTP response codes (200, 400, 401, 404, 500) and includes an example response, but lacks critical details like authentication needs, rate limits, whether it's a read-only operation, or any side effects. The example response is overly verbose and repetitive, adding noise rather than clarity.

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

Conciseness2/5

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

The description is poorly structured and excessively long due to the inclusion of a massive, repetitive JSON example that duplicates data unnecessarily. The core information is buried under verbose examples, making it difficult to parse quickly. A more concise approach would focus on key details without redundant examples.

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 the tool's complexity (retrieving detailed icon data) and the absence of annotations and output schema, the description is incomplete. It lacks information on authentication, rate limits, error handling specifics beyond HTTP codes, and how to interpret the response structure efficiently. The verbose example doesn't compensate for these gaps.

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 fully documents both parameters ('id' and 'Accept-Language'). The description adds a brief mention of the 'id' parameter in the 'Path Parameters' section but doesn't provide additional semantic context beyond what's in the schema. This meets the baseline for high schema coverage.

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 tool's purpose as 'Get detailed information about a specific icon identified by its unique ID,' which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'get_resource_detail_by_id' or 'search_icons,' which appear to serve related but distinct purposes.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'get_resource_detail_by_id' for non-icon resources or 'search_icons' for browsing, nor does it specify prerequisites such as authentication requirements or rate limits.

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/freepik-company/freepik-mcp'

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