{"ok":true,"site":{"host":"smart-grid-agent.asasaasaasas.chatgpt.site","url":"https://smart-grid-agent.asasaasaasas.chatgpt.site/","type":"live","desc":"RelayGrid","tools":[{"name":"describe_grid","kind":"answer","impl":"imperative","description":"Describe the worklist and safe usage. If the user's text is gibberish, ambiguous, or not a supported grid request, call this with requestStatus='unclear'; do not invent a query or action. The tool will show a no-changes notice and return example prompts.","inputSchema":{"type":"object","properties":{"userRequest":{"type":"string"},"requestStatus":{"enum":["clear","unclear"]}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"apply_query","kind":"act","impl":"imperative","description":"Apply a deterministic query to the visible grid. Supports nested AND, OR, and NOT. Include requestSummary mirroring the user's intent.","inputSchema":{"type":"object","$defs":{"node":{"oneOf":[{"type":"object","properties":{"kind":{"const":"condition"},"field":{"enum":["id","patient","age","department","exam","status","priority","createdAt","assignee","followUp","warning","location"]},"operator":{"enum":["eq","neq","gte","lte","in","after","before"]},"value":{}},"required":["kind","field","operator","value"]},{"type":"object","properties":{"kind":{"const":"group"},"operator":{"enum":["AND","OR"]},"children":{"type":"array","items":{"$ref":"#/$defs/node"},"minItems":1}},"required":["kind","operator","children"]},{"type":"object","properties":{"kind":{"const":"not"},"child":{"$ref":"#/$defs/node"}},"required":["kind","child"]}]}},"properties":{"requestSummary":{"type":"string"},"root":{"$ref":"#/$defs/node"},"sort":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"direction":{"enum":["asc","desc"]}},"required":["field","direction"]}}},"required":["requestSummary","root"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"explain_record","kind":"act","impl":"imperative","description":"Explain why one visible record matched. Requires an active query; otherwise tell the user to filter first.","inputSchema":{"type":"object","properties":{"recordId":{"type":"string"}},"required":["recordId"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"preview_batch_action","kind":"act","impl":"imperative","description":"After a query is active, create a non-mutating deterministic plan for one requested action across only the current visible batch (up to 50 records), never every match. Never call before filtering. 'Next batch' means preview the current visible batch after the previous batch has executed. Returns exact transition counts and small samples.","inputSchema":{"type":"object","properties":{"action":{"enum":["approve","send_to_review","cancel"]},"requestSummary":{"type":"string"}},"required":["action","requestSummary"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"execute_batch_action","kind":"act","impl":"imperative","description":"Execute a saved preview for the current visible batch only, after explicit human confirmation. After execution the same query remains active and the next eligible batch automatically becomes visible.","inputSchema":{"type":"object","properties":{"previewId":{"type":"string"},"humanConfirmed":{"type":"boolean","const":true}},"required":["previewId","humanConfirmed"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"undo_last_batch","kind":"act","impl":"imperative","description":"Undo the most recent executed batch action. Do not call when audit history is empty.","hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"}],"category":"Productivity & Business","favicon":"/favicons/smart-grid-agent.asasaasaasas.chatgpt.site.png","apiSurface":"spec","toolCount":6}}