edc_, so they don’t collide with tools of other
servers connected to the same assistant.
Reading
All read tools are markedreadOnlyHint: true.
Every list tool is paged: it takes
limit (1–100, default 25) and page
(starting at 0), and answers with total and hasMore. Rows are trimmed to
the useful fields; detail: true returns whole documents. URLs that carry
access tokens are removed from those documents.
Changing
Repeatable is the tool’s
idempotentHint. A no means that running it
twice does it twice — two comments, two projects — so an assistant should not
simply retry such a call after a timeout.
Behaviour worth knowing
Nothing is deleted
No tool deletes anything, and every changed document keeps its earlier values in its own history, with your name on the change.edc_archive_project is the
only tool marked destructiveHint: true: it deletes nothing either, but it
takes the project out of every active list and out of what the contract is
billed on. Assistants are told this and normally ask you before calling it.
Edits don’t overwrite someone else’s work
Every ticket write accepts anexpected_rev — the rev returned by
edc_get_ticket. If somebody changed the ticket in the meantime, the write is
refused with a message telling the assistant to read the ticket again, rather
than silently overwriting the other person’s change. Contract updates work the
same way with edc_get_contract; changing a contract needs you to administer
or manage it.
Reassigning needs the right role
Only the project’s Accountable or Support may reassign a ticket. For anyone elseedc_reassign_ticket is refused and says that retrying will not
help — every other edit to the ticket is still allowed.
Audits
edc_create_auditrequires a responsible person. Ed Controls would accept an audit without one, but its answer buttons would then be disabled in the app. A due date in the past is refused for the same reason.edc_fill_auditwrites the answers it is given onto the questions it is given; filling in the same answers twice leaves the same audit.- A template group cannot be renamed or deleted through the MCP server, because its name is copied onto every template in it.
Uploading drawings and pictures
A file reaches Ed Controls in one of three ways:
Drawings are converted to tiles after upload.
edc_upload_map therefore
answers with a status:
Creating projects
edc_create_project needs you to be an administrator of the contract the
project is created under; a contract manager is not enough. Changing a project
needs its Accountable or a contract administrator.