Skip to main content
Glama
kegg-mcp-server

kegg-mcp-server

by Lucas-Servi

search_drugs

Read-onlyIdempotent

Find KEGG drug records by name, chemical formula, exact mass, or molecular weight. Specify search type and result limit to retrieve relevant drug data.

Instructions

Search KEGG drugs by name, formula, or molecular weight.

Args: query: Drug name, formula, or mass value. search_type: 'name' (default), 'formula', 'exact_mass', or 'mol_weight'. max_results: Maximum number of results to return (capped at 100).

Input Schema

NameRequiredDescriptionDefault
queryYes
max_resultsNo
search_typeNoname

Output Schema

NameRequiredDescriptionDefault
queryYes
resultsYes
databaseYes
truncatedNo
total_foundYes
returned_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.5.0
    • addedInput schema / properties / search_type / enum
      Added value: +[
      +  "name",
      +  "formula",
      +  "exact_mass",
      +  "mol_weight"
      +]
    • removedOutput schema / $defs
      Removed value: -{
      -  "ErrorResult": {
      -    "description": "Structured error returned by a tool when the KEGG API fails.\n\nA tool returns this instead of raising so the model can reason about\nthe failure and decide whether to retry, change inputs, or give up.\nA point lookup that receives a 404 uses code ``not_found``; an empty search\nremains a successful result with no items.",
      -    "properties": {
      -      "code": {
      -        "default": "kegg_api_error",
      -        "title": "Code",
      -        "type": "string"
      -      },
      -      "error": {
      -        "title": "Error",
      -        "type": "string"
      -      },
      -      "hint": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Hint"
      -      },
      -      "path": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Path"
      -      },
      -      "retryable": {
      -        "default": false,
      -        "title": "Retryable",
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Status"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "title": "ErrorResult",
      -    "type": "object"
      -  },
      -  "SearchResult": {
      -    "properties": {
      -      "database": {
      -        "title": "Database",
      -        "type": "string"
      -      },
      -      "query": {
      -        "title": "Query",
      -        "type": "string"
      -      },
      -      "results": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "title": "Results",
      -        "type": "object"
      -      },
      -      "returned_count": {
      -        "title": "Returned Count",
      -        "type": "integer"
      -      },
      -      "total_found": {
      -        "title": "Total Found",
      -        "type": "integer"
      -      },
      -      "truncated": {
      -        "default": false,
      -        "title": "Truncated",
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "query",
      -      "database",
      -      "total_found",
      -      "returned_count",
      -      "results"
      -    ],
      -    "title": "SearchResult",
      -    "type": "object"
      -  }
      -}
    • addedOutput schema / properties / database
      Added value: +{
      +  "title": "Database",
      +  "type": "string"
      +}
    • addedOutput schema / properties / query
      Added value: +{
      +  "title": "Query",
      +  "type": "string"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/SearchResult"
      -    },
      -    {
      -      "$ref": "#/$defs/ErrorResult"
      -    }
      -  ],
      -  "title": "Result"
      -}
    • addedOutput schema / properties / results
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "title": "Results",
      +  "type": "object"
      +}
    • addedOutput schema / properties / returned_count
      Added value: +{
      +  "title": "Returned Count",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / total_found
      Added value: +{
      +  "title": "Total Found",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "default": false,
      +  "title": "Truncated",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "query",
      +  "database",
      +  "total_found",
      +  "returned_count",
      +  "results"
      +]
    • changedOutput schema / title
      Previous value: -"search_drugsOutput"New value: +"SearchResult"
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds useful constraints such as the default search_type and the 100-result cap, though it does not discuss pagination or result completeness.

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 compact, front-loads the core purpose, and then uses a short Args block for parameter details. There is no redundant text.

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

Completeness4/5

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

An output schema exists, so return values need not be described, and annotations cover the behavioral safety profile. The remaining gap is mainly explicit routing guidance versus sibling tools and clearer semantics for the mass-related search modes.

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

Parameters4/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 carry parameter meaning. It explains query, all four search_type values with a default, and max_results with a cap, but leaves the exact_mass versus mol_weight distinction and expected mass format somewhat unclear.

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 states a specific verb and resource: search KEGG drugs by name, formula, or molecular weight. It clearly distinguishes a search operation from detail-oriented siblings such as get_drug_info or get_drug_interactions.

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?

It lists the supported search modes and defaults, which implies when the tool is appropriate. However, it does not explicitly say when to use this instead of get_drug_info, search_compounds, or other drug-related siblings.

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