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/jsonResponse Properties:
Example:
400: Bad Request - The server could not understand the request due to invalid syntax.
Content-Type:
application/jsonResponse Properties:
Example:
401: Unauthorized - The client must authenticate itself to get the requested response.
Content-Type:
application/jsonResponse Properties:
Example:
404: Not Found - The server can not find the requested resource.
Content-Type:
application/jsonResponse Properties:
Example:
500: Internal Server Error - The server has encountered a situation it doesn't know how to handle.
Content-Type:
application/jsonResponse Properties:
Example:
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Accept-Language | No | Specifies 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. | |
| id | Yes | Icon resource ID |
Implementation Reference
- src/application/route_configuration.py:28-35 (registration)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, ),
- src/application/server_factory.py:84-90 (registration)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)