EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/docs/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Tools for Schema Proposals
List, create, update, review, and comment on schema proposals
The tools described in this section let your agent work with schema proposals: list and read proposals, create a proposal, save a revision of its schema changes, change its title, description, status, and requested reviewers, review it, and comment on it.
Get Proposals
Purpose: List the schema proposals on a graph with their IDs, titles, statuses, authors, source variants, and proposal variants, plus the total count. Filter by status, source variant, or subgraph, and page through the results with a limit and offset. Pass a proposal ID to Get Proposal for full detail.
Example: "List the open schema proposals on my graph."
Get Proposal
Purpose: Retrieve a single schema proposal: its title, description, status, author, source variant, and proposal variant, its latest revision with the revision's schema check and launch, and every review. The other proposal tools use the IDs that this tool returns.
Example: "What's the status of proposal <PROPOSAL_ID>, and did its latest revision pass schema checks?"
Create Proposal
Purpose: Create a schema proposal against a source variant. GraphOS creates a proposal variant that starts as a copy of the source variant's schema, and the proposal starts as a draft. Use Publish Proposal Revision next to add schema changes.
Example: "Create a proposal against my production variant called 'Add product ratings'."
Publish Proposal Revision
Purpose: Save a new revision of a proposal by publishing changed subgraph schemas to its proposal variant. GraphOS composes the proposal variant and runs schema checks on it. The source variant doesn't change. If someone else saved a revision in the meantime, the call fails, and your agent reads the proposal again before retrying. GraphOS saves a revision even when its schema doesn't compose, so your agent checks the revision's schema check and launch status with Get Proposal afterward.
Example: "Add a rating field to Product in the reviews subgraph and save it as a revision of my proposal."
Update Proposal Status
Purpose: Change the status of a proposal—for example, from draft to open or closed. GraphOS sets a proposal to approved only when it has as many approvals as the graph requires, and it doesn't let your agent set a proposal to implemented.
Example: "Open my proposal for review."
Update Proposal Title
Purpose: Change the title of a proposal.
Example: "Rename my proposal to 'Add product ratings and reviews'."
Update Proposal Description
Purpose: Replace the description of a proposal. The new text replaces the whole description, so if you want to keep part of the current description, run Get Proposal first. A description can be up to 10,000 characters.
Example: "Add a rollout plan to the description of my proposal."
Update Proposal Reviewers
Purpose: Add or remove requested reviewers on a proposal. Only members of your organization can be reviewers, and the proposal's author can't review their own proposal. While the proposal is open, GraphOS emails each reviewer your agent adds, even someone who is already requested. Adding reviewers to a draft proposal and removing reviewers sends no email. The tool can't read back the list of requested reviewers, so check the proposal in GraphOS Studio to see it. Use Get Organization Members to find the user IDs of the people you name.
This tool requires the GraphOS sign-in or a personal API key in the x-api-key header. It doesn't work with a graph key.
Example: "Request a review from Jane Doe on my proposal."
Review Proposal
Purpose: Approve or reject the latest revision of a proposal, with an optional comment. Only a requested reviewer can review, and a new review replaces the reviewer's earlier one.
Example: "Approve the latest revision of proposal <PROPOSAL_ID> with the comment 'Looks good'."
Add Proposal Comment
Purpose: Add a comment to a proposal. The comment can be a general comment, a reply to another comment, or a comment on a specific schema change, like a single field in a subgraph.
Example: "Comment on the new Product.rating field in my proposal and ask whether it should be nullable."