search_species

Pack: trefle · Endpoint: https://gateway.pipeworx.io/trefle/mcp

Search species (the rank below plants — some plants have multiple species). Returns Trefle species ID + scientific name.

Parameters

NameTypeRequiredDescription
querystringyesFree-text query
pagenumberno1-based page
page_sizenumberno1-100

Example call

Arguments

{
  "query": "Solanum lycopersicum"
}

curl

curl -X POST https://gateway.pipeworx.io/trefle/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_species","arguments":{"query":"Solanum lycopersicum"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_species', {
  "query": "Solanum lycopersicum"
});

More examples

{
  "query": "oak",
  "page": 1,
  "page_size": 10
}

Response shape

Always returns: total, returned, species

FieldTypeDescription
totalnumberTotal number of matching species
returnednumberNumber of species in this response
speciesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of matching species"
    },
    "returned": {
      "type": "number",
      "description": "Number of species in this response"
    },
    "species": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "number",
              "null"
            ],
            "description": "Trefle species ID"
          },
          "scientific_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scientific name"
          },
          "common_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Common name"
          },
          "family": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plant family"
          },
          "family_common_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Family common name"
          },
          "genus": {
            "type": [
              "string",
              "null"
            ],
            "description": "Genus"
          },
          "year": {
            "type": [
              "number",
              "null"
            ],
            "description": "Year of record"
          },
          "author": {
            "type": [
              "string",
              "null"
            ],
            "description": "Author"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Status"
          },
          "rank": {
            "type": [
              "string",
              "null"
            ],
            "description": "Taxonomic rank"
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Image URL"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL slug"
          },
          "trefle_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trefle API URL"
          }
        }
      }
    }
  },
  "required": [
    "total",
    "returned",
    "species"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "trefle": {
      "url": "https://gateway.pipeworx.io/trefle/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026