# Mastodon hashtag and account search

Search mastodon.social's index of hashtags (with weekly use history) or accounts (public profiles: handle, display name, bio, follower and post counts). Needs query.

Search mastodon.social's index of hashtags (with weekly use history) or accounts (public profiles: handle, display name, bio, follower and post counts). Post full-text search and paging need a logged-in user and are not available here; use mastodon/hashtag-posts to read posts.

- Tool ID: `mastodon/search`
- Provider: [Mastodon](/providers/mastodon.md)
- Capability: [Social media](/tools/social-media.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Words, hashtag or @user@server, e.g. 'climate'"
    },
    "type": {
      "type": "string",
      "enum": [
        "hashtags",
        "accounts"
      ],
      "default": "hashtags",
      "description": "What to search, e.g. 'hashtags'"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 40,
      "default": 10,
      "description": "Results to return, e.g. 10"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "mastodon/search",
  "input": {
    "query": "climate",
    "type": "hashtags",
    "limit": 5
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Attribution: Public data from mastodon.social (Mastodon GmbH); content belongs to its authors.

[Provider documentation](https://docs.joinmastodon.org/methods/search/#v2)

[REST inspection](https://api.agentik.cc/v1/tools/mastodon/search) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/mastodon/search) · [Agent index](/llms.txt)
