GitHub 官方工具集 2.3.0:运行结果(公开示例)
数据:tool-definitions:tools.json。93 个工具,入参 565 个字段,出参 2368 个字段(都含嵌套);认出 41 种对象、53 种数据。表全部由命令 python -m toolset_audit.dataflow 生成,只读工具的名称、入参、出参和说明,不调用工具。
这一页怎么读(三步)
- 先看第 0 节体检表:和公认做得好的公开工具集比,哪几项比它们都差;有几个版本时,看哪个版本相对哪个更好、更差。
- 点读数后面的“明细”,跳到那一节,看是哪些工具、哪些入参。
- 每一节依次是:要点(这一节在体检表里的读数)、表(命令算出来的,点开“这张表怎么算的”看算法)、怎么读、分析结论。本页还没有结论:结论由人或模型读表后另写,用
--notes并进来。
0体检表
这张表怎么算的
这次运行的摘要。下面各节每张表的要点各取一个数,按“模型用一个工具要过的六个环节”排在一起,和公认做得好的公开工具集并排;每项读数标了越大越好还是越小越好。
「GitHub 2.3.0(合并后)」和 3 套公开工具集比: 0 项比它们都差,14 项在它们之间,0 项比它们都好;另有 6 项不比。
① 看得到、⑥ 办得成 两个环节待处理,还没有读数;表里写了要量什么。
「GitHub 2.3.0(合并后)」相对「GitHub 0.24.0(合并前)」: 更好 3 项,更差 3 项,相同 3 项,只描述的变了 3 项。更差的:入参字段里嵌在结构里的占比;必填的整块结构有几个;同一个东西只差写法的名字有几组。
| 环节 | 读数 | 方向 | GitHub 2.3.0(合并后) | GitHub 0.24.0(合并前) | 公开范围 | 「GitHub 2.3.0(合并后)」相对公开 | GitHub 合并前 | GitHub 合并后 | Azure | 飞书 | AppWorld | 「GitHub 2.3.0(合并后)」相对「GitHub 0.24.0(合并前)」 | 明细 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 规模 | 工具数 | 只描述 | 93 | 94 | 93–461 | — | 94 | 93 | 461 | 1274 | 457 | 不同 | 第 15 节 |
| 规模 | 入参字段数的第 90 百分位 | 只描述 | 10 | 8 | 7–10 | — | 8 | 10 | 10 | 19 | 7 | 不同 | 第 6 节 |
| ① 看得到 | 还没有读数。要量的是:一次摆到模型面前的工具有多少、定义总共多长、用途相近的工具是不是摆在一起。 | — | — | — | — | 待处理 | — | — | — | — | — | — | — |
| ② 选得对 | 定义相近的工具对,每个工具摊到几对 | 越小越好 | 0.69 | 1.38 | 0.69–8.25 | 在三套之间 | 1.38 | 0.69 | 2.64 | 4.93 | 8.25 | 更好 | 第 15 节 |
| ② 选得对 | 最大的一族有几个工具 | 越小越好 | 4 | 7 | 4–27 | 在三套之间 | 7 | 4 | 12 | 24 | 27 | 更好 | 第 15 节 |
| ② 选得对 | 说明近乎照抄的工具对,每个工具摊到几对 | 越小越好 | 0.11 | 0.19 | 0.11–1.38 | 在三套之间 | 0.19 | 0.11 | 0.17 | 0.61 | 1.38 | 更好 | 第 15 节 |
| ② 选得对 | 出自同一个模板的工具占比 | 越小越好 | 6% | — | 6%–14% | 在两套之间 | — | 6% | — | — | 14% | — | 第 5 节 |
| ③ 填得对 | 没标任何必填的工具占比 | 越小越好 | 6% | 6% | 4%–15% | 在三套之间 | 6% | 6% | 15% | 20% | 4% | 相同 | 第 4 节 |
| ③ 填得对 | 入参字段里嵌在结构里的占比 | 越小越好 | 5% | 0% | 0%–5% | 在三套之间 | 0% | 5% | 0% | 87% | 0% | 更差 | 第 6 节 |
| ③ 填得对 | 必填的整块结构有几个 | 越小越好 | 3 | 2 | 3–9 | 在三套之间 | 2 | 3 | 9 | 1273 | 7 | 更差 | 第 6 节 |
| ③ 填得对 | 同一个东西只差写法的名字有几组 | 越小越好 | 10 | 2 | 0–10 | 在三套之间 | 2 | 10 | 8 | 33 | 0 | 更差 | 第 7 节 |
| ③ 填得对 | 一个名字指两种东西的有几个 | 越小越好 | 0 | 0 | 0–0 | 在三套之间 | 0 | 0 | 0 | 0 | 0 | 相同 | 第 7 节 |
| ③ 填得对 | 同一个东西几种叫法的有几组 | 越小越好 | 0 | 0 | — | — | — | — | — | — | — | 相同 | 第 7 节 |
| ③ 填得对 | 调用报错的占比(要调用记录) | 越小越好 | — | — | — | — | — | — | — | — | — | — | 第 11 节 |
| ④ 读得懂 | 平均每个工具声明了几个返回字段 | 只描述 | 25.46 | 0.00 | 0.23–25.46 | — | 0.00 | 25.46 | 0.23 | 0.00 | 4.11 | 不同 | 第 8 节 |
| ④ 读得懂 | 报错和成功标志有几种写法 | 越小越好 | 8 | — | 6–8 | 在两套之间 | — | 8 | — | — | 6 | — | 第 8 节 |
| ⑤ 接得上 | 第一轮就能调的工具占比 | 越大越好 | 80% | — | 50%–80% | 在两套之间 | — | 80% | — | — | 50% | — | 第 2 节 |
| ⑤ 接得上 | 要先换标识的工具占比 | 越小越好 | 2% | — | 0%–2% | 在两套之间 | — | 2% | — | — | 0% | — | 第 1 节 |
| ⑤ 接得上 | 凑不齐入参的工具有几个 | 越小越好 | 10 | — | 4–10 | 在两套之间 | — | 10 | — | — | 4 | — | 第 2 节 |
| ⑤ 接得上 | 必填的整块结构里,没有工具返回的有几个 | 越小越好 | 1 | — | 1–7 | 在两套之间 | — | 1 | — | — | 7 | — | 第 6 节 |
| ⑤ 接得上 | 调用里只是在换标识的占比(要调用记录) | 越小越好 | — | — | — | — | — | — | — | — | — | — | 第 9 节 |
| ⑥ 办得成 | 还没有读数。要量的是:同一批任务改前改后各跑一遍,任务办成的比例。 | — | — | — | — | 待处理 | — | — | — | — | — | — | — |
入参从哪来数据流图
1工具要哪种写法,给哪种写法
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 要先换标识的工具占比2%公开 0%–2%在两套之间
这张表怎么算的
每一行是一种数据(哪种对象的哪种写法)。“要它的工具”是把它当顶层入参的工具数;“给它的工具”是返回里带它、且不是把入参原样返回的工具数;“说不准”是名称上判断不了是不是原样返回的。
| 对象 | 写法 | 要它的工具 | 给它的工具 | 另有说不准的 | 用户能直接给 |
|---|---|---|---|---|---|
| comment | id | 3 | 2 | 0 | |
| field | name | 3 | 1 | 0 | 是 |
| ghsa | id | 2 | 4 | 0 | |
| run | id | 2 | 2 | 0 | |
| view | id | 2 | 1 | 0 | |
| gist | id | 2 | 0 | 0 | |
| item | id | 2 | 0 | 0 | |
| notification | id | 2 | 0 | 0 | |
| resource | id | 2 | 0 | 0 | |
| thread | id | 2 | 0 | 0 | |
| cve | id | 1 | 5 | 0 | |
| field | id | 1 | 3 | 0 | |
| repository | name | 1 | 3 | 0 | 是 |
| job | id | 1 | 2 | 0 | |
| node | id | 1 | 2 | 0 | |
| statusupdate | id | 1 | 2 | 0 | |
| workflow | id | 1 | 2 | 0 | |
| ruleset | id | 1 | 1 | 0 | |
| subissue | id | 1 | 1 | 0 | |
| actor | name | 1 | 0 | 0 | 是 |
| after | id | 1 | 0 | 0 | |
| before | id | 1 | 0 | 0 | |
| commit | id | 1 | 0 | 0 | |
| new | name | 1 | 0 | 0 | 是 |
2凑齐入参要先调几轮
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 第一轮就能调的工具占比80%公开 50%–80%在两套之间
- 凑不齐入参的工具有几个10公开 4–10在两套之间
这张表怎么算的
第 1 轮可调:只凭用户给的信息就能凑齐必填入参。第 k 轮:至少要先调 k−1 轮别的工具。按类型推算,是下界,实际只会更多。四种读法是两处拿不准的地方各取两种假设:名称上说不准的返回算不算来源(严格不算),用户一开始能给什么(宽:名称和 IP 一类都能给;窄:只有工单里通常带的)。
| 读法 | 第 1 轮可调 | 第 2 轮可调 | 第 3 轮可调 | 不可达 |
|---|---|---|---|---|
| 严格/起点宽 | 74 | 9 | 0 | 10 |
| 严格/起点窄 | 68 | 11 | 2 | 12 |
| 宽松/起点宽 | 74 | 9 | 0 | 10 |
| 宽松/起点窄 | 68 | 11 | 2 | 12 |
主读法(严格/起点宽)下,80% 的工具第 1 轮可调,2% 的工具前置链里有只换标识的工具。
哪些前置步骤是很多工具共用的。
| 先要调的换标识步骤 | 共用它的工具 | 收进 driver 后少调的次数 |
|---|---|---|
projects_get | 1 | 1 |
repository_ruleset_read | 1 | 1 |
前置链最长的工具。
(无)
3只有一个来源的数据
这张表怎么算的
把一个工具从目录里拿掉,重算可达。“再也凑不齐入参的工具”是因此不可达的工具数。
| 拿掉的工具 | 再也凑不齐入参的工具 | 受影响的工具 | 四种读法下都成立 |
|---|---|---|---|
issue_read | 1 | 1 | 是 |
repository_ruleset_read | 1 | 1 | 是 |
没有任何工具给出、用户也给不了的必填入参。
| 需要的数据 | 需要它的工具 | 四种读法下都成立 |
|---|---|---|
| commit 的 id | pull_request_review_write | 是 |
| gist 的 id | get_gist、update_gist | 是 |
| job 的 id | get_job_logs | 是 |
| notification 的 id | get_notification_details、manage_notification_subscription | 是 |
| resource 的 id | actions_get、actions_list | 是 |
| run 的 id | actions_run_trigger、get_job_logs | 是 |
| thread 的 id | dismiss_notification、pull_request_review_write | 是 |
| workflow 的 id | actions_run_trigger | 是 |
这一节没有要点读数,也还没有结论;切回“全部展开”看表。
定义本身契约面检查
4必填标记
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 没标任何必填的工具占比6%公开 4%–15%在三套之间
这张表怎么算的
直接数契约里的必填标记。
| 工具数 | |
|---|---|
| 有入参 | 92 |
| 没有标任何必填 | 6 |
| 其中有两个以上顶层入参 | 5 |
| 其中说明文字里写了约束(必须、任选、至少……) | 1 |
没标必填且有两个以上入参的工具:list_gists、list_global_security_advisories、list_notifications、list_starred_repositories、mark_all_notifications_read。
同一个入参名,在不同工具里标法是否一致。
| 入参名 | 标了必填的工具 | 没标的工具 |
|---|---|---|
owner | 63 | 10 |
repo | 56 | 14 |
state | 1 | 12 |
body | 2 | 8 |
query | 7 | 1 |
pullNumber | 6 | 1 |
issue_number | 4 | 2 |
org | 2 | 4 |
branch | 4 | 1 |
name | 4 | 1 |
path | 3 | 2 |
sha | 1 | 3 |
5入参相同、返回大半相同的工具
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 出自同一个模板的工具占比6%公开 6%–14%在两套之间
这张表怎么算的
入参名完全相同、返回字段(不算各工具都带的结果包装)两两重合六成以上的工具连成一组。“共有”是每个成员都返回的字段数;“合并后”是把全组并成一个工具要返回的字段数;“都调一遍的重复占比”= 1 − 合并后字段数 ÷ 各成员字段数之和。
| 组 | 成员 | 工具数 | 相同的入参 | 共有/合并后的返回字段 | 各成员独有字段数 | 都调一遍的重复占比 |
|---|---|---|---|---|---|---|
| 1 | list_branches 等 | 2 | owner、page、perPage、repo | 2 / 3 | 0–1 | 40% |
| 2 | search_issues 等 | 2 | fields、order、owner、page、perPage、query、repo、sort | 64 / 64 | 0–0 | 50% |
| 3 | search_orgs 等 | 2 | order、page、perPage、query、sort | 24 / 24 | 0–0 | 50% |
每组的成员,和各自独有的返回字段
| 组 | 工具 | 只有它返回的字段 |
|---|---|---|
| 1 | list_branches | result[].protected |
| 1 | list_tags | (没有) |
| 2 | search_issues | (没有) |
| 2 | search_pull_requests | (没有) |
| 3 | search_orgs | (没有) |
| 3 | search_users | (没有) |
6整块入参与入参规模
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 入参字段数的第 90 百分位10只描述,公开 7–10不比
- 入参字段里嵌在结构里的占比5%公开 0%–5%在三套之间
- 必填的整块结构有几个3公开 3–9在三套之间
- 必填的整块结构里,没有工具返回的有几个1公开 1–7在两套之间
这张表怎么算的
必填的整块入参:类型是对象或数组、里面没有可以单独认出的标识的入参。“有同名返回的工具”是目录里返回同名结构的工具数。
| 工具 | 入参 | 叶子字段数 | 有同名返回的工具 |
|---|---|---|---|
create_repository_ruleset | rules | 1 | 1 |
custom_properties_write | properties | 2 | 0 |
push_files | files | 2 | 4 |
入参规模。每个工具的入参字段数(含嵌套):中位数 5,九成的工具不超过 10,最大 32;5% 的入参字段在嵌套结构里。
| 入参字段最多的工具 | 字段数 |
|---|---|
projects_write | 32 |
issue_write | 21 |
repository_ruleset_read | 18 |
create_repository_ruleset | 16 |
actions_list | 13 |
list_issues | 13 |
list_global_security_advisories | 11 |
add_comment_to_pending_review | 10 |
list_commits | 10 |
list_pull_requests | 10 |
7命名
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 同一个东西只差写法的名字有几组10公开 0–10在三套之间
- 一个名字指两种东西的有几个0公开 0–0在三套之间
- 同一个东西几种叫法的有几组0公开工具集没有这项不比
名字和说明对不上。参数名以一种写法结尾,说明里写的是另一种。
(无)
一个名字指两种东西。
(无)
同一种东西有几个名字。共 0 组。
展开
(无)
只差大小写的名字。共 10 组:+1/-1;commentId/comment_id;createdAt/created_at;cveId/cve_id;ghsaId/ghsa_id;lastReadAt/last_read_at;startLine/start_line;statusUpdates/status_updates;threadID/threadId;totalCount/total_count。
8报错与成功标志的写法
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 平均每个工具声明了几个返回字段25.46只描述,公开 0.23–25.46不比
- 报错和成功标志有几种写法8公开 6–8在两套之间
这张表怎么算的
每个工具返回的顶层字段里,哪些是报错、成功标志或包装字段;按组合计数。
| 顶层的报错/成功/包装字段 | 工具数 |
|---|---|
| (都没有) | 44 |
result | 18 |
message | 14 |
items | 9 |
body | 4 |
content | 2 |
values | 1 |
status | 1 |
实际怎么用调用记录
9实际调用里换标识占多少
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 调用里只是在换标识的占比(要调用记录)—公开工具集没有这项不比
没有给调用记录(--calls),这一节和上面同模板一节的第二张表为空。最少只需要每次运行按顺序调了哪些工具;带上入参、报错和返回,后面三节才有内容。
10同一个工具连着调
这一节需要带入参、报错和返回的调用记录(--calls 的第二种格式);现在给的记录只有工具名,或者没有给记录。
这一节没有要点读数,也还没有结论;切回“全部展开”看表。
11调用失败集中在哪
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 调用报错的占比(要调用记录)—公开工具集没有这项不比
这一节需要带入参、报错和返回的调用记录(--calls 的第二种格式);现在给的记录只有工具名,或者没有给记录。
12入参里的标识值从哪来
这一节需要带入参、报错和返回的调用记录(--calls 的第二种格式);现在给的记录只有工具名,或者没有给记录。
这一节没有要点读数,也还没有结论;切回“全部展开”看表。
13另外三种读法
没有给调用记录(--calls)。
这一节没有要点读数,也还没有结论;切回“全部展开”看表。
14假设清单
没有给调用记录(--calls),假设无从检验。
这一节没有要点读数,也还没有结论;切回“全部展开”看表。
工具之间像不像相似分析
15相像的工具
要点「GitHub 2.3.0(合并后)」的体检表读数,和下面的表是同一个版本
- 工具数93只描述,公开 93–461不比
- 定义相近的工具对,每个工具摊到几对0.69公开 0.69–8.25在三套之间
- 最大的一族有几个工具4公开 4–27在三套之间
- 说明近乎照抄的工具对,每个工具摊到几对0.11公开 0.11–1.38在三套之间
先自己看。这一节算出来的分,都在同一个输出目录的 similar.html 里,不带结论:空间图把全部工具摆在一张图上,相近的挨在一起,可以换用哪个分来摆;另有按族看(每一族内部两两的分)和按工具看(它和谁最相近)。下面的表是同一份数据的汇总。
和公开工具集并排。
这张表怎么算的
同一个命令、同一条线(“字面带入参”分不低于 0.25)在五套公开工具集上跑过,这张表把这套工具的数和它们并排放。GitHub 合并前:GitHub 官方 MCP 服务 0.24.0 版,维护者动手合并 Actions 和 Projects 两组工具之前。GitHub 合并后:同一个服务 2.3.0 版,合并之后。Azure:Azure MCP Server,全部 461 个工具都摆出的摆法。飞书:飞书官方 MCP 服务的英文定义,由接口文档直接生成。AppWorld:AppWorld,9 个模拟应用的接口。各行里,“相近”是两个工具的名字、说明、入参合起来的文字相近,过了默认的那条线,也就是下面说的“合并候选”;“一族”是一组工具,其中任意两个都相近;“分组”是 --groups 给的分组。没给分组时最后三行是“—”,没有向量时最后一行是“—”。
| 这套工具 | GitHub 合并前 | GitHub 合并后 | Azure | 飞书 | AppWorld | |
|---|---|---|---|---|---|---|
| 工具数 | 93 | 94 | 93 | 461 | 1274 | 457 |
| 相近的工具对,平均每个工具摊到几对 | 0.7 | 1.4 | 0.7 | 2.6 | 4.9 | 8.2 |
| 一个相近的工具都没有的工具占多少 | 31% | 22% | 31% | 11% | 3% | 2% |
| 有 6 个以上相近工具的工具占多少 | 0% | 20% | 0% | 34% | 65% | 84% |
| 相近的工具能归成几族 | 26 | 26 | 26 | 124 | 288 | 86 |
| 最大的一族有几个工具 | 4 | 7 | 4 | 12 | 24 | 27 |
| 说明几乎照抄的工具对,平均每个工具摊到几对 | 0.11 | 0.19 | 0.11 | 0.17 | 0.61 | 1.38 |
| 随便取两个工具,同在一个分组里的可能性 | — | 9% | 8% | 5% | 7% | 13% |
| 相近的两个工具,同在一个分组里的占多少 | — | 86% | 64% | 97% | 88% | 44% |
| 用途可能重叠的两个工具,同在一个分组里的占多少 | — | 75% | 83% | 84% | 84% | 89% |
这张表怎么算的
93 个工具两两成对,共 4278 对,每对按几个角度各打一个 0 到 1 的分。“字面”:工具名加模型看到的说明,拆成相邻的 3、4、5 个字符一组的小片段;到处都出现的片段不算数,只在少数说明里出现的片段分量重;两段文字共有的片段越多,分越高。“字面带入参”:同样的算法,文字里再加每个顶层入参的名字和说明。“入参名重合”:两个工具的顶层入参名,两边都有的个数 ÷ 两边合起来的个数;名字要一字不差,大小写不同也算不同;两个工具都没有入参时记 0。“做的事”:不看文字,只看要什么数据(顶层入参)、给什么数据(返回字段,去掉各工具都带的结果包装);认得出的标识按“哪种对象的哪种写法”比,名字不同、要的是同一种数据也算相同。要的、给的各算一个重合比例,相乘再开方;有一个工具没声明返回时这个分空着。“向量”:用向量模型算的意思相近程度,向量按 texts.json 里的文字算:给了 --embed 就由命令用指定的模型当场算,也可以用 --vectors 传算好的向量文件。最后一列:入参相同、返回大半相同的工具(第 5 节的组)两两成对,共 3 对;这些对的分排在其他对前面的概率,0.5 等于随便排,1 等于全都排在前面。
| 分 | 有这个分的对 | 中位数 | 九成的对不超过 | 99% 的对不超过 | 99.9% 的对不超过 | 最高 | 同模板的对排在前面的概率 |
|---|---|---|---|---|---|---|---|
| 字面 | 4278 | 0.02 | 0.08 | 0.33 | 0.71 | 0.84 | 0.96 |
| 字面带入参 | 4278 | 0.03 | 0.09 | 0.30 | 0.60 | 0.81 | 1.00 |
| 入参名重合 | 4278 | 0.17 | 0.40 | 0.75 | 1.00 | 1.00 | 1.00 |
| 做的事 | 4278 | 0.00 | 0.18 | 0.51 | 0.85 | 1.00 | 1.00 |
| 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 4278 | 0.76 | 0.83 | 0.91 | 0.95 | 0.98 | 0.98 |
几个分排出来的名次一致吗。名次相关是 1 时两个分把工具对排成完全一样的先后,是 0 时毫无关系。
| 两个分 | 两个分都有的对 | 名次相关 |
|---|---|---|
| 字面 和 字面带入参 | 4278 | 0.62 |
| 字面 和 入参名重合 | 4278 | 0.16 |
| 字面 和 做的事 | 4278 | 0.24 |
| 字面 和 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 4278 | 0.43 |
| 字面带入参 和 入参名重合 | 4278 | 0.25 |
| 字面带入参 和 做的事 | 4278 | 0.41 |
| 字面带入参 和 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 4278 | 0.42 |
| 入参名重合 和 做的事 | 4278 | 0.52 |
| 入参名重合 和 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 4278 | 0.27 |
| 做的事 和 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 4278 | 0.32 |
这张表怎么算的
合并候选(定义相近):“字面带入参”分不低于 0.25 的工具对,共 64 对,平均每个工具 0.69 对,按这个分从高到低列出。后面几列帮着解释:“入参名重合”看两边要的参数是不是同名,“做的事”看要的、给的数据是不是同一种,“同组”为 1 是两个工具在同一个分组里。
合并候选:64 对
| 工具 | 工具 | 字面带入参 | 入参名重合 | 做的事 | 向量 ibm-granite/granite-embedding-97m-multilingual-r2 |
|---|---|---|---|---|---|
manage_notification_subscription | manage_repository_notification_subscription | 0.81 | 0.25 | 0.50 | 0.94 |
list_org_repository_security_advisories | list_repository_security_advisories | 0.80 | 0.50 | 0.71 | 0.98 |
custom_properties_read | custom_properties_write | 0.77 | 0.83 | 0.87 | 0.94 |
create_pull_request | update_pull_request | 0.62 | 0.73 | 0.85 | 0.94 |
star_repository | unstar_repository | 0.60 | 1.00 | 0.00 | 0.94 |
search_issues | search_pull_requests | 0.59 | 1.00 | 1.00 | 0.86 |
actions_get | actions_list | 0.58 | 0.50 | 0.61 | 0.94 |
projects_get | projects_list | 0.56 | 0.43 | 0.62 | 0.94 |
get_code_scanning_alert | get_secret_scanning_alert | 0.55 | 0.75 | 0.49 | 0.93 |
list_discussion_categories | list_discussions | 0.55 | 0.29 | 0.32 | 0.93 |
get_code_scanning_alert | get_dependabot_alert | 0.54 | 1.00 | 0.53 | 0.87 |
list_issue_fields | list_issue_types | 0.52 | 1.00 | 0.67 | 0.91 |
get_dependabot_alert | list_dependabot_alerts | 0.52 | 0.29 | 0.48 | 0.97 |
update_code_scanning_alert | update_dependabot_alert | 0.51 | 0.88 | 0.85 | 0.89 |
get_secret_scanning_alert | list_secret_scanning_alerts | 0.51 | 0.33 | 0.58 | 0.96 |
list_pull_requests | list_releases | 0.48 | 0.50 | 0.52 | 0.88 |
add_issue_comment | add_reply_to_pull_request_comment | 0.48 | 0.50 | 0.85 | 0.90 |
create_gist | update_gist | 0.46 | 0.60 | 0.77 | 0.90 |
get_code_scanning_alert | list_code_scanning_alerts | 0.44 | 0.22 | 0.47 | 0.96 |
list_branches | list_tags | 0.44 | 1.00 | 0.82 | 0.89 |
list_pull_requests | search_pull_requests | 0.43 | 0.50 | 0.48 | 0.93 |
merge_pull_request | update_pull_request_branch | 0.42 | 0.57 | 0.00 | 0.87 |
list_code_scanning_alerts | list_dependabot_alerts | 0.42 | 0.56 | 0.37 | 0.89 |
list_releases | search_pull_requests | 0.41 | 0.62 | 0.52 | 0.84 |
get_team_members | get_teams | 0.40 | 0.00 | 0.00 | 0.93 |
get_release_by_tag | get_tag | 0.39 | 1.00 | 0.00 | 0.93 |
create_repository_ruleset | repository_ruleset_read | 0.39 | 0.21 | 0.33 | 0.89 |
get_global_security_advisory | list_global_security_advisories | 0.39 | 0.09 | 0.30 | 0.95 |
get_dependabot_alert | get_secret_scanning_alert | 0.36 | 0.75 | 0.27 | 0.85 |
create_repository_ruleset | custom_properties_read | 0.35 | 0.45 | 0.00 | 0.79 |
list_discussions | list_issues | 0.35 | 0.50 | 0.35 | 0.84 |
get_global_security_advisory | list_repository_security_advisories | 0.34 | 0.00 | 0.00 | 0.85 |
projects_get | projects_write | 0.34 | 0.20 | 0.40 | 0.87 |
list_issues | list_releases | 0.34 | 0.33 | 0.44 | 0.85 |
search_orgs | search_users | 0.33 | 1.00 | 1.00 | 0.90 |
list_releases | search_issues | 0.33 | 0.62 | 0.52 | 0.72 |
get_discussion | get_discussion_comments | 0.33 | 0.50 | 0.00 | 0.92 |
list_issues | list_label | 0.32 | 0.36 | 0.25 | 0.90 |
list_issues | list_pull_requests | 0.32 | 0.40 | 0.46 | 0.86 |
add_issue_comment | update_issue_comment | 0.32 | 0.67 | 0.82 | 0.93 |
custom_properties_read | repository_ruleset_read | 0.32 | 0.28 | 0.12 | 0.88 |
get_global_security_advisory | list_org_repository_security_advisories | 0.31 | 0.00 | 0.00 | 0.87 |
get_discussion | list_discussion_categories | 0.30 | 0.67 | 0.22 | 0.87 |
get_gist | update_gist | 0.30 | 0.25 | 0.14 | 0.88 |
create_repository_ruleset | custom_properties_write | 0.29 | 0.42 | 0.00 | 0.82 |
get_code_quality_finding | get_code_scanning_alert | 0.29 | 0.50 | 0.48 | 0.84 |
list_pull_requests | search_issues | 0.29 | 0.50 | 0.48 | 0.77 |
actions_get | actions_run_trigger | 0.29 | 0.38 | 0.19 | 0.86 |
list_code_scanning_alerts | list_secret_scanning_alerts | 0.29 | 0.45 | 0.38 | 0.93 |
get_latest_release | list_releases | 0.29 | 0.40 | 0.62 | 0.88 |
get_discussion_comments | list_discussions | 0.28 | 0.44 | 0.36 | 0.89 |
get_latest_release | get_release_by_tag | 0.28 | 0.67 | 0.82 | 0.89 |
dismiss_notification | manage_notification_subscription | 0.28 | 0.00 | 0.00 | 0.84 |
list_issues | search_pull_requests | 0.28 | 0.27 | 0.36 | 0.86 |
search_code | search_commits | 0.27 | 0.83 | 0.28 | 0.88 |
get_discussion | list_discussions | 0.27 | 0.25 | 0.21 | 0.88 |
custom_properties_write | repository_ruleset_read | 0.27 | 0.26 | 0.11 | 0.83 |
search_code | search_pull_requests | 0.27 | 0.75 | 0.19 | 0.86 |
projects_list | projects_write | 0.26 | 0.12 | 0.31 | 0.90 |
update_code_scanning_alert | update_secret_scanning_alert | 0.26 | 0.33 | 0.38 | 0.91 |
actions_list | actions_run_trigger | 0.26 | 0.25 | 0.16 | 0.90 |
get_secret_scanning_alert | list_code_scanning_alerts | 0.25 | 0.20 | 0.25 | 0.89 |
delete_file | push_files | 0.25 | 0.67 | 0.27 | 0.82 |
search_code | search_issues | 0.25 | 0.75 | 0.19 | 0.82 |
这张表怎么算的
工具族:把上一张表里成对的合并候选归成族,族里任意两个工具都互为合并候选,共 26 族、58 个工具。归法是从最像的一对开始往一起并,只要并进来以后族里还有哪两个工具不是合并候选,就不并。如果每一族各并成一个工具,93 个工具会变成 61 个;这是能并掉多少的上限,不是建议。“各自不同的部分”是每个工具名去掉相同部分以后剩下的词。给了调用记录(--calls),这张表会多出四列,说明每一族是不是成套调用的。
| 族号 | 名字里相同的部分 | 工具数 | 各自不同的部分 | 共有的入参 | 族内最低的分 |
|---|---|---|---|---|---|
| 1 | — | 4 | create_repository_ruleset、custom_properties_read、custom_properties_write、repository_ruleset_read | enterprise、level、org、owner、repo | 0.27 |
| 2 | — | 4 | list_pull_requests、list_releases、search_issues、search_pull_requests | fields、owner、page、perPage、repo | 0.29 |
| 3 | actions | 3 | get、list、run_trigger | method、owner、repo | 0.26 |
| 4 | projects | 3 | get、list、write | method、owner、owner_type、project_number | 0.26 |
| 5 | add_comment | 2 | issue、reply_to_pull_request | body、owner、reaction、repo | 0.48 |
| 6 | gist | 2 | create、update | content、description、filename | 0.46 |
| 7 | pull_request | 2 | create、update | base、body、draft、maintainer_can_modify、owner、repo、reviewers、title | 0.62 |
| 8 | — | 2 | delete_file、push_files | branch、message、owner、repo | 0.25 |
| 9 | get_scanning_alert | 2 | code、secret | alertNumber、owner、repo | 0.55 |
| 10 | dependabot | 2 | get_alert、list_alerts | owner、repo | 0.52 |
| 11 | get_discussion | 2 | get_discussion、comments | discussionNumber、owner、repo | 0.33 |
| 12 | global_security | 2 | get_advisory、list_advisories | ghsaId | 0.39 |
| 13 | get_tag | 2 | release_by、get_tag | owner、repo、tag | 0.39 |
| 14 | get | 2 | team_members、teams | — | 0.40 |
| 15 | list | 2 | branches、tags | owner、page、perPage、repo | 0.44 |
| 16 | list_scanning_alerts | 2 | code、secret | owner、page、perPage、repo、state | 0.29 |
| 17 | list | 2 | discussion_categories、discussions | owner、repo | 0.55 |
| 18 | list_issue | 2 | fields、types | owner、repo | 0.52 |
| 19 | list | 2 | issues、label | after、owner、perPage、repo | 0.32 |
| 20 | list_repository_security_advisories | 2 | org、list_repository_security_advisories | direction、sort、state | 0.80 |
| 21 | manage_notification_subscription | 2 | manage_notification_subscription、repository | action | 0.81 |
| 22 | pull_request | 2 | merge、update_branch | expectedHeadSha、owner、pullNumber、repo | 0.42 |
| 23 | search | 2 | code、commits | order、page、perPage、query、sort | 0.27 |
| 24 | search | 2 | orgs、users | order、page、perPage、query、sort | 0.33 |
| 25 | repository | 2 | star、unstar | owner、repo | 0.60 |
| 26 | update_alert | 2 | code_scanning、dependabot | alertNumber、assignees、dismissed_comment、dismissed_reason、owner、repo、state | 0.51 |
这张表怎么算的
说明近乎照抄的对:只比工具名和说明、不带入参的“字面”分不低于 0.6 的工具对,共 10 对,按这个分从高到低列出。
说明近乎照抄的对:10 对
| 工具 | 工具 | 字面 | 字面带入参 | 入参名重合 | 做的事 | 向量 ibm-granite/granite-embedding-97m-multilingual-r2 |
|---|---|---|---|---|---|---|
list_org_repository_security_advisories | list_repository_security_advisories | 0.84 | 0.80 | 0.50 | 0.71 | 0.98 |
manage_notification_subscription | manage_repository_notification_subscription | 0.81 | 0.81 | 0.25 | 0.50 | 0.94 |
get_global_security_advisory | list_global_security_advisories | 0.75 | 0.39 | 0.09 | 0.30 | 0.95 |
get_dependabot_alert | list_dependabot_alerts | 0.71 | 0.52 | 0.29 | 0.48 | 0.97 |
get_secret_scanning_alert | list_secret_scanning_alerts | 0.71 | 0.51 | 0.33 | 0.58 | 0.96 |
get_code_scanning_alert | list_code_scanning_alerts | 0.69 | 0.44 | 0.22 | 0.47 | 0.96 |
get_code_scanning_alert | get_secret_scanning_alert | 0.64 | 0.55 | 0.75 | 0.49 | 0.93 |
list_global_security_advisories | list_repository_security_advisories | 0.62 | 0.23 | 0.00 | 0.00 | 0.92 |
list_code_scanning_alerts | list_secret_scanning_alerts | 0.61 | 0.29 | 0.45 | 0.38 | 0.93 |
list_issues | list_label | 0.61 | 0.32 | 0.36 | 0.25 | 0.90 |
这张表怎么算的
用途可能重叠的对:每个向量模型都说像、却不是合并候选的工具对,共 36 对。向量说的“像”不用固定的分数线:合并候选有 64 对,每个向量模型也取它最像的 64 对(同分的一起算进来);有几个向量文件,就要求几个都说像。
| 工具 | 工具 | 字面带入参 | 入参名重合 | 做的事 | 向量 ibm-granite/granite-embedding-97m-multilingual-r2 |
|---|---|---|---|---|---|
get_secret_scanning_alert | update_secret_scanning_alert | 0.19 | 0.33 | 0.26 | 0.94 |
merge_pull_request | update_pull_request | 0.12 | 0.21 | 0.00 | 0.93 |
issue_write | sub_issue_write | 0.17 | 0.19 | 0.13 | 0.93 |
get_dependabot_alert | update_dependabot_alert | 0.25 | 0.43 | 0.34 | 0.93 |
list_secret_scanning_alerts | update_secret_scanning_alert | 0.22 | 0.33 | 0.26 | 0.93 |
update_pull_request | update_pull_request_branch | 0.18 | 0.27 | 0.00 | 0.93 |
list_dependabot_alerts | update_dependabot_alert | 0.21 | 0.30 | 0.26 | 0.93 |
issue_read | issue_write | 0.14 | 0.21 | 0.12 | 0.92 |
list_global_security_advisories | list_repository_security_advisories | 0.23 | 0.00 | 0.00 | 0.92 |
create_pull_request | merge_pull_request | 0.14 | 0.14 | 0.00 | 0.92 |
list_global_security_advisories | list_org_repository_security_advisories | 0.21 | 0.00 | 0.00 | 0.92 |
get_code_scanning_alert | update_code_scanning_alert | 0.17 | 0.38 | 0.27 | 0.92 |
create_repository | fork_repository | 0.23 | 0.14 | 0.38 | 0.92 |
pull_request_read | update_pull_request | 0.10 | 0.21 | 0.10 | 0.92 |
search_commits | search_repositories | 0.14 | 0.83 | 0.35 | 0.91 |
create_branch | create_repository | 0.07 | 0.00 | 0.00 | 0.91 |
get_tag | list_tags | 0.19 | 0.40 | 0.32 | 0.91 |
delete_file | delete_repository | 0.20 | 0.40 | 0.00 | 0.91 |
list_code_scanning_alerts | update_code_scanning_alert | 0.14 | 0.23 | 0.21 | 0.91 |
search_orgs | search_repositories | 0.24 | 0.83 | 0.31 | 0.91 |
search_repositories | search_users | 0.21 | 0.83 | 0.31 | 0.91 |
list_branches | list_commits | 0.13 | 0.40 | 0.18 | 0.91 |
list_pull_requests | pull_request_read | 0.12 | 0.31 | 0.55 | 0.90 |
create_pull_request | create_repository | 0.07 | 0.00 | 0.00 | 0.90 |
search_pull_requests | search_repositories | 0.19 | 0.56 | 0.22 | 0.90 |
create_pull_request | pull_request_read | 0.09 | 0.14 | 0.08 | 0.90 |
create_gist | get_gist | 0.21 | 0.00 | 0.00 | 0.90 |
get_notification_details | list_notifications | 0.20 | 0.00 | 0.00 | 0.90 |
get_commit | search_commits | 0.08 | 0.22 | 0.44 | 0.90 |
delete_repository | fork_repository | 0.07 | 0.67 | 0.00 | 0.90 |
list_branches | list_releases | 0.24 | 0.80 | 0.17 | 0.90 |
get_commit | get_tag | 0.08 | 0.29 | 0.09 | 0.90 |
list_pull_requests | update_pull_request | 0.11 | 0.25 | 0.11 | 0.90 |
pull_request_read | search_pull_requests | 0.12 | 0.36 | 0.41 | 0.90 |
get_code_scanning_alert | list_secret_scanning_alerts | 0.21 | 0.22 | 0.27 | 0.90 |
fork_repository | star_repository | 0.05 | 0.67 | 0.00 | 0.89 |
这张表怎么算的
每个工具最像的另一个工具:每个工具找出字面分最高的另一个工具,按这个分从高到低排,列出前 30 个;“其次”是第二、第三像的。全部工具的最近三个在 results.json 的 similarity.nearest 里。
| 工具 | 最像的工具 | 字面 | 字面带入参 | 入参名重合 | 做的事 | 向量 ibm-granite/granite-embedding-97m-multilingual-r2 | 其次 |
|---|---|---|---|---|---|---|---|
list_org_repository_security_advisories | list_repository_security_advisories | 0.84 | 0.80 | 0.50 | 0.71 | 0.98 | list_global_security_advisories 0.54、get_global_security_advisory 0.43 |
list_repository_security_advisories | list_org_repository_security_advisories | 0.84 | 0.80 | 0.50 | 0.71 | 0.98 | list_global_security_advisories 0.62、get_global_security_advisory 0.49 |
manage_notification_subscription | manage_repository_notification_subscription | 0.81 | 0.81 | 0.25 | 0.50 | 0.94 | dismiss_notification 0.21、mark_all_notifications_read 0.20 |
manage_repository_notification_subscription | manage_notification_subscription | 0.81 | 0.81 | 0.25 | 0.50 | 0.94 | mark_all_notifications_read 0.19、get_notification_details 0.18 |
get_global_security_advisory | list_global_security_advisories | 0.75 | 0.39 | 0.09 | 0.30 | 0.95 | list_repository_security_advisories 0.49、list_org_repository_security_advisories 0.43 |
list_global_security_advisories | get_global_security_advisory | 0.75 | 0.39 | 0.09 | 0.30 | 0.95 | list_repository_security_advisories 0.62、list_org_repository_security_advisories 0.54 |
get_dependabot_alert | list_dependabot_alerts | 0.71 | 0.52 | 0.29 | 0.48 | 0.97 | get_code_scanning_alert 0.37、get_secret_scanning_alert 0.33 |
list_dependabot_alerts | get_dependabot_alert | 0.71 | 0.52 | 0.29 | 0.48 | 0.97 | list_code_scanning_alerts 0.29、update_dependabot_alert 0.28 |
get_secret_scanning_alert | list_secret_scanning_alerts | 0.71 | 0.51 | 0.33 | 0.58 | 0.96 | get_code_scanning_alert 0.64、list_code_scanning_alerts 0.41 |
list_secret_scanning_alerts | get_secret_scanning_alert | 0.71 | 0.51 | 0.33 | 0.58 | 0.96 | list_code_scanning_alerts 0.61、get_code_scanning_alert 0.42 |
get_code_scanning_alert | list_code_scanning_alerts | 0.69 | 0.44 | 0.22 | 0.47 | 0.96 | get_secret_scanning_alert 0.64、list_secret_scanning_alerts 0.42 |
list_code_scanning_alerts | get_code_scanning_alert | 0.69 | 0.44 | 0.22 | 0.47 | 0.96 | list_secret_scanning_alerts 0.61、get_secret_scanning_alert 0.41 |
list_issues | list_label | 0.61 | 0.32 | 0.36 | 0.25 | 0.90 | list_repository_collaborators 0.13、repository_ruleset_read 0.09 |
list_label | list_issues | 0.61 | 0.32 | 0.36 | 0.25 | 0.90 | get_label 0.21、label_write 0.14 |
get_team_members | get_teams | 0.60 | 0.40 | 0.00 | 0.00 | 0.93 | search_users 0.15、search_orgs 0.09 |
get_teams | get_team_members | 0.60 | 0.40 | 0.00 | 0.00 | 0.93 | get_me 0.10、search_orgs 0.10 |
custom_properties_read | custom_properties_write | 0.57 | 0.77 | 0.83 | 0.87 | 0.94 | repository_ruleset_read 0.42、create_repository_ruleset 0.29 |
custom_properties_write | custom_properties_read | 0.57 | 0.77 | 0.83 | 0.87 | 0.94 | repository_ruleset_read 0.32、create_repository_ruleset 0.24 |
star_repository | unstar_repository | 0.56 | 0.60 | 1.00 | 0.00 | 0.94 | list_starred_repositories 0.15、list_repository_security_advisories 0.10 |
unstar_repository | star_repository | 0.56 | 0.60 | 1.00 | 0.00 | 0.94 | list_starred_repositories 0.09、list_repository_security_advisories 0.05 |
list_discussion_categories | list_discussions | 0.53 | 0.55 | 0.29 | 0.32 | 0.93 | get_discussion 0.29、get_discussion_comments 0.27 |
list_discussions | list_discussion_categories | 0.53 | 0.55 | 0.29 | 0.32 | 0.93 | get_discussion 0.44、get_discussion_comments 0.39 |
actions_get | projects_get | 0.53 | 0.21 | 0.17 | 0.14 | 0.88 | actions_list 0.51、get_tag 0.23 |
projects_get | actions_get | 0.53 | 0.21 | 0.17 | 0.14 | 0.88 | projects_list 0.43、projects_write 0.25 |
create_repository | fork_repository | 0.52 | 0.23 | 0.14 | 0.38 | 0.92 | create_gist 0.30、create_repository_ruleset 0.21 |
fork_repository | create_repository | 0.52 | 0.23 | 0.14 | 0.38 | 0.92 | get_team_members 0.08、list_org_repository_security_advisories 0.08 |
create_pull_request | update_pull_request | 0.52 | 0.62 | 0.73 | 0.85 | 0.94 | merge_pull_request 0.38、create_gist 0.36 |
update_pull_request | create_pull_request | 0.52 | 0.62 | 0.73 | 0.85 | 0.94 | update_gist 0.48、merge_pull_request 0.36 |
actions_list | actions_get | 0.51 | 0.58 | 0.50 | 0.61 | 0.94 | actions_run_trigger 0.32、projects_list 0.30 |
create_repository_ruleset | repository_ruleset_read | 0.49 | 0.39 | 0.21 | 0.33 | 0.89 | custom_properties_read 0.29、custom_properties_write 0.24 |
按组看。没有给分组文件,这张表为空。要这张表,用 --groups 传一个 JSON:组名对工具名列表。任何来源的分组(厂商的工具组、服务名、技能的揭示清单等)都可以写成这种形式。
这份分析可靠吗
16这份分析自己有多可靠
分析自己报的盲区。返回了标识、有必填入参、入参里却一个标识都没认出来的工具。多半是入参没认出来,要读说明后写进覆盖表。
| 工具 | 待复核的入参 |
|---|---|
custom_properties_read | level |
get_dependabot_alert | alertNumber、owner、repo |
get_discussion_comments | discussionNumber、owner、repo |
get_latest_release | owner、repo |
get_release_by_tag | owner、repo、tag |
get_secret_scanning_alert | alertNumber、owner、repo |
issue_read | issue_number、method、owner、repo |
list_dependabot_alerts | owner、repo |
list_issue_fields | owner |
list_org_repository_security_advisories | org |
list_repository_collaborators | owner、repo |
list_repository_security_advisories | owner、repo |
list_secret_scanning_alerts | owner、repo |
pull_request_read | method、owner、pullNumber、repo |
search_commits | query |
search_repositories | query |
ui_get | method、owner |
哪些名称的归类会改变结论。逐个撤掉一个名称的归类,数有多少工具的可达轮次变了。共 60 个名称,其中 13 个有影响,复核归类时先看它们。
| 名称 | 出现处数 | 撤掉后轮次变化的工具 |
|---|---|---|
id | 37 | 4 |
resource_id | 2 | 4 |
comment_id | 2 | 2 |
field_names | 2 | 2 |
gist_id | 2 | 2 |
notificationID | 2 | 2 |
commentId | 1 | 1 |
commentNodeID | 1 | 1 |
ghsaId | 2 | 1 |
ghsa_id | 6 | 1 |
node_id | 12 | 1 |
sub_issue_id | 1 | 1 |
threadID | 1 | 1 |
归类错一部分,结论变多少。随机弄错一定比例的名称,重复多次,看可达轮次变化的工具比例。
| 弄错的名称比例 | 轮次变化的工具比例(平均) | (九成分位) | 放大系数 |
|---|---|---|---|
| 2% | 0.5% | 2.1% | 0.24 |
| 5% | 1.1% | 4.3% | 0.22 |
| 10% | 2.6% | 6.5% | 0.26 |
| 20% | 4.6% | 8.6% | 0.23 |
返回里的标识相对入参是什么关系。导航 105,回显 43,转换 18,说不准 5,枚举 4。这是按名称和结构判的,各类的条数本身不稳,不要直接引用。
这一节没有要点读数,也还没有结论;切回“全部展开”看表。