Skip to main content
Glama

Hugging Face User Info

hf_whoami
Read-only

Inspect the current Hugging Face authentication context, including the account, visible organization memberships, and credential access details. Read-only and never returns credential values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "is_pro": {
      -            "type": "boolean"
      -          },
      -          "name": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "type": {
      -            "enum": [
      -              "user",
      -              "org",
      -              "app"
      -            ],
      -            "type": "string"
      -          },
      -          "url": {
      -            "format": "uri",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "type",
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "credential": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "created_at": {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                "type": "string"
      -              },
      -              "permissions": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "can_read_gated_repos": {
      -                    "type": "boolean"
      -                  },
      -                  "global": {
      -                    "items": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "scoped": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "entity": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "id": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "name": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            "type": {
      -                              "enum": [
      -                                "model",
      -                                "dataset",
      -                                "space",
      -                                "bucket",
      -                                "kernel",
      -                                "collection",
      -                                "org",
      -                                "user",
      -                                "resource_group",
      -                                "oauth_app"
      -                              ],
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "id",
      -                            "type"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "permissions": {
      -                          "items": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "type": "array"
      -                        },
      -                        "restrictions": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "patterns": {
      -                                "items": {
      -                                  "minLength": 1,
      -                                  "type": "string"
      -                                },
      -                                "type": "array"
      -                              },
      -                              "resource_type": {
      -                                "const": "inference_endpoint",
      -                                "type": "string"
      -                              }
      -                            },
      -                            "required": [
      -                              "resource_type",
      -                              "patterns"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "entity",
      -                        "permissions"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "scoped"
      -                ],
      -                "type": "object"
      -              },
      -              "role": {
      -                "enum": [
      -                  "read",
      -                  "write",
      -                  "fine_grained"
      -                ],
      -                "type": "string"
      -              },
      -              "type": {
      -                "const": "personal_access_token",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "role"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "expires_at": {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                "type": "string"
      -              },
      -              "scopes": {
      -                "items": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "type": {
      -                "const": "oauth",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "entities": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "name": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "type": {
      -                      "enum": [
      -                        "model",
      -                        "dataset",
      -                        "space",
      -                        "bucket",
      -                        "kernel",
      -                        "org"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "name"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "role": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "type": {
      -                "const": "app_token",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "entities"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "expires_at": {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                "type": "string"
      -              },
      -              "type": {
      -                "const": "other",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "organizations": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "display_name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "plan": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "resource_groups": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "id": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "role": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "name",
      -                  "role"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "role": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "security_restrictions": {
      -              "items": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "url": {
      -              "format": "uri",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "display_name",
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "const": "authenticated",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "account",
      -      "organizations",
      -      "credential"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "type": "null"
      -      },
      -      "credential": {
      -        "type": "null"
      -      },
      -      "guidance": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "organizations": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "display_name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "plan": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "resource_groups": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "id": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "role": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "name",
      -                  "role"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "role": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "security_restrictions": {
      -              "items": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "url": {
      -              "format": "uri",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "display_name",
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "const": "anonymous",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "account",
      -      "organizations",
      -      "credential",
      -      "guidance"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "type": "null"
      -      },
      -      "credential": {
      -        "type": "null"
      -      },
      -      "guidance": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "organizations": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "display_name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "plan": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "resource_groups": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "id": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "role": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "name",
      -                  "role"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "role": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "security_restrictions": {
      -              "items": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "url": {
      -              "format": "uri",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "display_name",
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "status": {
      -        "const": "authentication_unverified",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "account",
      -      "organizations",
      -      "credential",
      -      "guidance"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "is_pro": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "user",
      +              "org",
      +              "app"
      +            ],
      +            "type": "string"
      +          },
      +          "url": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "type",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "credential": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "created_at": {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              "permissions": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "can_read_gated_repos": {
      +                    "type": "boolean"
      +                  },
      +                  "global": {
      +                    "items": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "scoped": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "entity": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "id": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "name": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "type": {
      +                              "enum": [
      +                                "model",
      +                                "dataset",
      +                                "space",
      +                                "bucket",
      +                                "kernel",
      +                                "collection",
      +                                "org",
      +                                "user",
      +                                "resource_group",
      +                                "oauth_app"
      +                              ],
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "id",
      +                            "type"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "permissions": {
      +                          "items": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "restrictions": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "patterns": {
      +                                "items": {
      +                                  "minLength": 1,
      +                                  "type": "string"
      +                                },
      +                                "type": "array"
      +                              },
      +                              "resource_type": {
      +                                "const": "inference_endpoint",
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "resource_type",
      +                              "patterns"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "entity",
      +                        "permissions"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "scoped"
      +                ],
      +                "type": "object"
      +              },
      +              "role": {
      +                "enum": [
      +                  "read",
      +                  "write",
      +                  "fine_grained"
      +                ],
      +                "type": "string"
      +              },
      +              "type": {
      +                "const": "personal_access_token",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "role"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "expires_at": {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              "scopes": {
      +                "items": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "type": {
      +                "const": "oauth",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "entities": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "name": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "enum": [
      +                        "model",
      +                        "dataset",
      +                        "space",
      +                        "bucket",
      +                        "kernel",
      +                        "org"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "name"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "role": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "type": {
      +                "const": "app_token",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "entities"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "expires_at": {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              "type": {
      +                "const": "other",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "organizations": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "display_name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "plan": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "resource_groups": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "role": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "name",
      +                  "role"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "role": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "security_restrictions": {
      +              "items": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "display_name",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "const": "authenticated",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "account",
      +      "organizations",
      +      "credential"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "type": "null"
      +      },
      +      "credential": {
      +        "type": "null"
      +      },
      +      "guidance": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "organizations": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "display_name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "plan": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "resource_groups": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "role": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "name",
      +                  "role"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "role": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "security_restrictions": {
      +              "items": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "display_name",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "const": "anonymous",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "account",
      +      "organizations",
      +      "credential",
      +      "guidance"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "type": "null"
      +      },
      +      "credential": {
      +        "type": "null"
      +      },
      +      "guidance": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "organizations": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "display_name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "plan": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "resource_groups": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "role": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "name",
      +                  "role"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "role": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "security_restrictions": {
      +              "items": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "display_name",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "status": {
      +        "const": "authentication_unverified",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "account",
      +      "organizations",
      +      "credential",
      +      "guidance"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "oneOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "account": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "is_pro": {
      +              "type": "boolean"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": {
      +              "enum": [
      +                "user",
      +                "org",
      +                "app"
      +              ],
      +              "type": "string"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "type",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "credential": {
      +          "oneOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "created_at": {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +                  "type": "string"
      +                },
      +                "permissions": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "can_read_gated_repos": {
      +                      "type": "boolean"
      +                    },
      +                    "global": {
      +                      "items": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "scoped": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "entity": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "id": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "name": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "type": {
      +                                "enum": [
      +                                  "model",
      +                                  "dataset",
      +                                  "space",
      +                                  "bucket",
      +                                  "kernel",
      +                                  "collection",
      +                                  "org",
      +                                  "user",
      +                                  "resource_group",
      +                                  "oauth_app"
      +                                ],
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "id",
      +                              "type"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "permissions": {
      +                            "items": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            "type": "array"
      +                          },
      +                          "restrictions": {
      +                            "items": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "patterns": {
      +                                  "items": {
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "type": "array"
      +                                },
      +                                "resource_type": {
      +                                  "const": "inference_endpoint",
      +                                  "type": "string"
      +                                }
      +                              },
      +                              "required": [
      +                                "resource_type",
      +                                "patterns"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "type": "array"
      +                          }
      +                        },
      +                        "required": [
      +                          "entity",
      +                          "permissions"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    }
      +                  },
      +                  "required": [
      +                    "scoped"
      +                  ],
      +                  "type": "object"
      +                },
      +                "role": {
      +                  "enum": [
      +                    "read",
      +                    "write",
      +                    "fine_grained"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "personal_access_token",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "role"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "expires_at": {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +                  "type": "string"
      +                },
      +                "scopes": {
      +                  "items": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "type": {
      +                  "const": "oauth",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "entities": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "name": {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      "type": {
      +                        "enum": [
      +                          "model",
      +                          "dataset",
      +                          "space",
      +                          "bucket",
      +                          "kernel",
      +                          "org"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "name"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "role": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "app_token",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "entities"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "expires_at": {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "other",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "organizations": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "display_name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "id": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "plan": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "resource_groups": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "id": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "role": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "name",
      +                    "role"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "role": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "security_restrictions": {
      +                "items": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "display_name",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "status": {
      +          "const": "authenticated",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "account",
      +        "organizations",
      +        "credential"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "account": {
      +          "type": "null"
      +        },
      +        "credential": {
      +          "type": "null"
      +        },
      +        "guidance": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "organizations": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "display_name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "id": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "plan": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "resource_groups": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "id": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "role": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "name",
      +                    "role"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "role": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "security_restrictions": {
      +                "items": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "display_name",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "status": {
      +          "const": "anonymous",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "account",
      +        "organizations",
      +        "credential",
      +        "guidance"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "account": {
      +          "type": "null"
      +        },
      +        "credential": {
      +          "type": "null"
      +        },
      +        "guidance": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "organizations": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "display_name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "id": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "name": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "plan": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "resource_groups": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "id": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "role": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "name",
      +                    "role"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "role": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "security_restrictions": {
      +                "items": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "display_name",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "status": {
      +          "const": "authentication_unverified",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "account",
      +        "organizations",
      +        "credential",
      +        "guidance"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds genuinely useful non-obvious behavior: it will never return credential values, which prevents an agent from expecting secrets/tokens in the response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, with the core purpose front-loaded and the important read-only/credential clarification immediately following. Every phrase earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-parameter, read-only introspection tool with an output schema present, the description is complete. It covers what the call inspects, the read-only safety profile, and the credential-privacy behavior; nothing else is needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema is empty with zero parameters, so parameter semantics are not applicable. The baseline for a zero-parameter tool is 4, and the description does not need to compensate for any parameter documentation gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Inspect') and identifies the resource ('current Hugging Face authentication context'), then enumerates the main outputs: account, visible organization memberships, and credential access details. This clearly differentiates it from the sibling repository/file tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context is clear: use this when the agent needs to determine the current logged-in Hugging Face identity or authentication scope. It doesn't explicitly name alternatives, but none of the siblings overlap in function, so the omission is minor.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources