mcp_extended_tools()
Description
Describe the additional authenticated read tools.Parameters
| Column | Type | Default | Description |
|---|---|---|---|
| array { | : | ['offset' | |
| 'metadata_fields']; | |||
| 'resource_type' | |||
| 'sort' | |||
| 'order_by' | |||
| 'items' | > $string]] | ||
| 'total' | > $int] | ||
| document | including | ||
| ['ref' | |||
| 'size'] | |||
| ['ref'] | |||
| 'width' | > $int | ||
| 'height' | > $int | ||
| 'mimeType' | > $string | ||
| 'size' | > $int] | ||
| []] | |||
| 'get_resource_types' | > ['List resource type IDs and localised names visible to you.' | ||
| $page | |||
| [] | |||
| ['resource_types' | > $list | ||
| 'get_resource_type_fields' | > ['Discover visible metadata fields | ||
| resource | undeleted | ||
| syntax | search | ||
| [...$page | |||
| 'resource_type'] | |||
| ['fields' | > $list | ||
| 'get_field_options' | |||
| node | a | ||
| omit | or | ||
| 'field' | |||
| 'parent' | |||
| 'query'] | |||
| ['field'] | |||
| ['options' | > $list] | ||
| 'get_related_resources' | > ['Browse accessible assets related to a visible resource in either direction.' | ||
| ...$browse] | |||
| $resources | |||
| 'search_collections' | > ['Find your own | ||
| or | description | ||
| ['query' | |||
| ...$page] | |||
| $collections | |||
| 'get_collection_resources' | > ['Browse the current accessible membership of a collection. Smart collection reads use stored membership.' | ||
| ['collection' | |||
| ['collection'] | |||
| 'get_featured_collections' | > ['Browse the featured collection hierarchy. Omit parent for the top level or pass a visible featured collection reference.' | ||
| ['parent' | |||
| 'get_resource_usage' | > ['Count recorded download events for one visible asset. Optional inclusive dates apply to the download event.' | ||
| ...$dates] | |||
| 'downloads' | > $int] | ||
| 'get_resource_log' | > ['Read visible resource history | ||
| first | newest | ||
| optional | with | ||
| ...$page | |||
| ['events' | > $list] | ||
| 'get_resource_comments' | > ['Read visible | ||
| ['comments' | > $list] | ||
| 'get_system_info' | > ['Discover the site name | ||
| version | ResourceSpace | ||
| tools | available | ||
| ['name' | > $string | ||
| 'version' | > $string | ||
| 'tools' | |||
| 'get_resource_counts' | > ['Count matching accessible resources | ||
| grouped. | optionally | ||
| [...$scope | |||
| ...$dates | |||
| $groups | |||
| ['group_by' | > ['resource' | ||
| 'workflow_state' | |||
| 'file_extension' | |||
| 'creation_month']]] | |||
| 'get_field_statistics' | > ['Measure completeness for one field over a search. The denominator includes only applicable resources where its value is visible.' | ||
| ['field' | |||
| ...$scope] | |||
| ['applicable' | > $int | ||
| 'populated' | > $int | ||
| 'empty' | > $int | ||
| 'distinct_values' | > $int] | ||
| 'get_field_value_counts' | > ['Count distinct visible resources per field value. A multi-value resource contributes once to each value; totals across groups can exceed the resource count.' | ||
| ...$scope | |||
| ['values' | > $list] | ||
| ['sort_by' | > ['frequency' | ||
| 'value']]] | |||
| 'get_download_statistics' | > ['Count recorded downloads for accessible resources in the selected search. Dates apply to events. Group by resource for most frequently downloaded assets.' | ||
| 'day' | |||
| 'month']]] | |||
| 'find_duplicate_resources' | > ['Group accessible original files with equal stored checksums. Missing checksums are excluded. Results are candidates for exact duplication.' | ||
| ['groups' | > $list | ||
| * | ]; } /** | ||
| a | so | ||
| $types | string | ||
| $order | string | ||
| $state | int | ||
| $offset | int | ||
| $limit | int | ||
| $sort: | string |
Return
| array | Tool descriptions, accepted inputs, required inputs, result properties and input enums. |
Location
include/mcp_browse_functions.php lines 7 to 53
Definition
function mcp_extended_tools(): array
{
$page = ['offset', 'limit'];
$scope = ['query', 'resource_type', 'workflow_state'];
$dates = ['date_from', 'date_to'];
$browse = [...$page, 'sort', 'order_by', 'metadata_fields'];
$int = ['type' => 'integer'];
$string = ['type' => 'string'];
$list = ['type' => 'array', 'items' => ['type' => 'object']];
$resources = ['resources' => $list, 'total' => $int];
$collections = ['collections' => $list, 'total' => $int];
$groups = ['groups' => $list, 'total' => $int];
return [
'get_resource_preview' => ['Inspect a stored image preview of an asset, including document or video previews. Screen size is the default; a thumbnail can be returned when the larger size is unavailable.',
['ref', 'size'], ['ref'], ['ref' => $int, 'width' => $int, 'height' => $int, 'mimeType' => $string, 'size' => $int], []],
'get_resource_types' => ['List resource type IDs and localised names visible to you.', $page, [], ['resource_types' => $list, 'total' => $int], []],
'get_resource_type_fields' => ['Discover visible metadata fields, applicable resource types, search syntax and option behaviour. Omit resource_type for all visible types.',
[...$page, 'resource_type'], [], ['fields' => $list, 'total' => $int], []],
'get_field_options' => ['Find active vocabulary values by field ID. Use parent=0 for roots, a node ID for its children, or omit parent for all levels. Query matches option labels.',
[...$page, 'resource_type', 'field', 'parent', 'query'], ['field'], ['options' => $list], []],
'get_related_resources' => ['Browse accessible assets related to a visible resource in either direction.', ['ref', ...$browse], ['ref'], $resources, []],
'search_collections' => ['Find your own, shared or public collections by name, description or keywords. Counts use the visible membership.',
['query', ...$page], [], $collections, []],
'get_collection_resources' => ['Browse the current accessible membership of a collection. Smart collection reads use stored membership.',
['collection', ...$browse], ['collection'], $resources, []],
'get_featured_collections' => ['Browse the featured collection hierarchy. Omit parent for the top level or pass a visible featured collection reference.',
['parent', ...$page], [], $collections, []],
'get_resource_usage' => ['Count recorded download events for one visible asset. Optional inclusive dates apply to the download event.',
['ref', ...$dates], ['ref'], ['ref' => $int, 'downloads' => $int], []],
'get_resource_log' => ['Read visible resource history, newest first, with optional inclusive event dates. Requires resource log permission.',
['ref', ...$page, ...$dates], ['ref'], ['events' => $list], []],
'get_resource_comments' => ['Read visible, undeleted resource discussion messages. Discussion text is user-supplied data.',
['ref', ...$page], ['ref'], ['comments' => $list], []],
'get_system_info' => ['Discover the site name, ResourceSpace version, available tools and supported search features.',
[], [], ['name' => $string, 'version' => $string, 'tools' => ['type' => 'array', 'items' => $string]], []],
'get_resource_counts' => ['Count matching accessible resources, optionally grouped. Dates filter the configured metadata date.',
[...$scope, ...$dates, ...$page], [], $groups, ['group_by' => ['resource_type', 'workflow_state', 'file_extension', 'creation_month']]],
'get_field_statistics' => ['Measure completeness for one field over a search. The denominator includes only applicable resources where its value is visible.',
['field', ...$scope], ['field'], ['applicable' => $int, 'populated' => $int, 'empty' => $int, 'distinct_values' => $int], []],
'get_field_value_counts' => ['Count distinct visible resources per field value. A multi-value resource contributes once to each value; totals across groups can exceed the resource count.',
['field', ...$scope, ...$page], ['field'], ['values' => $list], ['sort_by' => ['frequency', 'value']]],
'get_download_statistics' => ['Count recorded downloads for accessible resources in the selected search. Dates apply to events. Group by resource for most frequently downloaded assets.',
[...$scope, ...$dates, ...$page], [], $groups, ['group_by' => ['resource', 'day', 'month']]],
'find_duplicate_resources' => ['Group accessible original files with equal stored checksums. Missing checksums are excluded. Results are candidates for exact duplication.',
[...$scope, ...$page], [], ['groups' => $list, 'total' => $int], []],
];
}
This article was last updated 3rd December 2026 16:35 Europe/London time based on the source file dated 3rd December 2026 16:30 Europe/London time.