Borrowing it
Nothing to install: this file belongs to beydemirfurkan/todox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/beydemirfurkan/todox/main/.claude/skills/add-rpc-method/SKILL.mdgit clone --depth 1 https://github.com/beydemirfurkan/todoxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method)<a href="https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/add-rpc-method/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/add-rpc-method.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01054 |
| Opus 5 | $0.00024 | $0.00527 |
| Sonnet 5 | $0.00010 | $0.00211 |
| Haiku 4.5 | $0.00005 | $0.00105 |
Grade A, and why
add-rpc-method scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding an RPC method
Every agent-facing capability is the same six-file change. The order matters: the schema is the contract, and the handler will not compile without it.
1. Schema — lib/services/rpc-schemas.ts
Add the parameter shape to SHAPES. This is the runtime contract and the MCP
tool surface: mcp/server.ts imports the same object, so a tool cannot
advertise an argument the server rejects.
.describe()text is read by a model deciding whether to call the tool. Write it for that reader, not for a human skimming types.- Objects are built
.strict()inOBJECTS, so unknown keys are an error rather than something a repository has to defend against. - If the method is a patch, add a
.refine()next toupdateTask/updateProjectrequiring at least one field. A patch of nothing used to return the unchanged row, which reads to an agent exactly like a success. - Fields a local process can fill in itself (
repo_root,tz) go in the schema and are hidden from the model only in local mode (LOCAL_INTERNALinmcp/tools.ts). Hosted, nobody but the agent knows them, so they are advertised and the.describe()text has to tell it what to send.
2. Handler — lib/services/rpc.ts
Add it to methods. The object is satisfies Record<MethodName, …> and
MethodName comes from the keys of SHAPES, so a handler without a schema is a
compile error — that is the guardrail, keep it.
The handler signature is TypeScript and is erased at build time. It guards nothing. Validation happened in step 1.
3. Where the work lives
- One table → a repository in
lib/repositories/. - More than one table, or anything that must stay consistent across tables (a
status change writing a
task_eventsrow) →lib/services/. - Repositories never call each other.
- Ownership is asserted in exactly one place:
lib/services/ownership.ts. Do not inlineWHERE user_id = ?at the call site. A row belonging to somebody else answers 404, never 403.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 93 lines · 48 tokens per session scan A db75743ceb91
add-rpc-method is a skill published in the GitHub repository beydemirfurkan/todox (2 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 1,054 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
inbound-email
Handle email arriving at a ServiceNow instance — inbound email action ordering and stop-processing, the real syseventinemailaction column names, and reading sysemail when a message created no record.
background-script-execution
What actually happens when you call snowexecutescript — the Scripted REST endpoint Serac auto-deploys on first use, the scheduled-job fallback, what scheduledjobpending means, and how to get output back when the call comes home empty.
csdm-modeling
Pick the right ServiceNow service class under the Common Service Data Model — business service, service offering, application service, business application — and point the CMDB tools at it without creating the records CSDM tells customers to migrate away from.
mcp-tool-discovery
Find and call tools on this ServiceNow MCP server — the two meta-tools it starts with, why a missing session id makes every other tool unreachable, which queries actually match, and which advertised tools are not on the server at all.
cmdb-patterns
Create ServiceNow CIs and cmdbrelci relationships, walk upstream/downstream impact, detect orphan/stale CIs, and align discovered CIs with the proper sysclassname hierarchy.
catalog-items
Build ServiceNow Service Catalog items, variables, variable sets, catalog client scripts, record producers, and order guides with reference qualifiers and dynamic pricing.