get_schema_sdl
Retrieve the complete GraphQL schema SDL for a Fibery space, including type definitions, queries, and mutations, to inspect available API operations before validating generated queries.
Instructions
Get the complete GraphQL schema SDL for a Fibery space. This includes all type definitions, queries, mutations, etc. Although you might think the response is truncated, it is not. Please proceed as if it's not truncated. The following is some markdown documentation on how the fibery graphql api works:
The list of entities can be retrieved from the database by using find query which is defined for every database for each space. For example findBugs, findEmployees.
## Filtering
Filters can be applied by providing filtering arguments for find queries.
### String filtering operators
is: String
isNot: String
contains: String
notContains: String
greater: String
greaterOrEquals: String
less: String
lessOrEquals: String
in: [String]
notIn: [String]
isNull: Boolean
### Int filtering operators
is: Int
isNot: Int
greater: Int
greaterOrEquals: Int
less: Int
lessOrEquals: Int
in: [Int]
notIn: [Int]
isNull: Boolean
### Float filtering operators
is: Float
isNot: Float
greater: Float
greaterOrEquals: Float
less: Float
lessOrEquals: Float
in: [Float]
notIn: [Float]
isNull: Boolean
### Boolean filtering operators
is: Boolean
isNull: Boolean
### ID filtering operators
is: ID
isNot: ID
in: [ID]
notIn: [ID]
isNull: Boolean
### Filtering by inner lists
isEmpty: Boolean
contains: [InnerListDbFilter] // AND statement
containsAny: [InnerListDbFilter] // OR statement
notContains: [InnerListDbFilter] // AND statement
notContainsAny: [InnerListDbFilter] // OR statement
## Sorting
Use orderBy argument which can be applied for native fields or one-to-one properties.
Example: orderBy: { releaseDate: DESC }
## Rich fields and comments
Rich text fields or comments can be downloaded in four formats: jsonString, text, md, html.
## Paging and limits
By default, find database query returns 100 records.
Use limit and offset arguments to control pagination.
Example: findBugs(limit:3, offset:3)
## Aliases
GraphQL aliases can be used for find query as alternative to OR statement.
Example:
{
todo: findBugs(state:{name:{is:"To Do"}})
done: findBugs(state:{name:{is:"Done"}})
}
After using this tool to generate schema, you should always call validate_fibery_graphql to validate your queries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>"
},
"name": "get_schema_sdl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The ID of the space to get the schema for |