list_asset_threads
Retrieve vendor, repair, and service conversations associated with school assets. Filter by status and paginate results for easy review.
Instructions
List asset-comms threads (vendor / repair / service conversations attached to assets). Read-only — vendor-token issuance is NOT exposed via this MCP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by status: 'open', 'scheduled', 'closed', etc. | |
| cursor | No | Opaque pagination cursor. |
Implementation Reference
- src/tools/index.ts:182-189 (handler)Handler function for the list_asset_threads tool. Gets the school context from the API client and makes a GET request to /v1/schools/{schoolId}/asset-threads with optional status and cursor query parameters.
async handler(args, client) { const ctx = await client.getContext(); return client.get<unknown>(`/v1/schools/${ctx.schoolId}/asset-threads`, { status: typeof args.status === 'string' ? args.status : undefined, cursor: typeof args.cursor === 'string' ? args.cursor : undefined, }); }, }; - src/tools/index.ts:171-181 (schema)Input schema for the list_asset_threads tool, defining optional 'status' and 'cursor' string properties.
inputSchema: { type: 'object', properties: { status: { type: 'string', description: "Filter by status: 'open', 'scheduled', 'closed', etc.", }, cursor: { type: 'string', description: 'Opaque pagination cursor.' }, }, additionalProperties: false, }, - src/tools/index.ts:193-200 (registration)Registration of list_asset_threads in the tools array and the toolByName lookup map.
export const tools: ToolDef[] = [ listSchools, getAsset, searchAssets, getLoansForAsset, listMembers, listAssetThreads, ]; - src/tools/index.ts:167-169 (registration)Definition and name registration of the list_asset_threads tool.
const listAssetThreads: ToolDef = { name: 'list_asset_threads', description: