Get Any Count
get_any_countCount how many times a Python regular expression matches a given text and return the total as a count, helping quantify pattern occurrences in citation analysis.
Instructions
Count matches of a regular expression in a text. Returns {"count": n}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"regexp": "<regexp>"
},
"name": "get_any_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search. | |
| regexp | Yes | Python regular expression (max 500 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||