Skip to main content

Shares

MCP tools for the Shares module. See the Shares module docs for permissions and data model.

create-share​

Create a share

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoThe publishing project (required if not using project key auth)
resourcestringyesThe SRN of one resource in the publishing project, srn:<project_id>:<type>:<id>. No wildcard.
actionsarray<string>yesThe actions granted: tools:CallTool for a tool, agents:CreateAgentGeneration for an agent. Any other action is 400 VALIDATION_FAILED.
granteestringyesThe project the share is offered to, or * for every project. Never the publishing project itself.
capany | nullnoThe calls each accepting project may make through the share per fixed window; a call past it is 429 SHARE_CAP_EXCEEDED. Omit or null for no cap.

list-shares​

List shares

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth, and always for role=grantee)
rolestringnoWhich side of the shares to list
resourcestringnoOnly shares of this resource SRN (role=publisher only)
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-share​

Get a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
project_idstringnoThe project the caller reads as. Omit, or name the publisher, for the publisher's view; name a grantee project for its view.

update-share​

Update a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
capany | nullnoThe calls each accepting project may make through the share per fixed window; a call past it is 429 SHARE_CAP_EXCEEDED. null removes the cap.

delete-share​

Delete a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID

accept-share​

Accept a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
project_idstringnoThe accepting project (required if not using project key auth)

suspend-share​

Suspend a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID

resume-share​

Resume a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID

revoke-share​

Revoke a share

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
forcebooleannoAs a grantee, revoke even while the project's resources name the shared resource; they degrade as for a revoked share.
project_idstringnoThe project the caller revokes for. Omit, or name the publisher, to revoke the share; name a grantee project to revoke its acceptance.

list-share-references​

List a grantee's references to a shared resource

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
project_idstringnoThe grantee project whose references to list.
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

list-share-acceptances​

List a share's acceptances

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
statusarray<string>noOnly acceptances in these statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a 400.
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

revoke-share-acceptance​

Revoke an acceptance

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
acceptance_idstringyesShare acceptance ID

delete-share-acceptance​

Delete an acceptance

Arguments​

ArgumentTypeRequiredDescription
share_idstringyesShare ID
acceptance_idstringyesShare acceptance ID