Skip to content

Example Queries

Example GraphQL queries for the Agent0 subgraph.

{
agents(first: 20) {
id
agentId
chainId
owner
agentURI
totalFeedback
lastActivity
registrationFile {
name
description
active
mcpEndpoint
a2aEndpoint
}
}
}
{
agent(id: "11155111:374") {
id
agentId
chainId
owner
agentURI
totalFeedback
registrationFile {
name
description
}
feedback(first: 5) {
score
tag1
tag2
feedbackFile {
text
}
}
}
}
{
agentRegistrationFiles(
where: {
mcpEndpoint_not: null
active: true
}
first: 10
) {
agentId
name
description
mcpEndpoint
mcpTools
}
}
{
agentRegistrationFiles(
where: { mcpTools_contains: ["code_generation"] }
first: 10
) {
agentId
name
mcpTools
}
}
{
agentStats(
where: { averageScore_gte: "80.0" }
orderBy: averageScore
orderDirection: desc
first: 10
) {
agent {
id
agentId
registrationFile {
name
}
totalFeedback
}
averageScore
totalFeedback
}
}
{
feedbacks(
where: { agent_: { id: "11155111:374" } }
first: 10
) {
score
tag1
tag2
feedbackFile {
text
}
responses {
responder
responseUri
createdAt
}
}
}
{
globalStats(id: "global") {
totalAgents
totalFeedback
totalProtocols
tags
}
}
{
agent(id: "11155111:374") {
id
agentId
chainId
owner
agentURI
createdAt
updatedAt
totalFeedback
lastActivity
registrationFile {
name
description
image
active
x402support
supportedTrusts
mcpEndpoint
mcpVersion
mcpTools
mcpPrompts
mcpResources
a2aEndpoint
a2aVersion
a2aSkills
ens
did
agentWallet
agentWalletChainId
}
feedback(
where: { isRevoked: false }
orderBy: createdAt
orderDirection: desc
first: 10
) {
score
tag1
tag2
clientAddress
feedbackUri
createdAt
feedbackFile {
text
capability
skill
task
context
}
responses {
responder
responseUri
createdAt
}
}
validations(
orderBy: createdAt
orderDirection: desc
first: 10
) {
validatorAddress
response
status
tag
createdAt
}
}
}
{
agentRegistrationFiles(
where: { name_contains: "test", active: true }
first: 50
) {
agentId
name
description
image
}
}
{
agentRegistrationFiles(
where: { supportedTrusts_contains: ["reputation"], active: true }
first: 50
) {
agentId
name
description
supportedTrusts
}
}