# searchMedicines

**Identifier:** `ansm_searchMedicines`

**Provider:** [ANSM](https://kirha.com/providers/ansm.md)

Full-text search across French specialty medicines authorised by ANSM (national, MRP, DCP procedures). Entry point for any conversation about a French medicine — matches commercial name, AMM holder, and INN substance. Excludes EU centrally authorised products (use ema-mcp for those). Returns cisCodes for composition with other tools.

## Run it with the CLI

```bash
kirha tools run ansm_searchMedicines \
  --input '{
    "query": "<query>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "ansm_searchMedicines",
  "input": {
    "query": "<query>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "etatCommercialisation": {
      "enum": [
        "commercialisee",
        "non_commercialisee",
        "arret"
      ],
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "procedureAmm": {
      "enum": [
        "nationale",
        "mrp",
        "dcp"
      ],
      "type": "string"
    },
    "query": {
      "description": "Free-text search across denomination, titulaires, and INN names.",
      "type": "string"
    },
    "statutAmm": {
      "default": "active",
      "enum": [
        "active",
        "retiree",
        "archivee",
        "suspendue"
      ],
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cisCodes": {
      "description": "CIS codes of matched medicines for composition with other tools.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "medicines": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cis": {
            "type": "string"
          },
          "dateAmm": {
            "type": [
              "string",
              "null"
            ]
          },
          "denomination": {
            "type": "string"
          },
          "etatCommercialisation": {
            "type": "string"
          },
          "formePharma": {
            "type": "string"
          },
          "procedureAmm": {
            "type": "string"
          },
          "statutAmm": {
            "type": "string"
          },
          "substances": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "denomination": {
                  "type": "string"
                },
                "dosage": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "denomination",
                "dosage"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "surveillance": {
            "type": "boolean"
          },
          "titulaires": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "voiesAdministration": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "cis",
          "denomination",
          "formePharma",
          "voiesAdministration",
          "statutAmm",
          "procedureAmm",
          "etatCommercialisation",
          "titulaires",
          "surveillance",
          "substances"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "medicines",
    "cisCodes"
  ],
  "type": "object"
}
```

-----

[All ANSM tools](https://kirha.com/providers/ansm.md) · [< Back to tools list](https://kirha.com/tools.md)